You can call this operation to query tag 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 DescribeGroupedTags

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

MachineTypes String No ecs

The asset type to be queried.

Response parameters

Parameter Type Example Description
Count Integer 2

The number of entries returned on the current page.

GroupedFileds

The returned list of tag statistics.

Count String 2

The number of assets under the tag.

Name String xxx

The name of the tag.

TagId Integer 111

The ID of the tag.

HttpStatusCode Integer 200

The HTTP status code of the returned results.

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

The ID of the request.

Success Boolean true

Indicates whether the request was successful.

Examples

Sample requests


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

Sample success responses

XML format

<DescribeGroupedTags>
	  <code>200</code>
	  <data>
		    <GroupedFileds>
			      <Name>xxx</Name>
			      <Count>2</Count>
			      <TagId>111</TagId>
		    </GroupedFileds>
	  </data>
	  <requestId>7E0618A9-D5EF-4220-9471-C42B5E92719F</requestId>
	  <success>true</success>
</DescribeGroupedTags>

JSON format

{
	"requestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
	"data":{
		"GroupedFileds":[
			{
				"Name":"xxx",
				"Count":2,
				"TagId":111
			}
		]
	},
	"code":200,
	"success":true
}

Error codes

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