Use GetPackageStorageCredential in exchange for STS, which is required for the temporary storage of packages.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request header

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

GET /pop/v5/package_storage_credential HTTPS|HTTP

Parameters

Response parameters

Parameter Type Example Description
Code Integer 200

Code

Credential Struct

Authentication information

AccessKeyId String <yourAccessKeyId>

AccessKey ID

AccessKey secret String <yourAccessKeySecret>

AccessKey secret

Bucket String edas-bj

OSS Bucket

Expiration String 2019-11-10T07:20:19Z

The expiration time, such as 2019-07-24T13:40:34Z.

KeyPrefix String release-pkg/11727458****

OSS storage key prefix

RegionId Boolean cn-beijing

The ID of the region where the target instance resides.

SecurityToken String <yourSecurityToken>

STS security token

Message String success

The returned message.

RequestId String b197-40ab-9155-****

The ID of the request.

Examples

Sample requests

GET /pop/v5/package_storage_credential HTTP/1.1
Common request headers

Sample success responses

XML format

<Credential>
    <KeyPrefix>release-pkg/117274586608****</KeyPrefix>
    <AccessKeySecret><yourAccessKeySecret></AccessKeySecret>
    <AccessKeyId><yourAccessKeyId></AccessKeyId>
    <Expiration>2019-11-10T07:20:19Z</Expiration>
    <SecurityToken><yourSecurityToken></SecurityToken>
    <RegionId>cn-beijing</RegionId>
    <Bucket>edas-bj</Bucket>
</Credential>
<Message>success</Message>
<Code>200</Code>

JSON format

{
    "Credential": {
        "KeyPrefix": "release-pkg/117274586608****",
        "AccessKeySecret": "<yourAccessKeySecret>",
        "AccessKeyId": "<yourAccessKeyId>",
        "Expiration": "2019-11-10T07:20:19Z",
        "SecurityToken": "<yourSecurityToken>",
        "RegionId": "cn-beijing",
        "Bucket": "edas-bj"
    },
    "Message": "success",
    "Code": 200
}

Error codes

For a list of error codes, visit the API Error Center.