OCI auth method (API)
This is the API documentation for the Vault OCI auth method plugin. To learn more about the usage and operation, see the Vault OCI auth method.
This documentation assumes the OCI method is mounted at the /auth/oci
path in Vault. Since it is possible to enable auth methods at any location, please update your API calls accordingly.
Configure home tenancy method
Configure your home tenancy in the Vault, so that only users or instances from your tenancy will be allowed to log into Vault, through the OCI Auth method.
POST
/auth/oci/config
Parameters
home_tenancy_id
(string: <required>)
- The Tenancy OCID of your OCI account.
Sample payload
Sample request
Read config
Returns the previously configured config.
GET
/auth/oci/config
Sample request
Sample response
Create/Update role
Create a Vault administrator role in the OCI Auth method.
POST
/auth/oci/role/:name
Parameters
name
(string: <required>)
- Name of the role.ocid_list
(string: <required>)
- A comma separated list of Group or Dynamic Group OCIDs that can take this role.
@include 'tokenfields.mdx'
Sample payload
Sample request
Read role
Returns the previously registered role configuration.
GET
/auth/oci/role/:name
Parameters
name
(string: <required>)
- Name of the role.
Sample request
Sample response
List roles
Lists all the roles that are registered with the auth method.
LIST
/auth/oci/role
GET
/auth/oci/role?list=true
Sample request
Sample response
Delete role
Deletes the previously registered role.
DELETE
/auth/oci/role/:role
Parameters
role
(string: <required>)
- Name of the role.
Sample request
Login
Fetch a token. This endpoint takes signed request headers and a role name for some entity. It verifies the signed request headers to authenticate that entity and then authorizes the entity for the given role.
POST
/auth/oci/login/:role
Parameters
role
(string: <required>)
- Name of the role against which the login is being attempted.request_headers
(list: [])
- Signed request headers for authenticating. For details on signing, see signing the request
Sample payload
Sample request
Sample response
Last updated