AliCloud auth method (API)
AliCloud auth method (API)
This is the API documentation for the Vault AliCloud auth method. For general information about the usage and operation of the AliCloud method, please see the Vault AliCloud auth method documentation.
This documentation assumes the AliCloud auth method is mounted at the /auth/alicloud
path in Vault. Since it is possible to enable auth methods at any location, please update your API calls accordingly.
Create/Update role
Registers a role. Only entities using the role registered using this endpoint will be able to perform the login operation.
POST
/auth/alicloud/role/:role
Parameters
role
(string: <required>)
- Name of the role. Must correspond with the name of the role reflected in the arn.arn
(string: <required>)
- The role's arn.
@include 'tokenfields.mdx'
Sample payload
Sample request
Read role
Returns the previously registered role configuration.
GET
/auth/alicloud/role/:role
Parameters
role
(string: <required>)
- Name of the role.
Sample request
Sample response
List roles
Lists all the roles that are registered with the method.
LIST
/auth/alicloud/roles
Sample request
Sample response
Delete role
Deletes the previously registered role.
DELETE
/auth/alicloud/role/:role
Parameters
role
(string: <required>)
- Name of the role.
Sample request
Login
Fetch a token. This endpoint verifies the signature of the signed GetCallerIdentity request.
POST
/auth/alicloud/login
Parameters
role
(string: <required>)
- Name of the role.identity_request_url
(string: <required>)
- Base64-encoded HTTP URL used in the signed request.identity_request_headers
(string: <required>)
- Base64-encoded, JSON-serialized representation of the sts:GetCallerIdentity HTTP request headers. The JSON serialization assumes that each header key maps to either a string value or an array of string values (though the length of that array will probably only be one).
Sample payload
Sample request
Sample response
Last updated