All Products
Search
Document Center

Security Center:DescribeGroupedTags

Last Updated:Mar 21, 2023

Queries the statistics of asset tags.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
MachineTypesstringNo

The type of the asset to query. If you do not specify this parameter, the tags of all asset types are queried. Valid values:

  • ecs: server
  • cloud_product: Alibaba Cloud service
ecs

Response parameters

ParameterTypeDescriptionExample
object
HttpStatusCodeinteger

The HTTP status code of the request.

200
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

151F6EB6-D5F3-417A-AF7B-4D84975DB586
Successboolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true
Countinteger

This parameter is deprecated.

0
GroupedFiledsarray

An array that consists of the statistics of the asset tags.

object
Namestring

The name of the tag.

InternetIp
Countstring

The number of assets to which the tag is added.

152
TagIdinteger

The ID of the tag.

3252366

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "151F6EB6-D5F3-417A-AF7B-4D84975DB586",
  "Success": true,
  "Count": 0,
  "GroupedFileds": [
    {
      "Name": "InternetIp",
      "Count": "152",
      "TagId": 3252366
    }
  ]
}

Error codes

HTTP status codeError codeError message
400NoPermissionno permission
500ServerErrorServerError

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-12-23API Description Update,The API operation is not deprecated.,The error codes of the API operation change.
Change itemChange content
API DescriptionAPI Description Update
API Deprecation DescriptionThe API operation is not deprecated.
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400