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

Container Registry

Copy page
Download PDF
Temporary Key Management
GetAuthorizationToken
Copy page
Download PDF
GetAuthorizationToken
Obtain a temporary login key.​
Request description​
  • Request method: POST​
  • Request address: https://open.volcengineapi.com/?Action=GetAuthorizationToken&Version=2025-01-01​
Request parameters​
​
Parameter Name​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
GetAuthorizationToken​
Interface name: GetAuthorizationToken.​
Version​
String​
Yes​
2025-01-01​
The current API version is 2025-01-01.​
Registry​
String​
Yes​
artifact-demo​
Artifact repository instance name.​
You can call the ListArtifactRegistries interface to obtain the artifact repository instance name.​
ExpireTime​
String​
None​
2025-01-02 19:00:00​
The expiration time for a temporary key ranges from a minimum of 10 minutes to a maximum of 99 years. When not configured, the default is 1 hour.​
​
Sample requests​
​
POST https://open.volcengineapi.com/?Action=GetAuthorizationToken&Version=2025-01-01​
Content-Type: application/json​
{​
"Registry": "artifact-demo",​
"ExpireTime": "2025-01-02 19:00:00"​
}​
​
Response parameters​
​
Parameter Name​
Type​
Sample value​
Description​
Username​
String​
user@12345​
Username for logging in to the artifact repository.​
Token​
String​
0e2464c8-ff07-48a9-8fe0-***​
Temporary login key.​
ExpireTime​
String​
2025-01-02 19:00:00​
Expiration time of the temporary key.​
​
Sample responses​
​
HTTP/1.1: 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20250101110420****100232280022D31",​
"Action": "GetAuthorizationToken",​
"Version": "2025-01-01",​
"Service": "artifacts",​
"Region": "cn-north-1"​
},​
"Result": {​
"Username": "user@12345",​
"Token": "0e2464c8-ff07-48a9-8fe0-***",​
"ExpireTime": "2025-01-02 19:00:00"​
}​
}​
​
​
Last updated: 2025.10.24 11:20:40