Skip to main content

DescribeGroupedTags

Description

call the DescribeGroupedTags interface to query the statistics of asset labels.

Request Method

POST

Request Path

/apsara/route/Sas/DescribeGroupedTags

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
MachineTypesBODYstringNoecsasset type. If the asset type is not specified, the label information of all types of assets is queried. ecs: server cloud_product: cloud product
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring7E0618A9-D5EF-4220-9471-C42B5E92719Frequest ID of the result.
TagIdinteger8704tag ID.
HttpStatusCodeinteger200the status code of the request data result.
GroupedFiledsarrayNo sample value for this parameter.statistics of asset labels.
Countstring2the number of assets corresponding to the label.
Successbooleantruewhether the data request was successful. true: the request was successful false: request failed
Namestringtesttag name.

Example

Successful Response example

{
"RequestId":"7E0618A9-D5EF-4220-9471-C42B5E92719F",
"TagId":"8704",
"HttpStatusCode":"200",
"GroupedFileds":"",
"Count":"2",
"Success":"true",
"Name":"test"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}