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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeCloudProductFieldStatistics

The operation that you want to perform.

Set the value to DescribeCloudProductFieldStatistics.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
GroupedFields Struct

The statistics of cloud services that are protected by Security Center.

CategoryCount String [{"MachineType":1,"Count":11}]

The statistics of different types of assets. MachineType indicates the type of the asset. Count indicates the number of assets of a specific type.

Valid values of MachineType:

  • 1: Server Load Balancer (SLB) instance
  • 2: NAT gateway instance
  • 3: ApsaraDB RDS instance
  • 4: ApsaraDB for MongoDB instance
InstanceCount Integer 100

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

RiskInstanceCount Integer 90

The number of cloud services that are at risk.

RequestId String 7E0618A9-D5EF-4220-9471-C42B5E92719F

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeCloudProductFieldStatistics
&<Common request parameters>

Sample success responses

XML format

<DescribeCloudProductFieldStatisticsResponse>
      <RequestId>A2305077-05D4-4B77-9FEB-E7AB98DC2EF3</RequestId>
      <GroupedFields>
            <InstanceCount>23</InstanceCount>
            <CategoryCount>
                  <count>7</count>
                  <machineType>1</machineType>
            </CategoryCount>
            <CategoryCount>
                  <count>15</count>
                  <machineType>2</machineType>
            </CategoryCount>
            <CategoryCount>
                  <count>1</count>
                  <machineType>3</machineType>
            </CategoryCount>
            <RiskInstanceCount>1</RiskInstanceCount>
      </GroupedFields>
</DescribeCloudProductFieldStatisticsResponse>

JSON format

{
    "RequestId": "A2305077-05D4-4B77-9FEB-E7AB98DC2EF3",
    "GroupedFields": {
        "InstanceCount": 23,
        "CategoryCount": [
            {
                "count": 7,
                "machineType": 1
            },
            {
                "count": 15,
                "machineType": 2
            },
            {
                "count": 1,
                "machineType": 3
            }
        ],
        "RiskInstanceCount": 1
    }
}

Error codes

For a list of error codes, visit the API Error Center.