All Products
Search
Document Center

Auto Scaling:DeleteScalingRule

Last Updated:Apr 29, 2024

Deletes a scaling rule. If you no longer require a scaling rule, you can call the DeleteScalingRule operation to delete the scaling rule to free up the scaling rule quota.

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 DeleteScalingRule

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

ScalingRuleId String Yes asr-bp163l21e07uhnyt****

The ID of the scaling rule that you want to delete.

RegionId String No cn-qingdao

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=DeleteScalingRule
&ScalingRuleId=asr-bp163l21e07uhnyt****
&RegionId=cn-qingdao
&<Common request parameters>

Sample success responses

XML format

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

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

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

404

InvalidScalingRuleId.NotFound

The specified scaling rule does not exist.

The specified scaling rule does not exist in the Alibaba Cloud account.