Retrieves the details of an App Group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadSchedulerxAppGroupQuery |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The App Group ID. You can obtain this ID on the Application Management page in the console. |
testSchedulerx.defaultGroup |
| Namespace |
string |
Yes |
The namespace ID. You can obtain this ID on the Namespaces page in the console. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
39090022-1F3B-4797-8518-6B61095F1AF0 |
| Code |
integer |
The returned status code. |
200 |
| Message |
string |
The returned message. |
app is not existed, groupId=xxxx, namesapce=xxxx |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
object |
The details of the App Group. |
|
| AppName |
string |
The application name. |
DocTest |
| Description |
string |
The application description. |
Test |
| MaxJobs |
integer |
The maximum number of jobs that can be configured for the App Group. |
1000 |
| GroupId |
string |
The App Group ID. |
testSchedulerx.defaultGroup |
| MonitorConfigJson |
string |
The alarm notification configuration. Note
For more information, see the MonitorConfigJson section below. |
{ "sendChannel": "ding,sms,mail,phone", "alarmType": "Contacts", "webhookIsAtAll": false } |
| CurJobs |
integer |
The number of jobs currently configured for the App Group. |
1 |
| AppKey |
string |
The application's AppKey. |
QI4lWMZ+xk1rNB67jFUhaw== |
| AppVersion |
string |
The application version. Valid values: |
2 |
| Namespace |
string |
The namespace ID. |
adcfc35d-e2fe-4fe9-bbaa-20e90ffc**** |
| MonitorContactsJson |
string |
The alarm contact configuration. Note
For more information, see the MonitorContactsJson section below. |
[ {"name": "Alice Johnson"}, {"name": "Lee Smith"} ] |
| NotificationPolicyName |
string |
The name of the notification policy. |
test-workday-notification |
| EnableLog |
boolean |
Specifies whether to enable log collection. The default value is false. |
MonitorConfigJson
The alarm notification configuration. The value is a JSON string that supports the following properties: sendChannel, alarmType, and webhookIsAtAll.
Properties
The alarm contact configuration. The format of the value depends on the alarmType specified in MonitorConfigJson.
Value format
-
When
alarmTypeisContacts-
The value is an array of contact objects. Each object contains the following property:
-
name: The name of the contact.
-
SMS:
sms. -
Email:
mail. -
Phone Call:
phone.
-
-
-
When
alarmTypeisContactGroup-
Contacts: Specifies the alarm contacts.
The value is a single object that contains the following property:
-
ContactGroup: Represents an Alarm Contact Group.
-
-
@ all members (
webhookIsAtAll):The value is
"true"or"false", indicating whether to @ all group members when a notification is sent.
Examples
{
"sendChannel": "ding,sms,mail,phone",
"alarmType": "Contacts",
"webhookIsAtAll": true
}
MonitorContactsJson details
The configuration for alarm contacts is provided in two formats based on the alarmType.
Configuration format
This field must be in JSON format and supports two configurations: a contact array and a contact group object.
Properties
-
Example 1: When
alarmTypeisContacts-
An array of contact objects. Each object must contain the following:
name: The name of the contact.
-
-
Example 2: When
alarmTypeisContactGroup-
A single object that contains:
name: The name of the contact group.
-
Example:
-
Example 1 (when
alarmTypeisContacts):[ {"name": "John"}, {"name": "Mary"} ] -
Example 2 (when
alarmTypeisContactGroup):{ "name": "Alarm Contact Group-1" }
Examples
Success response
JSON format
{
"RequestId": "39090022-1F3B-4797-8518-6B61095F1AF0",
"Code": 200,
"Message": "app is not existed, groupId=xxxx, namesapce=xxxx",
"Success": true,
"Data": {
"AppName": "DocTest",
"Description": "Test",
"MaxJobs": 1000,
"GroupId": "testSchedulerx.defaultGroup",
"MonitorConfigJson": "{\n \"sendChannel\": \"ding,sms,mail,phone\",\n \"alarmType\": \"Contacts\",\n \"webhookIsAtAll\": false\n}",
"CurJobs": 1,
"AppKey": "QI4lWMZ+xk1rNB67jFUhaw==",
"AppVersion": "2",
"Namespace": "adcfc35d-e2fe-4fe9-bbaa-20e90ffc****",
"MonitorContactsJson": "[\n {\"name\": \"Alice Johnson\"},\n {\"name\": \"Lee Smith\"}\n]",
"NotificationPolicyName": "test-workday-notification",
"EnableLog": false
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.