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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadNamespace |
get |
*NameSpace
|
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.
|
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.