GetAppGroup

更新时间:
复制 MD 格式

Retrieves the details of an App Group.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: The request was successful.

  • false: The request failed.

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 alarmType is Contacts

    • 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 alarmType is ContactGroup

    • 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 alarmType is Contacts

    • An array of contact objects. Each object must contain the following:

      • name: The name of the contact.

  • Example 2: When alarmType is ContactGroup

    • A single object that contains:

      • name: The name of the contact group.

Example:

  • Example 1 (when alarmType is Contacts):

    [
        {"name": "John"},
        {"name": "Mary"}
    ]
    
  • Example 2 (when alarmType is ContactGroup):

    {
        "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.