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 ID of the namespace. The format is |
cn-shanghai:test |
| NameSpaceShortId |
string |
No |
The ID of the namespace. The region ID is not included. We recommend that you use this parameter. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** |
| Message |
string |
The returned message. Valid values:
|
success |
| TraceId |
string |
The trace ID. You can use this ID to query the details of the call. |
0a98a02315955564772843261e**** |
| Data |
object |
The response data. |
|
| VpcId |
string |
The VPC ID. |
vpc-2ze0i263cnn311nvj**** |
| LastChangeOrderId |
string |
The release order ID. |
afedb3c4-63f8-4a3d-aaa3-2c30363f**** |
| BelongRegion |
string |
The region of the namespace. |
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 notification for the release order 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 |
The version of the APM Java agent. |
|
| SlsConfigs |
string |
The configuration for collecting logs to Simple Log Service (SLS).
The configuration includes the following parameters:
You do not need to set this parameter if the SLS log collection configuration is unchanged for subsequent deployments. To disable log collection, set this parameter to an empty string (""). |
|
| ErrorCode |
string |
The error code. This parameter is returned only if the request fails. For more information, see the Error codes section of this topic.
|
|
| Code |
string |
The HTTP status code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the namespace resources were queried successfully.
|
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.