All Products
Search
Document Center

CloudMonitor:DescribeMonitorGroups

Last Updated:Jul 26, 2024

Queries application groups.

Operation description

This topic provides an example of how to query the application groups of the current account. The response shows that the current account has two application groups: testGroup124 and test123.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
cms:DescribeMonitorGroupsget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SelectContactGroupsbooleanNo

Specifies whether to include the alert contact groups in the response. Valid values:

  • true
  • false
true
PageNumberintegerNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page.

Pages start from page 1. Default value: 30.

30
KeywordstringNo

The keyword that is used for the search.

test
InstanceIdstringNo

The instance ID. This parameter is used to query the application group to which the specified instance belongs.

i-abcdefgh12****
GroupNamestringNo

The name of the application group.

testGroup124
IncludeTemplateHistorybooleanNo

Specifies whether to include the historical alert templates that are applied to the application group in the response. Valid values:

  • true
  • false
true
TypestringNo

The type of the application group. Valid values:

  • custom: a self-managed application group
  • ehpc_cluster: an application group that is synchronized from an Elastic High Performance Computing (E-HPC) cluster
  • kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster
custom
DynamicTagRuleIdstringNo

The ID of the tag rule.

6b882d9a-5117-42e2-9d0c-4749a0c6****
GroupFounderTagKeystringNo

The tag key that is created for the application group by using the tag rule.

GroupKey1
GroupFounderTagValuestringNo

The tag value that is created for the application group by using the tag rule.

GroupValue1
GroupIdstringNo

The ID of the application group. Separate multiple application group IDs with commas (,).

92****
Tagarray<object>No

The tags of the application group.

objectNo
KeystringNo

The tag key of the application group. Valid values of N: 1 to 5.

tagKey1
ValuestringNo

The tag value of the application group. Valid values of N: 1 to 5.

tagValue1
TypesstringNo

The type of the application group. Valid values:

  • custom: a self-managed application group
  • ehpc_cluster: an application group that is synchronized from an Elastic High Performance Computing (E-HPC) cluster
  • kubernetes: an application group that is synchronized from a Container Service for Kubernetes (ACK) cluster
  • tag: an application group that is automatically created by using tags
  • resMgr: an application group that is created by using resource groups
  • ess: an application group that is synchronized from Auto Scaling (ESS)
custom

For more information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

F02B299A-D374-4595-9F55-7534D604F132
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codeinteger

The HTTP status code.

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

The returned message.

The specified resource is not found.
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

30
Totalinteger

The total number of returned entries.

10
Resourcesarray<object>

The resources that are associated with the application group.

object
Typestring

The type of the application group. Valid values:

  • custom: a self-managed application group
  • ehpc_cluster: an application group that is synchronized from an E-HPC cluster
  • kubernetes: an application group that is synchronized from an ACK cluster
custom
GroupFounderTagValuestring

The tag value that is created for the application group by using the tag rule.

GroupValue1
BindUrlstring

The URL of the ACK cluster from which the application group is synchronized.

https://aliyun.com
GroupNamestring

The name of the application group.

test123
GroupIdlong

The ID of the application group.

12345
ServiceIdstring

The ID of the Alibaba Cloud service.

49****
DynamicTagRuleIdstring

The ID of the tag rule.

6b882d9a-5117-42e2-9d0c-4749a0c6****
GmtCreatelong

The timestamp when the application group was created. Unit: milliseconds.

1603181891000
GroupFounderTagKeystring

The tag key that is created for the application group by using the tag rule.

GroupKey1
GmtModifiedlong

The timestamp when the application group was modified. Unit: milliseconds.

1603181891000
ContactGroupsarray<object>

The alert contact groups.

object
Namestring

The name of the alert contact group.

CloudMonitor
Tagsarray<object>

The tags that are attached to the application group.

object
Keystring

The tag key of the application group.

tagKey1
Valuestring

The tag value of the application group.

tagValue1
TemplateIdsarray

The ID of the template.

string

The alert templates that are applied to the application group.

92****
ResourceGroupIdstring

The resource ID.

rg-aek2hopjh*******

Examples

Sample success responses

JSONformat

{
  "RequestId": "F02B299A-D374-4595-9F55-7534D604F132",
  "Success": true,
  "Code": 200,
  "Message": "The specified resource is not found.",
  "PageNumber": 1,
  "PageSize": 30,
  "Total": 10,
  "Resources": {
    "Resource": [
      {
        "Type": "custom",
        "GroupFounderTagValue": "GroupValue1",
        "BindUrl": "https://aliyun.com",
        "GroupName": "test123",
        "GroupId": 12345,
        "ServiceId": "49****",
        "DynamicTagRuleId": "6b882d9a-5117-42e2-9d0c-4749a0c6****",
        "GmtCreate": 1603181891000,
        "GroupFounderTagKey": "GroupKey1",
        "GmtModified": 1603181891000,
        "ContactGroups": {
          "ContactGroup": [
            {
              "Name": "CloudMonitor"
            }
          ]
        },
        "Tags": {
          "Tag": [
            {
              "Key": "tagKey1",
              "Value": "tagValue1"
            }
          ]
        },
        "TemplateIds": {
          "TemplateId": [
            "92****"
          ]
        },
        "ResourceGroupId": "rg-aek2hopjh*******"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
206%s%s-
400ParameterInvalid%s-
401AccessDeniedExceptionYou donot have sufficient access to perform this action.-
402LimitExceededThe quota for this customer had been reached.-
403AccessForbiddenThe X.509 certificate or cms access key ID provided does not exist in our records.-
404ResourceNotFoundThe specified resource is not found.The specified resource is not found.
429Throttli∂ngExceptionThe request was denied due to request throttling.-
500InternalErrorThe request processing has failed due to some unknown error.-

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