调用GetSecureToken获取指定命名空间的SecureToken信息,主要是用来获取指定命名空间的AccessKey ID、AccessKey Secret 、TenantId、地址服务器域名等信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
edas:ReadNamespace |
get |
*NameSpace
|
无 | 无 |
请求语法
GET /pop/v5/secure_token HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| NamespaceId |
string |
是 |
命名空间 ID,例如: |
cn-shenzhen:x***** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Code |
integer |
接口请求返回的状态码。 |
200 |
| Message |
string |
接口请求返回的信息。 |
success |
| RequestId |
string |
接口请求 ID。 |
D16979DC-4D42-************* |
| SecureToken |
object |
接口请求返回的接口 SecureToken 对象。 |
|
| SecretKey |
string |
该命名空间的 AccessKey Secret(SK)。 |
gOSgbgR2R************* |
| AccessKey |
string |
该命名空间的 AccessKey(AK)。 |
f676f1************** |
| BelongRegion |
string |
所属的 RegionID。 |
cn-shenzhen |
| Description |
string |
该命名空间的描述信息。 |
”“ |
| RegionName |
string |
该命名空间所在地域的 RegionName。 |
x****** |
| EdasId |
string |
用户的 EdasId,即阿里云 UID。 |
11727458******** |
| AddressServerHost |
string |
该命名空间对应的地址服务器地址。 |
addr-****-****.edas.aliyun.com |
| UserId |
string |
用户的 UID。 |
edas_com***_****@******-*****.*** |
| Id |
integer |
SecureToken 的 ID。 |
7279 |
| TenantId |
string |
该命名空间的租户 ID(Tenant ID)。 |
401b7bc8-9441-4693-****-************ |
| RegionId |
string |
该命名空间所在地域的 RegionID。 |
cn-shenzhen:x******* |
| MseRegistryType |
string |
MSE 注册中心类型:
|
exclusive_mse |
| MseInstanceId |
string |
MSE 注册中心实例 ID。 |
mse_prepaid_public_cn-tl32p****** |
| MseInternetAddress |
string |
MSE 注册中心公网地址。 |
mse-aa2******-p.nacos-ans.mse.aliyuncs.com |
| MseIntranetAddress |
string |
MSE 注册中心私网地址。 |
mse-72******-nacos-ans.mse.aliyuncs.com |
示例
正常返回示例
JSON格式
{
"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"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。