Creates an application group.

In this example, the application group named ECS_Group is created.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateMonitorGroup

The operation that you want to perform. Set the value to CreateMonitorGroup.

GroupName String Yes ECS_Group

The name of the application group.

ContactGroups String No ECS_Alert_Group

The alert groups that receive alert notifications for the application group. The alarm notifications for the application group are sent to the alert contacts in the alarm groups.

Note An alert group is a group of one or more alert contacts. For more information about how to create alert contacts and alert groups, see PutContact and PutContactGroup.

Response parameters

Parameter Type Example Description
Code Integer 200

The response code.

Note The value 200 indicates that the call was successful.
GroupId Long 1234567

The ID of the application group.

Message String The specified resource is not found.

The error message.

RequestId String 83C89BA6-ABD4-4398-A175-83E86C47A001

The ID of the request.

Success Boolean true

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.

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


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "83C89BA6-ABD4-4398-A175-83E86C47A001",
    "Code": 200,
    "Success": true,
    "GroupId": 1234567

Error codes

HTTP status code Error code Error message Description
404 ResourceNotFound The specified resource is not found. The error message returned because the specified resource is not found.

For a list of error codes, visit the API Error Center.