Queries the security token information of a specified namespace. You can call this operation to query the AccessKey ID, AccessKey secret, tenant ID, the domain name of Address Server, and other information of the specified namespace.

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 only uses the common request header. For more information, see Common request parameters.

Request syntax

GET /pop/v5/secure_token HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
NamespaceId String Query Yes cn-shenzhen:x*****

The ID of the namespace, such as cn-beijing or cn-beijing:prod.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned HTTP status code of the request.

Message String success

The returned message.

RequestId String D16979DC-4D42-*************

The ID of the request.

SecureToken Struct

The returned secure token.

AccessKey String f676f1**************

The AccessKey pair used in the namespace.

AddressServerHost String addr-****-****.edas.aliyun.com

The Address Server address associated with the namespace.

BelongRegion String cn-shenzhen

The ID of the region to which the namespace belongs.

Description String ""

The description of the namespace.

EdasId String 11727458********

The ID of the current user.

Id Long 7279

The ID of the secure token.

RegionId String cn-shenzhen:x*******

The ID of the region to which the namespace belongs.

RegionName String x******

The name of the region to which the namespace belongs.

SecretKey String gOSgbgR2R*************

The AccessKey secret used in the namespace.

TenantId String 401b7bc8-9441-4693-****-************

The ID of the tenant that owns the namespace.

UserId String edas_com***_****@******-*****.***

The ID of the user.

Examples

Sample requests

GET /pop/v5/secure_token HTTP/1.1
Common request parameters
{
"NamespaceId": "cn-shenzhen:x*****"
}

Sample success responses

XML format

<SecureToken>
    <TenantId>401b7bc8-9441-4693-****-************</TenantId>
    <RegionName>x******</RegionName>
    <BelongRegion>cn-shenzhen</BelongRegion>
    <AccessKey>f676f1**************</AccessKey>
    <AddressServerHost>addr-****.edas.aliyun.com</AddressServerHost>
    <RegionId>cn-shenzhen:x*******</RegionId>
    <SecretKey>gOSgbgR2R*************</SecretKey>
    <Id>7279</Id>
    <UserId>edas_com***_****@******-*****.***</UserId>
    <EdasId>11727458********</EdasId>
</SecureToken>
<Message>success</Message>
<Code>200</Code>

JSON format

{
	"SecureToken": {
    "TenantId": "401b7bc8-9441-4693-****-************",
    "RegionName": "x******",
    "BelongRegion": "cn-shenzhen",
    "AccessKey": "f676f1**************",
    "AddressServerHost": "addr-****.edas.aliyun.com",
    "RegionId": "cn-shenzhen:x*******",
    "SecretKey": "gOSgbgR2R*************",
    "Id": 7279,
    "UserId": "edas_com***_****@******-*****.***",
    "EdasId": "11727458********"
},
	"Message": "success",
	"Code": 200
}

Error codes

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