All Products
Search
Document Center

CloudMonitor:DescribeMonitorGroupCategories

Last Updated:Mar 18, 2024

Queries the cloud services to which the resources in an application group belong and the number of resources that belong to each cloud service in the application group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
GroupIdlongYes

The ID of the application group.

123456

Response parameters

ParameterTypeDescriptionExample
object

None.

Codeinteger

The HTTP status code.

Note The status code 200 indicates that the request was successful.
200
Messagestring

The error message returned.

The specified resource is not found.
RequestIdstring

The request ID.

9E0347B0-EBC3-4769-A78D-D96F21C6BB52
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
MonitorGroupCategoriesobject

The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service.

GroupIdlong

The ID of the application group.

123456
MonitorGroupCategoryobject []

The cloud services to which the resources in the application group belong and the number of resources that belong to the cloud service.

Countinteger

The number of resources that belong to the cloud service.

1
Categorystring

The abbreviation of the cloud service name.

Note For more information about how to obtain the abbreviation of a cloud service name, see metricCategory in the response parameter Labels of the DescribeProjectMeta operation.
ECS

Examples

Sample success responses

JSONformat

{
  "Code": 200,
  "Message": "The specified resource is not found.",
  "RequestId": "9E0347B0-EBC3-4769-A78D-D96F21C6BB52",
  "Success": true,
  "MonitorGroupCategories": {
    "GroupId": 123456,
    "MonitorGroupCategory": {
      "CategoryItem": [
        {
          "Count": 1,
          "Category": "ECS"
        }
      ]
    }
  }
}

Error codes

HTTP status codeError codeError messageDescription
400ParameterInvalidIllegal parameters.-
403AccessForbiddenUser not authorized to operate on the specified resource.-
404ResourceNotFoundThe specified resource is not found.The specified resource is not found.
500InternalErrorThe request processing has failed due to some unknown error.-

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