Queries the statistics of assets that belong to your account.
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region in which the asset resides. | cn-hangzhou |
MachineTypes | string | No | The type of the asset to query. If no asset types are specified, all types of assets are returned. Valid values:
| ecs |
Response parameters
Examples
Sample success responses
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
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | no permission | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history