全部產品
Search
文件中心

Auto Scaling:DescribeNotificationConfigurations

更新時間:Jan 14, 2025

調用API DescribeNotificationConfiguration,通過伸縮組ID查詢該伸縮組的Auto Scaling事件及資源變化通知,包括事件通知類型和通知方式等。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱

類型

是否必選

樣本值

描述

Action String DescribeNotificationConfigurations

系統規定參數。取值:DescribeNotificationConfigurations

ScalingGroupId String asg-bp1igpak5ft1flyp****

伸縮組的ID。

RegionId String cn-beijing

伸縮組所屬的地區ID。

返回資料

名稱

類型

樣本值

描述

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

請求ID。

NotificationConfigurationModels Array of NotificationConfigurationModel

Auto Scaling事件及資源變化通知的集合。

NotificationConfigurationModel
NotificationArn String acs:mns:cn-beijing:161456884340****:topic/modifyLifecycleHo****

通知物件識別碼,參數格式如下:

  • CloudMonitor:acs:ess:{region-id}:{account-id}:cloudmonitor。
  • MNS隊列:acs:mns:{region-id}:{account-id}:queue/{queuename}。
  • MNS主題:acs:mns:{region-id}:{account-id}:topic/{topicname}。

參數格式中的變數含義如下:

  • region-id:伸縮組所在的地區的ID。
  • account-id:阿里雲帳號ID。
  • queuename:MNS隊列的名稱。
  • topicname:MNS主題的名稱。
ScalingGroupId String asg-bp1igpak5ft1flyp****

伸縮組的ID。

NotificationTypes Array of String AUTOSCALING:SCALE_IN_SUCCESS

Auto Scaling事件及資源變化通知類型列表。

TimeZone String UTC+8

訊息通知的時區。

時區相對於國際標準時間的位移量: 如 UTC+8(東八區)、UTC-7(西七區)等。

樣本

請求樣本

http(s)://ess.aliyuncs.com/?Action=DescribeNotificationConfigurations
&ScalingGroupId=asg-bp1igpak5ft1flyp****
&RegionId=cn-beijing
&公用請求參數

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeNotificationConfigurationsResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
    <NotificationConfigurationModels>
        <NotificationArn>acs:mns:cn-beijing:161456884340****:topic/modifyLifecycleHo****</NotificationArn>
        <ScalingGroupId>asg-bp1igpak5ft1flyp****</ScalingGroupId>
        <NotificationTypes>AUTOSCALING:SCALE_IN_SUCCESS</NotificationTypes>
    </NotificationConfigurationModels>
</DescribeNotificationConfigurationsResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "NotificationConfigurationModels" : [ {
    "NotificationArn" : "acs:mns:cn-beijing:161456884340****:topic/modifyLifecycleHo****",
    "ScalingGroupId" : "asg-bp1igpak5ft1flyp****",
    "NotificationTypes" : [ "AUTOSCALING:SCALE_IN_SUCCESS" ]
  } ]
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

HttpCode

錯誤碼

錯誤資訊

描述

404

InvalidScalingGroupId.NotFound

The specified scaling group does not exist.

指定的伸縮組不存在。