Queries the Security Token Service (STS) credentials that are required for temporary storage.

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 headers

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

Request syntax

GET /pop/v5/package_storage_credential HTTP/1.1

Request parameters

No request parameters.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Credential Struct

The STS credentials.

AccessKeyId String <yourAccessKeyId>

The AccessKey ID of the user.

AccessKeySecret String <yourAccessKeySecret>

The AccessKey secret of the user.

Bucket String edas-bj

The name of the Object Storage Service (OSS) bucket.

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

The time when the STS credential expires. For example, the value can be 2019-07-24T13:40:34Z.

KeyPrefix String release-pkg/117274586608****

The object key prefix in OSS.

RegionId String cn-beijing

The ID of the region.

SecurityToken String <yourSecurityToken>

The security token issued by STS.

Message String success

The information returned.

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

The ID of the request.

Examples

Sample requests

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

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.