All Products
Search
Document Center

Auto Scaling:ModifyNotificationConfiguration

Last Updated:Jun 18, 2024

Modifies event notification rules. Event notification rules support automatic sending of notifications to CloudMonitor, Message Service (MNS) topics, or MNS queues when a specified type of events occur. This helps you learn about the dynamics of your scaling group at the earliest opportunity and further automate resource management. If an existing event notification rule does not meet your business requirements, you can call the ModifyNotificationConfiguration operation to modify the event notification rule, without the need to create a new rule. Take not that you cannot modify the notification method of an event notification rule by calling this operation.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ScalingGroupIdstringYes

The ID of the scaling group.

asg-bp1igpak5ft1flyp****
NotificationArnstringYes

The Alibaba Cloud Resource Name (ARN) of the notification method. The following list describes the value formats of this parameter:

  • If you use CloudMonitor as the notification method, specify the value in the acs:ess:{region-id}:{account-id}:cloudmonitor format.
  • If you use an MNS queue as the notification method, specify the value in the acs:mns:{region-id}:{account-id}:queue/{queuename} format.
  • If you use an MNS topic as the notification method, specify the value in the acs:mns:{region-id}:{account-id}:topic/{topicname} format.

The variables in the preceding formats have the following meanings:

  • region-id: the region ID of your scaling group.
  • account-id: the ID of your Alibaba Cloud.
  • queuename: the name of the MNS queue.
  • topicname: the name of the MNS topic.
acs:ess:cn-beijing:161456884340****:cloudmonitor
NotificationTypesarrayYes

The event types.

stringYes

The event type. Valid values:

  • AUTOSCALING:SCALE_OUT_SUCCESS: a successful scale-out event
  • AUTOSCALING:SCALE_IN_SUCCESS: a successful scale-in event
  • AUTOSCALING:SCALE_OUT_ERROR: a failed scale-out event
  • AUTOSCALING:SCALE_IN_ERROR: a failed scale-in event
  • AUTOSCALING:SCALE_REJECT: a rejected scaling request
  • AUTOSCALING:SCALE_OUT_START: a started scale-out event
  • AUTOSCALING:SCALE_IN_START: a started scale-in event
  • AUTOSCALING:SCHEDULE_TASK_EXPIRING: an expiring scheduled task
  • SCALING_GROUP_DIAGNOSE: a scaling group diagnosis
  • AUTOSCALING:SCALE_OUT_WARN: a partially successful scale-out event
  • AUTOSCALG:SCALE_IN_WARN: a partially successful scale-in event
AUTOSCALING:SCALE_OUT_SUCCESS
RegionIdstringNo

The region ID of the scaling group.

cn-beijing

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history