All Products
Search
Document Center

Enterprise Distributed Application Service:GetSecureToken

Last Updated:Dec 22, 2025

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.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

edas:ReadNamespace

get

*NameSpace

acs:edas:{#regionId}:{#accountId}:namespace/{#NameSpaceId}

None None

Request syntax

GET /pop/v5/secure_token HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

NamespaceId

string

Yes

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

cn-shenzhen:x*****

Response elements

Element

Type

Description

Example

object

Code

integer

The HTTP status code that is returned.

200

Message

string

The message returned for the request.

success

RequestId

string

The ID of the request.

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

SecureToken

object

The returned security token.

SecretKey

string

The AccessKey secret used in the namespace.

gOSgbgR2R*************

AccessKey

string

The AccessKey ID used in the namespace.

f676f1**************

BelongRegion

string

The ID of the region.

cn-shenzhen

Description

string

The description of the namespace.

”“

RegionName

string

The name of the region where the namespace resides.

x******

EdasId

string

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

11727458********

AddressServerHost

string

The address of Address Server associated with the namespace.

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

UserId

string

The ID of the user.

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

Id

integer

The ID of the security token.

7279

TenantId

string

The tenant ID of the namespace.

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

RegionId

string

The ID of the region where the namespace resides.

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

MseRegistryType

string

The type of the Microservices Engine (MSE) registry.

  • default: the shared registry of EDAS

  • exclusive_mse: MSE Nacos registry

exclusive_mse

MseInstanceId

string

The ID of the MSE instance.

mse_prepaid_public_cn-tl32p******

MseInternetAddress

string

The public endpoint of the MSE registry.

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

MseIntranetAddress

string

The private endpoint of the MSE registry.

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

Examples

Success response

JSON format

{
  "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

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.