事件通知支援在發生指定類型的事件後,自動發送訊息到CloudMonitor、MNS主題和MNS隊列,以便您及時對事件進行定位和處理。如果當前事件通知不再使用,調用API DeleteNotificationConfiguration刪除該條Auto Scaling事件及資源變化通知。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
請求參數
|
名稱 |
類型 |
是否必選 |
樣本值 |
描述 |
| Action | String | 是 | DeleteNotificationConfiguration | 系統規定參數。取值:DeleteNotificationConfiguration。 |
| ScalingGroupId | String | 是 | asg-bp18p2yfxow2dloq**** | 伸縮組的ID。 |
| NotificationArn | String | 是 | acs:ess:cn-beijing:161456884340****:cloudmonitor | 通知物件識別碼,各通知方式的參數格式如下:
參數格式中的變數含義如下:
|
| RegionId | String | 否 | cn-beijing | 伸縮組所屬的地區ID。 |
返回資料
名稱 |
類型 |
樣本值 |
描述 |
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** | 請求ID。 |
樣本
請求樣本
http(s)://ess.aliyuncs.com/?Action=DeleteNotificationConfiguration
&ScalingGroupId=asg-bp18p2yfxow2dloq****
&NotificationArn=acs:ess:cn-beijing:161456884340****:cloudmonitor
&RegionId=cn-beijing
&公用請求參數
正常返回樣本
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteNotificationConfigurationResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
</DeleteNotificationConfigurationResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
HttpCode |
錯誤碼 |
錯誤資訊 |
描述 |
400 |
NotificationConfigurationNotExist |
The specified notification configuration not exist for the scaling group. |
當前伸縮組不存在指定的伸縮事件及資源變化通知。 |
404 |
InvalidScalingGroupId.NotFound |
The specified scaling group does not exist. |
指定的伸縮組不存在。 |