调用ModifyNotificationConfiguration修改一条弹性伸缩事件及资源变化通知。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | ModifyNotificationConfiguration | 系统规定参数。取值:ModifyNotificationConfiguration | 
| NotificationArn | String | 是 | acs:ess:cn-beijing:161456884340****:cloudmonitor | 通知对象标识符,设置本参数时支持以下通知方式: 
 参数格式中的变量含义如下: 
 | 
| NotificationType.N | RepeatList | 是 | AUTOSCALING:SCALE_OUT_SUCCESS | 一类或者多类弹性伸缩事件及资源变化通知。N的取值范围:1~8,多个取值使用重复列表的形式。 您可以调用接口DescribeNotificationTypes查询参数取值。 | 
| ScalingGroupId | String | 是 | asg-bp1igpak5ft1flyp**** | 伸缩组的ID。 | 
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E | 请求ID。 | 
示例
请求示例
https://ess.aliyuncs.com/?Action=ModifyNotificationConfiguration &ScalingGroupId=asg-bp1igpak5ft1flyp**** &NotificationArn=acs:ess:cn-beijing:161456884340****:cloudmonitor &NotificationType.1=AUTOSCALING:SCALE_OUT_SUCCESS &NotificationType.2=AUTOSCALING:SCALE_IN_SUCCESS &NotificationType.3=AUTOSCALING:SCALE_OUT_ERROR &NotificationType.4=AUTOSCALING:SCALE_IN_ERROR &NotificationType.5=AUTOSCALING:SCALE_REJECT &<公共请求参数>
正常返回示例
XML 格式 
<ModifyNotificationConfigurationResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</ModifyNotificationConfigurationResponse> 
     JSON 格式 
{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
} 
    错误码
访问错误中心查看更多错误码。
| HttpCode | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | InvalidNotificationTypes | The specified NotificationType is invalid. | 指定的NotificationType.N不合法。 | 
| 400 | NotificationConfigurationNotExist | The specified notificationConfiguration not exist for the scalingGroup. | 当前伸缩组不存在指定的弹性伸缩事件及资源变化通知类型。 | 
| 404 | InvalidScalingGroupId.NotFound | The specified scaling group does not exist. | 指定的伸缩组不存在。 | 
 
                 
            
