Queries the details of an asset (ECS instance).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeAssetDetailByUuids |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Uuids |
string |
Yes |
The UUIDs of the asset instances. Separate multiple UUIDs with commas (,). Note
Call the DescribeCloudCenterInstances operation to obtain this parameter. |
0687b17f-2a36-4e5****,0687b17f-2a36-4e**** |
| Lang |
string |
No |
The language of the content in the request and response. Default value: zh. Valid values:
|
zh |
| ResourceDirectoryAccountId |
integer |
No |
The Alibaba Cloud account ID of the member accounts in the resource folder. Note
Invoke the DescribeMonitorAccounts operation to obtain this parameter. |
127608589417**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
92016EC8-D52D-49D8-9FF7-9EA340A950B9 |
| AssetList |
array<object> |
The list of asset details. |
|
|
object |
The asset details. |
||
| InternetIp |
string |
The public IP address of the server. |
10.10.XX.XX |
| OsName |
string |
The name of the operating system of the server asset. |
CentOS 7.6 64位 |
| Ip |
string |
The IP address of the server. Note
If a public IP address exists, this value is the public IP address. If no public IP address exists but a private IP address exists, this value is the private IP address. |
10.10.XX.XX |
| Os |
string |
The operating system type of the server. |
Linux |
| InstanceId |
string |
The instance ID of the asset. |
i-rj9gda4wolo0zixi**** |
| ClientStatus |
string |
The status of the China China China agent client. Valid values:
|
online |
| VpcInstanceId |
string |
The VPC-connected instance ID. |
13231-331331 |
| IntranetIp |
string |
The private IP address of the server. |
192.168.XX.XX |
| AssetType |
string |
The type of the asset. The only valid value is 0, which indicates an ECS instance. |
0 |
| RegionId |
string |
The region in which the server resides. Note
For the mapping between region IDs and region names, see Regions and zones. |
cn-shanghai |
| Uuid |
string |
The UUID of the asset. |
2a98f149-0256-414c-a29a-a69f8a75**** |
| Flag |
integer |
The asset vendor. Valid values:
|
0 |
| RegionName |
string |
The name of the region in which the server resides. |
cn-shenzhen |
| InstanceName |
string |
The instance name of the asset. |
TestInstanceName |
| Region |
string |
The region in which the server resides. |
cn-guangzhou |
| CpuInfo |
string |
The CPU details. |
Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz |
| OsDetail |
string |
The operating system version and architecture of the server. |
Linux 64bit |
| CreateTime |
integer |
The timestamp when Security Center recorded the asset information. Unit: milliseconds. |
1603863599000 |
| Kernel |
string |
The Milvus version of the operating system kernel. |
4.18.0-80.11.2.el8_0.x86_64 |
| Bind |
boolean |
Indicates whether the asset is bound to an authorization. Valid values:
|
true |
| Tag |
string |
The tag of the server. |
test |
| Mem |
integer |
The memory size. Unit: GB. |
4 |
| Memory |
integer |
The memory size. Unit: MB. |
1024 |
| AuthVersion |
integer |
The authorization version of the asset. Valid values:
|
7 |
| GroupTrace |
string |
The group to which the server belongs. Servers that are not assigned to a group belong to the Ungrouped group by default. |
default |
| HostName |
string |
The hostname. |
test |
| AuthModifyTime |
integer |
The timestamp when the asset authorization was bound. Unit: milliseconds. |
1627974044000 |
| SysInfo |
string |
The operating system information of the server. |
CentOS Linux 8.0.1905 |
| Cpu |
integer |
The number of CPU cores. |
4 |
| ClientVersion |
string |
The version of the agent client. |
2.0.0 |
| IpList |
array |
The list of IP addresses of the server. |
|
|
string |
The IP address of the server. |
192.168.XX.XX |
|
| MacList |
array |
The list of MAC addresses. |
|
|
string |
The MAC address. |
00:16:3*:1*:9*:cf |
|
| DiskInfoList |
array |
The list of disk information. |
|
|
string |
The disk information. The following parameters describe the disk:
|
{diskName: "/dev/vda1", useSizeByte: 2998996992, totalSize: 40, useSize: 2, totalSizeByte: 42140479488} |
Examples
Success response
JSON format
{
"RequestId": "92016EC8-D52D-49D8-9FF7-9EA340A950B9",
"AssetList": [
{
"InternetIp": "10.10.XX.XX",
"OsName": "CentOS 7.6 64位",
"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. | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 500 | GetAssetDetailFail | Asset detail service has failed due to some unknown error. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.