You can call this operation to query the statistics of cloud assets 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.

Response parameters

Parameter Type Example Description
GroupedFields

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

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

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

Values of MachineType:

  • 1: Server Load Balancer
  • 2: NAT Gateway
  • 3: ApsaraDB for RDS
  • 4: ApsaraDB for MongoDB
InstanceCount Integer 100

The total number of assets.

RiskInstanceCount Integer 90

The number of assets 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

<DescribeCloudProductFieldStatistics>
	  <code>200</code>
	  <data>
		    <GroupedFields>
			      <InstanceCount>100</InstanceCount>
			      <RiskInstanceCount>90</RiskInstanceCount>
			      <categoryCount>
				        <MachineType>1</MachineType>
				        <Count>11</Count>
			      </categoryCount>
		    </GroupedFields>
	  </data>
	  <requestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</requestId>
	  <success>true</success>
</DescribeCloudProductFieldStatistics>

JSON format

{
	"requestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
	"data":{
		"GroupedFields":{
			"InstanceCount":100,
			"categoryCount":[
				{
					"MachineType":1,
					"Count":11
				}
			],
			"RiskInstanceCount":90
		}
	},
	"code":200,
	"success":true
}

Error codes

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