Queries statistics information of assets based on specified aggregation dimensions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeGroupedInstances |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language type for the request and response messages. Default value: zh. Valid values:
|
zh |
| MachineTypes |
string |
No |
The type of assets to query. Set the value to ecs, which indicates Elastic Compute Service (ECS) instances. |
ecs |
| GroupField |
string |
Yes |
The filter condition for querying assets. Valid values:
|
groupId |
| FieldValue |
string |
No |
The name of the asset group to query. Fuzzy match is supported. |
test-01 |
| NoPage |
boolean |
No |
Settings for whether to enable paged query. Default value: true. Valid values:
|
true |
| PageSize |
integer |
No |
The number of entries per page in a paged query. Default value: 20, which indicates that 20 entries of asset information are displayed per page. |
20 |
| CurrentPage |
integer |
No |
The page number of the first page to return. Default value: 1, which indicates that results are returned starting from page 1. |
1 |
| Vendor |
integer |
No |
The server vendor. Valid values:
|
0 |
| Vendors |
string |
No |
The server vendors. Separate multiple vendors with commas (,). Valid values:
|
0,8 |
| SaleVersionCheckCode |
string |
No |
The edition-based filter condition for querying assets. Valid values:
|
sas_gt_basic |
| ResourceDirectoryAccountId |
integer |
No |
The ID of the Alibaba Cloud account that is associated with member accounts in a resource folder. Note
Invoke the DescribeMonitorAccounts operation to obtain this parameter. |
127608589417**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| 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. |
52A3AEE6-114A-499D-8990-4BA9B27FE0AA |
| PageInfo |
object |
The pagination information of the query results. |
|
| CurrentPage |
integer |
The page number of the current page in a paged query. |
5 |
| PageSize |
integer |
The number of entries per page in a paged query. Default value: 20, which indicates that 20 entries of asset information are displayed per page. |
20 |
| TotalCount |
integer |
The total number of asset entries returned. |
100 |
| Count |
integer |
The number of assets displayed on the current page in a paged query. |
20 |
| Instances |
array<object> |
The list of asset information returned. |
|
|
object |
The asset information. |
||
| AsapVulInstanceCount |
integer |
The number of assets that have high-priority vulnerabilities. |
11 |
| UnProtectedInstanceCount |
string |
The number of assets that are not protected by Security Center. |
32 |
| FieldAliasName |
string |
The name of the server group. |
testA |
| InstanceCount |
string |
The total number of assets of the specified asset type. Note
If the MachineTypes request parameter is not set, this parameter returns the total number of assets of all types. |
205 |
| RiskInstanceCount |
string |
The number of assets that have security risks. |
172 |
| GroupFlag |
integer |
The server group type. Valid values:
|
1 |
| AuthVersionCheckCount |
integer |
The number of assets that meet the edition-based filter condition. |
205 |
| Os |
string |
The operating system type of the asset. Valid values:
|
windows |
| InstanceCoreCount |
integer |
The total number of compute cores for all assets of the specified asset type. Note
If the MachineTypes request parameter is not set, this parameter returns the total number of compute cores for assets of all types. |
610 |
Examples
Success response
JSON format
{
"RequestId": "52A3AEE6-114A-499D-8990-4BA9B27FE0AA",
"PageInfo": {
"CurrentPage": 5,
"PageSize": 20,
"TotalCount": 100,
"Count": 20
},
"Instances": [
{
"AsapVulInstanceCount": 11,
"UnProtectedInstanceCount": "32",
"FieldAliasName": "testA",
"InstanceCount": "205",
"RiskInstanceCount": "172",
"GroupFlag": 1,
"AuthVersionCheckCount": 205,
"Os": "windows",
"InstanceCoreCount": 610
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | ServerError | ServerError | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.