You need to enable JavaScript to run this app.
Container Registry

Container Registry

Copy page
Download PDF
Temporary Access Key
GetAuthorizationToken
Copy page
Download PDF
GetAuthorizationToken
Obtain a temporary access key for logging into a Container Registry instance.​
Request description​
To achieve low latency, we recommend selecting the service address according to the region where your resources are located. For details, see Service address.​
  • Request method: POST​
  • Request URL: https://cr.cn-beijing.volcengineapi.com?Action=GetAuthorizationToken&Version=2022-05-12​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameter​
When calling this API, in addition to the following request parameters, you also need to provide the public request parameters. For details about public request parameters, see Public parameters.​
​
Parameter​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
GetAuthorizationToken​
The API name. The current API's name is GetAuthorizationToken.​
Version​
String​
Yes​
2022-05-12​
The API version. The current version of the API is 2022-05-12.​
Registry​
String​
Yes​
registrya​
The name of the Container Registry instance. You can obtain the instance name from the Instance List page in the Container Registry Console.​
ExpiresAt​
Long​
No​
1787565600​
The expiration time of the temporary access credential (Unix timestamp in seconds).​
  • The value range is from 10 minutes to 12 hours after the current time.​
  • If this parameter is not specified, the access credential expires 1 hour later by default.​
​
Sample requests​
​
POST https://cr.cn-beijing.volcengineapi.com?Action=GetAuthorizationToken&Version=2022-05-12​
{​
"Registry": "registrya",​
"ExpiresAt": 1787565600​
}
​
Response parameter​
​
Parameter​
Type​
Sample value​
Description​
Token​
String​
eyJ0eXAiOiJK******​
The temporary access key.​
Username​
String​
dev_ops@****​
The username for logging into the Container Registry instance.​
ExpireTime​
String​
2026-08-24T18:00:00Z​
The expiration time of the temporary access key. It is a UTC+0 time in standard RFC3339 format.​
​
Sample responses​
​
{​
"ResponseMetadata": {​
"RequestId": "20260824143317****A98288BA4DE4B97",​
"Action": "GetAuthorizationToken",​
"Version": "2022-05-12",​
"Service": "cr",​
"Region": "cn-beijing"​
},​
"Result": {​
"Token": "eyJ0eXAiOiJK******",​
"Username": "dev_ops@****",​
"ExpireTime": "2026-08-24T18:00:00Z"​
}​
}
​
Error code​
This interface has no specific error codes. For public error codes, please refer to the Public error codes documentation.​
Last updated: 2026.09.08 14:13:21