Queries the statistics information of servers in your assets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeFieldStatistics |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The ID of the region where the server resides. |
cn-hangzhou |
| MachineTypes |
string |
No |
The type of asset to query. If you do not specify an asset type, the statistics information of all asset types is queried. Valid values:
|
ecs |
| ResourceDirectoryAccountId |
integer |
No |
The ID of the Alibaba Cloud account of the member accounts in the resource directory. Note
You can invoke the DescribeMonitorAccounts operation to obtain this parameter. |
1232428423234**** |
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. |
7E0618A9-D5EF-4220-9471-C42B5E92719F |
| GroupedFields |
object |
The statistics of server assets. |
|
| OfflineInstanceCount |
integer |
The number of offline servers. |
21 |
| NoRiskInstanceCount |
integer |
The number of assets without risky asset issues. |
10 |
| UnKnowStatusInstanceCount |
integer |
The number of assets with an unknown enabling status. |
1 |
| RegionCount |
integer |
The number of regions to which the servers belong. |
11 |
| NewInstanceCount |
integer |
The number of newly added servers. |
10 |
| ExposedInstanceCount |
integer |
The number of exposed assets. |
1 |
| GroupCount |
integer |
The number of server groups. |
20 |
| TencentInstanceCount |
integer |
The number of third-party cloud servers. |
10 |
| GeneralAssetCount |
integer |
The number of general assets. |
10 |
| InstanceSyncTaskCount |
integer |
The number of tasks under the asset type that you specified in the query. If you did not specify an asset type, this value is the total number of all servers and cloud products in your assets. |
10 |
| UnprotectedInstanceCount |
integer |
The number of unprotected assets. |
10 |
| ImportantAssetCount |
integer |
The number of important assets. |
10 |
| TestAssetCount |
integer |
The number of test assets. |
10 |
| VpcCount |
integer |
The number of virtual private clouds (VPCs). |
5 |
| InstanceCount |
integer |
The total number of assets under the asset type that you specified in the query. If you did not specify an asset type, this value is the total number of all servers and cloud products in your assets. |
100 |
| PauseInstanceCount |
integer |
The number of paused servers. |
10 |
| IdcInstanceCount |
integer |
The number of assets that Security Center can detect. |
100 |
| NotRunningStatusCount |
integer |
The number of servers that are not started (powered off). |
10 |
| AliYunInstanceCount |
integer |
The number of assets that belong to Alibaba Cloud server groups. |
100 |
| RiskInstanceCount |
integer |
The number of assets at risk. |
90 |
| HuaweiInstanceCount |
integer |
The number of third-party cloud servers. |
0 |
| AwsInstanceCount |
integer |
The number of third-party cloud servers. |
100 |
| OutMachineInstanceCount |
integer |
The number of instances outside the cloud. |
20 |
| TripartiteInstanceCount |
integer |
The number of simple application servers. |
2 |
| AzureInstanceCount |
integer |
The number of third-party cloud servers. |
5 |
| InstanceCoreCount |
integer |
The total number of compute cores of all assets under the asset type that you specified in the query. If you did not specify an asset type, this value is the total number of compute cores of all servers and cloud products in your assets. |
301 |
| RiskInstanceCoreCount |
integer |
The number of compute cores of assets at risk. |
201 |
| ExposedInstanceCoreCount |
integer |
The number of compute cores of exposed assets. |
30 |
| UnprotectedInstanceCoreCount |
integer |
The number of compute cores of unprotected assets. |
30 |
| NotRunningStatusCoreCount |
integer |
The number of compute cores of servers that are not started (powered off). |
30 |
| NewInstanceCoreCount |
integer |
The number of compute cores of newly added servers. |
30 |
| NotBindMachineInstanceCount |
integer |
The number of asset types without bound authorization under the asset type that you specified in the query. |
10 |
| VolcengineInstanceCount |
integer |
The number of third-party cloud servers. |
10 |
| GoogleInstanceCount |
integer |
The number of third-party cloud servers. |
10 |
| BaiduInstanceCount |
integer |
The number of third-party cloud servers. |
5 |
| UcloudInstanceCount |
integer |
The number of third-party cloud servers. |
5 |
| StateCloudInstanceCount |
integer |
The number of third-party cloud servers. |
5 |
| KingsoftInstanceCount |
integer |
The number of third-party cloud servers. |
5 |
Examples
Success response
JSON format
{
"RequestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
"GroupedFields": {
"OfflineInstanceCount": 21,
"NoRiskInstanceCount": 10,
"UnKnowStatusInstanceCount": 1,
"RegionCount": 11,
"NewInstanceCount": 10,
"ExposedInstanceCount": 1,
"GroupCount": 20,
"TencentInstanceCount": 10,
"GeneralAssetCount": 10,
"InstanceSyncTaskCount": 10,
"UnprotectedInstanceCount": 10,
"ImportantAssetCount": 10,
"TestAssetCount": 10,
"VpcCount": 5,
"InstanceCount": 100,
"PauseInstanceCount": 10,
"IdcInstanceCount": 100,
"NotRunningStatusCount": 10,
"AliYunInstanceCount": 100,
"RiskInstanceCount": 90,
"HuaweiInstanceCount": 0,
"AwsInstanceCount": 100,
"OutMachineInstanceCount": 20,
"TripartiteInstanceCount": 2,
"AzureInstanceCount": 5,
"InstanceCoreCount": 301,
"RiskInstanceCoreCount": 201,
"ExposedInstanceCoreCount": 30,
"UnprotectedInstanceCoreCount": 30,
"NotRunningStatusCoreCount": 30,
"NewInstanceCoreCount": 30,
"NotBindMachineInstanceCount": 10,
"VolcengineInstanceCount": 10,
"GoogleInstanceCount": 10,
"BaiduInstanceCount": 5,
"UcloudInstanceCount": 5,
"StateCloudInstanceCount": 5,
"KingsoftInstanceCount": 5
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | RdCheckInnerError | Resource directory account service internal 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.