v4

latestOpenAPI 3.0.32026-07-312,317012.2 MB
Alibaba Cloud Auth

Login with Alibaba Cloud Auth for machine identity

post/api/v1/auth/alicloud-auth/login

Request body

identityIdstring required

The ID of the machine identity to login.

Action'GetCallerIdentity' required

The Alibaba Cloud API action. For STS GetCallerIdentity, this should be 'GetCallerIdentity'.

Format'JSON' required

The response format. For STS GetCallerIdentity, this should be 'JSON'.

Versionstring required

The API version. This should be in 'YYYY-MM-DD' format (e.g., '2015-04-01').

AccessKeyIdstring required

The AccessKey ID of the RAM user or STS token.

organizationSlugstring

When set, this will scope the login session to the specified organization the machine identity has access to. If omitted, the session defaults to the organization where the machine identity was created in.

SignatureMethod'HMAC-SHA1' required

The signature algorithm. For STS GetCallerIdentity, this should be 'HMAC-SHA1'.

Timestampstring date-time required

The timestamp of the request in UTC, formatted as 'YYYY-MM-DDTHH:mm:ssZ'.

SignatureVersion'1.0' required

The signature version. For STS GetCallerIdentity, this should be '1.0'.

SignatureNoncestring required

A unique random string to prevent replay attacks.

Signaturestring required

The signature string calculated based on the request parameters and AccessKey Secret.

Response

Default Response

accessTokenstring required
expiresInnumber required
accessTokenMaxTTLnumber required
tokenType'Bearer' required