调用DescribeNotificationConfigurations查询您创建的弹性伸缩事件及资源变化通知。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeNotificationConfigurations

系统规定参数。取值:DescribeNotificationConfigurations

ScalingGroupId String asg-bp1igpak5ft1flyp****

伸缩组的ID。

返回数据

名称 类型 示例值 描述
NotificationConfigurationModels Array of NotificationConfigurationModel

弹性伸缩事件及资源变化通知的集合。

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

通知对象标识符,参数格式如下:

  • 云监控: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主题的名称。
NotificationTypes List AUTOSCALING:SCALE_IN_SUCCESS

弹性伸缩事件及资源变化通知类型列表。

ScalingGroupId String asg-bp1igpak5ft1flyp****

伸缩组的ID。

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

请求ID。

示例

请求示例

http://ess.aliyuncs.com/?Action=DescribeNotificationConfigurations
&ScalingGroupId=asg-bp1igpak5ft1flyp****
&<公共请求参数>

正常返回示例

XML 格式

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

JSON 格式

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

错误码

访问错误中心查看更多错误码。

HttpCode

错误码

错误信息

描述

404

InvalidScalingGroupId.NotFound

The specified scaling group does not exist.

指定的伸缩组不存在。