Queries the statistics of asset tags.
Debugging
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 type of the asset. If you do not specify this parameter, the tags of all asset types are queried. Valid values:
|
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 |
---|---|---|---|
Count | Integer | 0 |
This parameter is deprecated. |
GroupedFileds | Array of GroupedFiled |
The statistics of the asset tag. |
|
Count | String | 152 |
The number of assets to which the tag is added. |
Name | String | InternetIp |
The name of the tag. |
TagId | Integer | 3252366 |
The ID of the tag. |
HttpStatusCode | Integer | 200 |
The HTTP status code of the request. |
RequestId | String | 151F6EB6-D5F3-417A-AF7B-4D84975DB586 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request was successful. Valid values:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeGroupedTags
&<Common request parameters>
Sample success responses
XML
format
<DescribeGroupedTagsResponse>
<RequestId>151F6EB6-D5F3-417A-AF7B-4D84975DB586</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<GroupedFileds>
<TagId>3252366</TagId>
<Count>152</Count>
<Name>InternetIp</Name>
</GroupedFileds>
<GroupedFileds>
<TagId>3893339</TagId>
<Count>3</Count>
<Name>abc</Name>
</GroupedFileds>
<GroupedFileds>
<TagId>3897941</TagId>
<Count>3</Count>
<Name>efg</Name>
</GroupedFileds>
<Count>0</Count>
<Success>true</Success>
</DescribeGroupedTagsResponse>
JSON
format
{
"RequestId": "151F6EB6-D5F3-417A-AF7B-4D84975DB586",
"HttpStatusCode": 200,
"GroupedFileds": [
{
"TagId": 3252366,
"Count": "152",
"Name": "InternetIp"
},
{
"TagId": 3893339,
"Count": "3",
"Name": "abc"
},
{
"TagId": 3897941,
"Count": "3",
"Name": "efg"
}
],
"Count": 0,
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.