Creates or modifies an alert group.


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 PutContactGroup

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

ContactGroupName String Yes ECS_Group

The name of the alert group.

Describe String No ECS alert group

The description of the alert group.

ContactNames.N RepeatList No Alice

The name of the alert contact. Valid values of N: 1 to 100.

EnableSubscribed Boolean No true

Specifies whether to enable the weekly report subscription feature. Valid values:

  • true
  • false
Note The weekly report subscription feature can be used only by Alibaba Cloud accounts with more than five Elastic Compute Service (ECS) instances.

Response parameters

Parameter Type Example Description
Code String 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String success

The returned message.

RequestId String 06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83

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.


Sample requests

http(s)://[Endpoint]/? Action=PutContactGroup
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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