Queries the details of Elastic Compute Service (ECS) instances.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:DescribeAssetDetailByUuids | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Uuids | string | Yes | The UUIDs of the instances. Separate multiple UUIDs with commas (,). Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of instances.
| 0687b17f-2a36-4e5****,0687b17f-2a36-4e**** |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
ResourceDirectoryAccountId | long | No | The Alibaba Cloud account ID of the member in the resource directory. Note
You can call the DescribeMonitorAccounts operation to query the IDs of Alibaba Cloud accounts.
| 127608589417**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "92016EC8-D52D-49D8-9FF7-9EA340A950B9",
"AssetList": [
{
"InternetIp": "10.10.XX.XX",
"OsName": "CentOS 7.6 64-bit\n",
"Ip": "10.10.XX.XX",
"Os": "Linux",
"InstanceId": "i-rj9gda4wolo0zixi****",
"ClientStatus": "online",
"VpcInstanceId": "13231-331331",
"IntranetIp": "192.168.XX.XX",
"AssetType": "0",
"RegionId": "cn-shanghai",
"Uuid": "2a98f149-0256-414c-a29a-a69f8a75****",
"Flag": 0,
"RegionName": "cn-shenzhen",
"InstanceName": "TestInstanceName",
"Region": "cn-guangzhou",
"CpuInfo": "Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz",
"OsDetail": "Linux 64bit",
"CreateTime": 1603863599000,
"Kernel": "4.18.0-80.11.2.el8_0.x86_64",
"Bind": true,
"Tag": "test",
"Mem": 4,
"Memory": 1024,
"AuthVersion": 7,
"GroupTrace": "default",
"HostName": "test",
"AuthModifyTime": 1627974044000,
"SysInfo": "CentOS Linux 8.0.1905",
"Cpu": 4,
"ClientVersion": "2.0.0",
"IpList": [
"192.168.XX.XX"
],
"MacList": [
"00:16:3*:1*:9*:cf"
],
"DiskInfoList": [
"{diskName: \"/dev/vda1\", useSizeByte: 2998996992, totalSize: 40, useSize: 2, totalSizeByte: 42140479488}"
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IllegalParam | Illegal param | - |
400 | RdCheckNoPermission | Resource directory account verification has no permission. | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | RdCheckInnerError | Resource directory account service internal error. | - |
500 | GetAssetDetailFail | Asset detail service has failed due to some unknown error. | An error occurred while processing the get asset details request. Please try again later. If the error persists, submit the ticket. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-15 | The Error code has changed | View Change Details |
2024-10-11 | API Description Update. The Error code has changed. The response structure of the API has changed | View Change Details |
2023-07-20 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2022-12-23 | API Description Update. The API operation is not deprecated.. The Error code has changed | View Change Details |