修改一條Auto Scaling事件及資源變化通知。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
請求參數
|
名稱 |
類型 |
是否必選 |
樣本值 |
描述 |
| Action | String | 是 | ModifyNotificationConfiguration | 系統規定參數。取值:ModifyNotificationConfiguration。 |
| ScalingGroupId | String | 是 | asg-bp1igpak5ft1flyp**** | 伸縮組的ID。 |
| NotificationArn | String | 是 | acs:ess:cn-beijing:161456884340****:cloudmonitor | 通知物件識別碼,設定本參數時支援以下通知方式:
參數格式中的變數含義如下:
|
| NotificationType.N | String | 否 | AUTOSCALING:SCALE_OUT_SUCCESS | 一類或者多類Auto Scaling事件及資源變化通知,N的取值範圍:1~8。
|
| RegionId | String | 否 | cn-beijing | 伸縮組所屬的地區ID。 |
| TimeZone | String | 否 | UTC+8 | 訊息通知的時區。 時區相對於國際標準時間的位移量: 如 UTC+8(東八區)、UTC-7(西七區)等。 |
返回資料
名稱 |
類型 |
樣本值 |
描述 |
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | 請求ID。 |
樣本
請求樣本
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
&公用請求參數
正常返回樣本
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyNotificationConfigurationResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
</ModifyNotificationConfigurationResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
HttpCode |
錯誤碼 |
錯誤資訊 |
描述 |
400 |
InvalidNotificationTypes |
The specified NotificationType is invalid. |
指定的NotificationType.N不合法。 |
400 |
NotificationConfigurationNotExist |
The specified notification configuration not exist for the scaling group. |
當前伸縮組不存在指定的Auto Scaling事件及資源變化通知類型。 |
400 |
InvalidParameter.TimeZone |
The specified parameter TimeZone is not valid. |
指定的參數TimeZone不合法。 |
404 |
InvalidScalingGroupId.NotFound |
The specified scaling group does not exist. |
指定的伸縮組不存在。 |