DescribeFieldStatistics
Queries the statistics information of servers in 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 that is the main account of the member accounts in the resource folder. Note
You can invoke the DescribeMonitorAccounts operation to obtain this parameter. |
1232428423234**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
7E0618A9-D5EF-4220-9471-C42B5E92719F |
| GroupedFields |
object |
The information about the queried server assets. |
|
| OfflineInstanceCount |
integer |
The number of offline servers. |
21 |
| NoRiskInstanceCount |
integer |
The number of assets that are not a risky asset. |
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 new 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 specified asset type. If you do not specify an asset type, this value is the sum of all servers and cloud services 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 specified asset type. If you do not specify an asset type, this value is the sum of all servers and cloud services in your assets. |
100 |
| PauseInstanceCount |
integer |
The number of paused servers. |
10 |
| IdcInstanceCount |
integer |
The number of assets that can be detected by Security Center. |
100 |
| NotRunningStatusCount |
integer |
The number of servers that are not running or powered on. |
10 |
| AliYunInstanceCount |
integer |
The number of assets that belong to Alibaba Cloud server groups. |
100 |
| RiskInstanceCount |
integer |
The number of assets with risks. |
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 Alibaba Cloud. |
20 |
| TripartiteInstanceCount |
integer |
The number of Simple Application Server instances. |
2 |
| AzureInstanceCount |
integer |
The number of third-party cloud servers. |
5 |
| InstanceCoreCount |
integer |
The total number of compute cores for all assets under the specified asset type. If you do not specify an asset type, this value is the sum of compute cores for all servers and cloud services in your assets. |
301 |
| RiskInstanceCoreCount |
integer |
The number of compute cores for assets with risks. |
201 |
| ExposedInstanceCoreCount |
integer |
The number of compute cores for exposed assets. |
30 |
| UnprotectedInstanceCoreCount |
integer |
The number of compute cores for unprotected assets. |
30 |
| NotRunningStatusCoreCount |
integer |
The number of compute cores for servers that are not running or powered on. |
30 |
| NewInstanceCoreCount |
integer |
The number of compute cores for new servers. |
30 |
| NotBindMachineInstanceCount |
integer |
The number of unauthorized assets under the specified asset type. |
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 |
| OracleInstanceCount |
integer |
The number of third-party cloud servers. |
1 |
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,
"OracleInstanceCount": 1
}
}
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 | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.