Queries the security token information of a specified namespace. You can call this operation to query information, such as the AccessKey ID, AccessKey secret, tenant ID, and the domain name of Address Server for 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 uses only 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. For example, the value can be cn-beijing or cn-beijing:prod.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

Message String success

The returned message.

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

The ID of the request.

SecureToken Struct

The returned security token.

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

The AccessKey pair used in the namespace.

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

The address of Address Server 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 Alibaba Cloud account that activated Enterprise Distributed Application Service (EDAS).

Id Long 7279

The ID of the security token.

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

The ID of the namespace.

RegionName String x******

The name of the namespace.

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

The AccessKey secret used in the namespace.

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

The tenant ID of the namespace.

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

The ID of the user.

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

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