Obtains temporary Security Token Service (STS) credentials for package storage.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:GetPackageStorageCredential |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v5/package_storage_credential HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
success |
| RequestId |
string |
The request ID. |
b197-40ab-9155-**** |
| Credential |
object |
The STS credential. |
|
| KeyPrefix |
string |
The OSS object key prefix. |
release-pkg/117274586608**** |
| SecurityToken |
string |
The security token from STS. |
|
| AccessKeySecret |
string |
The AccessKey secret. |
|
| Expiration |
string |
The STS credential expiration time. Format: 2019-11-10T07:20:19Z. |
2019-11-10T07:20:19Z |
| AccessKeyId |
string |
The AccessKey ID. |
|
| Bucket |
string |
The OSS bucket name. |
edas-bj |
| RegionId |
string |
The region ID. |
cn-beijing |
| OssPublicEndpoint |
string |
The OSS public endpoint. |
oss-cn-beijing.aliyuncs.com |
| OssInternalEndpoint |
string |
The OSS internal endpoint. |
oss-cn-beijing-internal.aliyuncs.com |
| OssVpcEndpoint |
string |
The OSS VPC endpoint. |
oss-cn-beijing-internal.aliyuncs.com |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "b197-40ab-9155-****",
"Credential": {
"KeyPrefix": "release-pkg/117274586608****",
"SecurityToken": "",
"AccessKeySecret": "",
"Expiration": "2019-11-10T07:20:19Z",
"AccessKeyId": "",
"Bucket": "edas-bj",
"RegionId": "cn-beijing",
"OssPublicEndpoint": "oss-cn-beijing.aliyuncs.com",
"OssInternalEndpoint": "oss-cn-beijing-internal.aliyuncs.com",
"OssVpcEndpoint": "oss-cn-beijing-internal.aliyuncs.com"
}
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.