You can call this operation to query service statistics.

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 list of services.

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

The number of assets for each asset type.

InstanceCount Integer 100

The total number of returned assets.

RiskInstanceCount Integer 90

The number of affected assets returned.

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 more information about error codes, visit API Error Center.