All Products
Search
Document Center

Security Center:DescribeCloudProductFieldStatistics

Last Updated:Jan 28, 2023

Queries the statistics of cloud services whose instances are protected by Security Center.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
The current API does not require request parameters

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

7E0618A9-D5EF-4220-9471-C42B5E92719F
GroupedFieldsobject

The statistics of cloud services.

CategoryCountstring

The statistics of the numbers of assets of different types. MachineType indicates the type of the assets. Count indicates the number of assets that belong to the type. Valid values of MachineType:

  • 1: a Server Load Balancer (SLB) instance
  • 2: a Network Address Translation (NAT) gateway
  • 3: an ApsaraDB RDS instance
  • 4: an ApsaraDB for MongoDB instance
[{"MachineType":1,"Count":11}]
InstanceCountinteger

The total number of cloud services that are protected by Security Center.

100
RiskInstanceCountinteger

The number of cloud services that are at risk.

90

Example

Normal return example

JSONFormat

{
  "RequestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
  "GroupedFields": {
    "CategoryCount": "[{\"MachineType\":1,\"Count\":11}]",
    "InstanceCount": 100,
    "RiskInstanceCount": 90
  }
}

Error codes

Http codeError codeError message
400NoPermissionno permission
500ServerErrorServerError

For a list of error codes, visit the API error center.

Change history

Change timeSummary of changesOperate
2022-12-23API Description Update, The API operation is not deprecated., The error codes of the API operation has changed
Change itemChange content
API DescriptionAPI Description Update
API Deprecation DescriptionThe API operation is not deprecated.
Error CodesThe error codes of the API operation has changed
    delete Error Codes: 400