Modifies a notification for Auto Scaling events and resource changes.
Test
Request parameters
Parameter | Type | Required | Example value | Description |
Action | String | Yes | ModifyNotificationConfiguration | A required parameter. Set the value to ModifyNotificationConfiguration. |
ScalingGroupId | String | Yes | asg-bp1igpak5ft1flyp**** | The ID of the scaling group. |
NotificationArn | String | Yes | acs:ess:cn-beijing:161456884340****:cloudmonitor | The Alibaba Cloud Resource Name (ARN) of the notification recipient. The following notification methods are supported:
The variables in the preceding formats have the following meanings:
|
NotificationType.N | String | No | AUTOSCALING:SCALE_OUT_SUCCESS | One or more types of Auto Scaling event and resource change notifications. The value of N ranges from 1 to 8. Valid values:
|
RegionId | String | No | cn-beijing | The ID of the region where the scaling group is located. |
TimeZone | String | No | UTC+8 | The time zone for message notifications. The value is the offset from Coordinated Universal Time (UTC). Examples: UTC+8 and UTC-7. |
MessageEncoding | String | No | PlainText | The encoding method of the message content. Valid values:
Default value: Base64. Note This parameter is supported only for MNS notifications. |
Response parameters
Parameter | Type | Example value | Description |
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | The ID of the request. |
Examples
Request example
http(s)://ess.aliyuncs.com/?Action=ModifyNotificationConfiguration
&ScalingGroupId=asg-bp1igpak5ft1flyp****
&NotificationArn=acs:ess:cn-beijing:161456884340****:cloudmonitor
&NotificationType=["AUTOSCALING:SCALE_OUT_SUCCESS"]
&RegionId=cn-beijing
&CommonRequestParametersResponse examples
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyNotificationConfigurationResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
</ModifyNotificationConfigurationResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}Error codes
For a list of other error codes, visit the Error Center.
HTTP status code | Error code | Error message | Description |
400 | InvalidNotificationTypes | The specified NotificationType is invalid. | The specified NotificationType.N is invalid. |
400 | NotificationConfigurationNotExist | The specified notification configuration not exist for the scaling group. | The specified notification configuration does not exist for the scaling group. |
400 | InvalidParameter.TimeZone | The specified parameter TimeZone is not valid. | The specified TimeZone parameter is invalid. |
404 | InvalidScalingGroupId.NotFound | The specified scaling group does not exist. | The specified scaling group does not exist. |