Queries the resources in a namespace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeNamespaceResources |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/namespace/describeNamespaceResources HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NamespaceId |
string |
No |
The long-format namespace ID. This parameter is retained for compatibility. If you set this parameter, it takes precedence over NameSpaceShortId. Use the short-format namespace ID to simplify the request. |
cn-shanghai:test |
| NameSpaceShortId |
string |
No |
The short-format namespace ID. You do not need to include the region ID. This parameter is recommended. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
Additional information. Valid values:
|
success |
| TraceId |
string |
The trace ID of the call. It is used to query the details of a call. |
0a98a02315955564772843261e**** |
| Data |
object |
The returned results. |
|
| VpcId |
string |
The VPC ID. |
vpc-2ze0i263cnn311nvj**** |
| LastChangeOrderId |
string |
The release order ID. |
afedb3c4-63f8-4a3d-aaa3-2c30363f**** |
| BelongRegion |
string |
The region where the namespace resides. |
cn-shanghai |
| NamespaceId |
string |
The namespace ID. |
cn-shangha:test |
| SecurityGroupId |
string |
The security group ID. |
sg-wz969ngg2e49q5i4**** |
| UserId |
string |
The user ID. |
test@aliyun.com |
| NamespaceName |
string |
The namespace name. |
test |
| LastChangeOrderStatus |
string |
The status of the last release order. Valid values:
|
SUCCESS |
| VpcName |
string |
The VPC name. |
test |
| VSwitchId |
string |
The vSwitch ID. |
vsw-2ze559r1z1bpwqxwp**** |
| Description |
string |
The description of the namespace. |
decs |
| LastChangeOrderRunning |
boolean |
Indicates whether a release order is running in the namespace. Valid values:
|
true |
| AppCount |
integer |
The number of applications. |
1 |
| VSwitchName |
string |
The vSwitch name. |
test |
| NotificationExpired |
boolean |
Indicates whether the release order notification has expired. Valid values:
|
true |
| TenantId |
string |
The tenant ID of the SAE namespace. |
838cad95-973f-48fe-830b-2a8546d7**** |
| JumpServerAppId |
string |
The ID of the jump server application. |
5ec46468-6b26-4a3c-9f7c-bf88761a**** |
| JumpServerIp |
string |
The IP address of the jump server. |
120.78.XXX.XX |
| NameSpaceShortId |
string |
The short-format namespace ID. |
test |
| ApmJavaAgentVersion |
string |
||
| SlsConfigs |
string |
||
| ErrorCode |
string |
The error code. Valid values:
|
空 |
| Code |
string |
The interface status or POP error code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the namespace resource information was successfully queried. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message": "success",
"TraceId": "0a98a02315955564772843261e****",
"Data": {
"VpcId": "vpc-2ze0i263cnn311nvj****",
"LastChangeOrderId": "afedb3c4-63f8-4a3d-aaa3-2c30363f****",
"BelongRegion": "cn-shanghai",
"NamespaceId": "cn-shangha:test",
"SecurityGroupId": "sg-wz969ngg2e49q5i4****",
"UserId": "test@aliyun.com",
"NamespaceName": "test",
"LastChangeOrderStatus": "SUCCESS",
"VpcName": "test",
"VSwitchId": "vsw-2ze559r1z1bpwqxwp****",
"Description": "decs",
"LastChangeOrderRunning": true,
"AppCount": 1,
"VSwitchName": "test",
"NotificationExpired": true,
"TenantId": "838cad95-973f-48fe-830b-2a8546d7****",
"JumpServerAppId": "5ec46468-6b26-4a3c-9f7c-bf88761a****",
"JumpServerIp": "120.78.XXX.XX",
"NameSpaceShortId": "test",
"ApmJavaAgentVersion": "",
"SlsConfigs": ""
},
"ErrorCode": "空",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.