You can call this operation to query notification configurations for scaling events and resource changes.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
ScalingGroupId String Yes AG6CQdPU8OKdwLjgZcJ****

The ID of the scaling group.

Action String No DescribeNotificationConfigurations

The operation that you want to perform. Set the value to DescribeNotificationConfigurations.

Response parameters

Parameter Type Example Description
NotificationConfigurationModels

The list of notifications for scaling events and resource changes.

NotificationArn String acs:ess:cn-hangzhou:1111111111:queue/queue1

The Alibaba Cloud Resource Name (ARN) of the notification object. The value must be in acs:ess:{region}:{account-id}:{resource-relative-id} format.

  • region: the region ID of the scaling group
  • account-id: the ID of your account
  • resource-relative-id: the notification method
NotificationTypes AUTOSCALING:SCALE_IN_SUCCESS

The list of different types of notifications for scaling events and resource changes.

ScalingGroupId String asg-****

The ID of the scaling group.

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

The ID of the request.

Examples

Sample requests


http://ess.aliyuncs.com/?Action=DescribeNotificationConfigurations
&ScalingGroupId=AG6CQdPU8OKdwLjgZcJ****
&<Common request parameters>

Sample success responses

XML format

<DescribeNotificationConfigurationsResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
      <NotificationConfigurationModels>
            <NotificationConfigurationModel>
                  <NotificationArn>acs:ess:cn-hangzhou:1111111111:queue/qu****</NotificationArn>
                  <ScalingGroupId>asg-****</ScalingGroupId>
                  <NotificationTypes>
                        <NotificationType>AUTOSCALING:SCALE_IN_SUCCESS</NotificationType>
                        <NotificationType>AUTOSCALING:SCALE_IN_ERROR</NotificationType>
                  </NotificationTypes>
            </NotificationConfigurationModel>
            <NotificationConfigurationModel>
                  <NotificationArn>acs:ess:cn-hangzhou:1111111111:queue/qu****</NotificationArn>
                  <ScalingGroupId>asg-****</ScalingGroupId>
                  <NotificationTypes>
                        <NotificationType>AUTOSCALING:SCALE_IN_SUCCESS</NotificationType>
                        <NotificationType>AUTOSCALING:SCALE_IN_ERROR</NotificationType>
                  </NotificationTypes>
            </NotificationConfigurationModel>
      </NotificationConfigurationModels>
</DescribeNotificationConfigurationsResponse>

JSON format

{
	"RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
	"NotificationConfigurationModels":{
		"NotificationConfigurationModel":[
			{
				"NotificationArn":"acs:ess:cn-hangzhou:1111111111:queue/qu****",
				"ScalingGroupId":"asg-****",
				"NotificationTypes":{
					"NotificationType":[
						"AUTOSCALING:SCALE_IN_SUCCESS",
						"AUTOSCALING:SCALE_IN_ERROR"
					]
				}
			},
			{
				"NotificationArn":"acs:ess:cn-hangzhou:1111111111:queue/qu****",
				"ScalingGroupId":"asg-****",
				"NotificationTypes":{
					"NotificationType":[
						"AUTOSCALING:SCALE_IN_SUCCESS",
						"AUTOSCALING:SCALE_IN_ERROR"
					]
				}
			}
		]
	}
}

Error codes

For more information about error codes, visit API Error Center.

HTTP status code

Error code

Error message

Description

404

InvalidScalingGroupId.NotFound

The specified scaling group does not exist.

The error message returned because the specified scaling group does not exist.