All Products
Search
Document Center

Auto Scaling:DeleteNotificationConfiguration

更新時間:May 20, 2024

Deletes event notification rules. The event notification feature facilitates efficient issue identification and event management by automatically forwarding notifications from Auto Scaling to designated endpoints such as CloudMonitor or Message Service (MNS) topics and queues. If you no longer require an event notification rule, you can call the DeleteNotificationConfiguration operation to delete it.

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

Action

String

Yes

DeleteNotificationConfiguration

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

ScalingGroupId

String

Yes

asg-bp18p2yfxow2dloq****

The ID of the scaling group.

NotificationArn

String

Yes

acs:ess:cn-beijing:161456884340****:cloudmonitor

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

  • If you use CloudMonitor as the recipient service, specify the value in the acs:ess:{region-id}:{account-id}:cloudmonitor format.

  • If you use an MNS queue as the recipient service, specify the value in the acs:mns:{region-id}:{account-id}:queue/{queuename} format.

  • If you use an MNS topic as the recipient service, 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 the scaling group.

  • account-id: the ID of the Alibaba Cloud account.

  • queuename: the name of the MNS queue.

  • topicname: the name of the MNS topic.

RegionId

String

No

cn-beijing

The region ID of the scaling group.

Response parameters

Parameter

Type

Example

Description

RequestId

String

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

The request ID.

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=DeleteNotificationConfiguration
&ScalingGroupId=asg-bp18p2yfxow2dloq****
&NotificationArn=acs:ess:cn-beijing:161456884340****:cloudmonitor
&RegionId=cn-beijing
&<Common request parameters>

Sample success responses

XML format

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

<DeleteNotificationConfigurationResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
</DeleteNotificationConfigurationResponse>

JSON format

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

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

Error codes

For a list of error codes, see Service error codes.

HTTP status code

Error code

Error message

Description

400

NotificationConfigurationNotExist

The specified notification configuration not exist for the scaling group.

The specified event notification rule does not exist in the current scaling group.

404

InvalidScalingGroupId.NotFound

The specified scaling group does not exist.

The specified scaling group does not exist within the Alibaba Cloud account.