Queries the list of application groups by calling the DescribeMonitorGroups operation.
Operation description
This topic provides an example of how to query the list of application groups for the current account. The response shows that the current account has two application groups: testGroup124 and test123.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeMonitorGroups |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SelectContactGroups |
boolean |
No |
Specifies whether to include alert contact groups in the response. Valid values:
|
true |
| PageNumber |
integer |
No |
The page number. Minimum value: 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Minimum value: 1. Default value: 30. |
30 |
| Keyword |
string |
No |
The search keyword. |
test |
| InstanceId |
string |
No |
The resource instance ID. This parameter is used to query the application group to which the specified instance belongs. |
i-abcdefgh12**** |
| GroupName |
string |
No |
The application group name. |
testGroup124 |
| IncludeTemplateHistory |
boolean |
No |
Specifies whether to include the history of alert templates that have been applied to the application group in the response. Valid values:
|
true |
| Type |
string |
No |
The type of the application group. Valid values:
Valid values:
|
custom |
| DynamicTagRuleId |
string |
No |
The ID of the dynamic rule matching. |
6b882d9a-5117-42e2-9d0c-4749a0c6**** |
| GroupFounderTagKey |
string |
No |
The tag key used to create the application group by using dynamic rule matching. |
GroupKey1 |
| GroupFounderTagValue |
string |
No |
The tag value used to create the application group by using dynamic rule matching. |
GroupValue1 |
| GroupId |
string |
No |
The application group ID. Separate multiple application group IDs with commas (,). |
92**** |
| Tag |
array<object> |
No |
The tags of the application group. |
|
|
object |
No |
The tags of the application group. |
||
| Key |
string |
No |
The tag key of the application group. Valid values of N: 1 to 5. |
tagKey1 |
| Value |
string |
No |
The tag value of the application group. Valid values of N: 1 to 5. |
tagValue1 |
| Types |
string |
No |
The type of the application group. Valid values:
|
custom |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F02B299A-D374-4595-9F55-7534D604F132 |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
| Code |
integer |
The status code. Note
The value 200 indicates success. |
200 |
| Message |
string |
The error message. |
The specified resource is not found. |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
30 |
| Total |
integer |
The total number of entries. |
10 |
| Resources |
object |
||
| Resource |
array<object> |
The associated resources. |
|
|
array<object> |
The associated resources. |
||
| Type |
string |
The type of the application group. Valid values:
|
custom |
| GroupFounderTagValue |
string |
The tag value used to create the application group by using dynamic rule matching. |
GroupValue1 |
| BindUrl |
string |
The URL synchronized from Container Service for Kubernetes. |
https://aliyun.com |
| GroupName |
string |
The application group name. |
test123 |
| GroupId |
integer |
The application group ID. |
12345 |
| ServiceId |
string |
The Alibaba Cloud service ID. |
49**** |
| DynamicTagRuleId |
string |
The ID of the dynamic rule matching. |
6b882d9a-5117-42e2-9d0c-4749a0c6**** |
| GmtCreate |
integer |
The timestamp when the application group was created. Unit: milliseconds. |
1603181891000 |
| GroupFounderTagKey |
string |
The tag key used to create the application group by using dynamic rule matching. |
GroupKey1 |
| GmtModified |
integer |
The timestamp when the application group was modified. Unit: milliseconds. |
1603181891000 |
| ContactGroups |
object |
||
| ContactGroup |
array<object> |
The alert contact groups. |
|
|
object |
The alert contact group. |
||
| Name |
string |
The name of the alert contact group. |
CloudMonitor |
| Tags |
object |
||
| Tag |
array<object> |
The tags bound to the application group. |
|
|
object |
The tags bound to the application group. |
||
| Key |
string |
The tag key of the application group. |
tagKey1 |
| Value |
string |
The tag value of the application group. |
tagValue1 |
| TemplateIds |
object |
||
| TemplateId |
array |
The template IDs. |
|
|
string |
The alert templates that have been applied to the application group. |
92**** |
|
| ResourceGroupId |
string |
The resource group ID. |
rg-aek2hopjh******* |
| TemplateInfos |
object |
||
| TemplateInfo |
array<object> |
The template information. |
|
|
object |
The template information. |
||
| EffectTime |
integer |
The effective period. The data type is Long. The format is a UNIX timestamp in milliseconds, representing the number of milliseconds elapsed since 1970-01-01 00:00:00 UTC. |
1603181891000 |
| TemplateId |
string |
The template IDs. |
123*** |
| Ver |
string |
The version. |
0 |
Examples
Success response
JSON format
{
"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*******",
"TemplateInfos": {
"TemplateInfo": [
{
"EffectTime": 1603181891000,
"TemplateId": "123***",
"Ver": "0"
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | %s | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 402 | LimitExceeded | The quota for this customer had been reached. | |
| 403 | AccessForbidden | The X.509 certificate or cms access key ID provided does not exist in our records. | |
| 206 | %s | %s | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
| 503 | %s | %s | |
| 406 | %s | %s | |
| 429 | Throttli∂ngException | The request was denied due to request throttling. | |
| 409 | %s | %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.