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.
Method | Path |
---|---|
|
|
Parameters
home_tenancy_id
(string: <required>)
- The Tenancy OCID of your OCI account.
Sample payload
Sample request
Read config
Returns the previously configured config.
Method | Path |
---|---|
|
|
Sample request
Sample response
Create/Update role
Create a Vault administrator role in the OCI Auth method.
Method | Path |
---|---|
|
|
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.
Method | Path |
---|---|
|
|
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.
Method | Path |
---|---|
|
|
|
|
Sample request
Sample response
Delete role
Deletes the previously registered role.
Method | Path |
---|---|
|
|
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.
Method | Path |
---|---|
|
|
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