All Products
Search
Document Center

Enterprise Distributed Application Service:GetSecureToken

Last Updated:Mar 01, 2024

Queries the security token information of a 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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
edas:ReadNamespaceRead
  • NameSpace
    acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}
    none
none

Request syntax

GET /pop/v5/secure_token

Request parameters

ParameterTypeRequiredDescriptionExample
NamespaceIdstringYes

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

cn-shenzhen:x*****

Response parameters

ParameterTypeDescriptionExample
object
Codeinteger

The HTTP status code that is returned.

200
Messagestring

The message returned for the request.

success
RequestIdstring

The ID of the request.

D16979DC-4D42-*************
SecureTokenobject

The returned security token.

SecretKeystring

The AccessKey secret used in the namespace.

gOSgbgR2R*************
AccessKeystring

The AccessKey ID used in the namespace.

f676f1**************
BelongRegionstring

The ID of the region.

cn-shenzhen
Descriptionstring

The description of the namespace.

”“
RegionNamestring

The name of the region where the namespace resides.

x******
EdasIdstring

The ID of the Alibaba Cloud account that activated Enterprise Distributed Application Service (EDAS).

11727458********
AddressServerHoststring

The address of Address Server associated with the namespace.

addr-****-****.edas.aliyun.com
UserIdstring

The ID of the user.

edas_com***_****@******-*****.***
Idlong

The ID of the security token.

7279
TenantIdstring

The tenant ID of the namespace.

401b7bc8-9441-4693-****-************
RegionIdstring

The ID of the region where the namespace resides.

cn-shenzhen:x*******
MseRegistryTypestring

The type of the Microservices Engine (MSE) registry.

  • default: the shared registry of EDAS
  • exclusive_mse: MSE Nacos registry
exclusive_mse
MseInstanceIdstring

The ID of the MSE instance.

mse_prepaid_public_cn-tl32p******
MseInternetAddressstring

The public endpoint of the MSE registry.

mse-aa2******-p.nacos-ans.mse.aliyuncs.com
MseIntranetAddressstring

The private endpoint of the MSE registry.

mse-72******-nacos-ans.mse.aliyuncs.com

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "success",
  "RequestId": "D16979DC-4D42-*************",
  "SecureToken": {
    "SecretKey": "gOSgbgR2R*************",
    "AccessKey": "f676f1**************",
    "BelongRegion": "cn-shenzhen",
    "Description": "”“",
    "RegionName": "x******",
    "EdasId": "11727458********",
    "AddressServerHost": "addr-****-****.edas.aliyun.com",
    "UserId": "edas_com***_****@******-*****.***",
    "Id": 7279,
    "TenantId": "401b7bc8-9441-4693-****-************",
    "RegionId": "cn-shenzhen:x*******",
    "MseRegistryType": "exclusive_mse",
    "MseInstanceId": "mse_prepaid_public_cn-tl32p******",
    "MseInternetAddress": "mse-aa2******-p.nacos-ans.mse.aliyuncs.com",
    "MseIntranetAddress": "mse-72******-nacos-ans.mse.aliyuncs.com"
  }
}

Error codes

For a list of error codes, visit the Service error codes.