You can call this operation to query a list of assets.

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 DescribeFieldStatistics

The operation that you want to perform. Set the value to DescribeFieldStatistics.

MachineTypes String No ecs

The asset type to be queried.

Response parameters

Parameter Type Example Description
GroupedFields

The list of returned assets.

GroupCount Integer 20

The number of server groups returned.

InstanceCount Integer 100

The number of returned assets.

NewInstanceCount Integer 10

The number of newly added assets returned.

NotRunningStatusCount Integer 10

The number of servers that were not started.

RegionCount Integer 11

The number of regions where the servers reside.

RiskInstanceCount Integer 90

The number of affected assets returned.

UnprotectedInstanceCount Integer 10

The number of unprotected assets returned.

VpcCount Integer 5

The number of returned VPCs.

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

Indicates whether the request was successful.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeFieldStatistics>
	  <code>200</code>
	  <data>
		    <GroupedFields>
			      <InstanceCount>100</InstanceCount>
			      <RiskInstanceCount>90</RiskInstanceCount>
			      <UnProtectedInstanceCount>10</UnProtectedInstanceCount>
			      <GroupCount>20</GroupCount>
			      <RegionCount>11</RegionCount>
			      <VpcCount>5</VpcCount>
		    </GroupedFields>
	  </data>
	  <requestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</requestId>
	  <success>true</success>
    </DescribeFieldStatistics>

JSON format

{
	"requestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
	"data":{
		"GroupedFields":{
			"InstanceCount":100,
			"GroupCount":20,
			"VpcCount":5,
			"UnProtectedInstanceCount":10,
			"RiskInstanceCount":90,
			"RegionCount":11
		}
	},
	"code":200,
	"success":true
}

Error codes

For more information about error codes, visit API Error Center.