This topic describes how to delete a scaling rule using the API.

Description

Deletes a specified scaling rule.

Request parameters

Name Type Required Description
Action String Yes Operation interface, required. The parameter value is DeleteScalingRule.
ScalingRuleId String Yes ID of a scaling rule.

Response parameters

Public parameters.

Error code

For common errors, see client errors or server errors.

Error message Error code Description HTTP status code
The specified scaling rule does not exist in this account. InvalidScalingRuleId.NotFound The specified scaling rule does not exist. 404

Request example

http://ess.aliyuncs.com/?Action=DeleteScalingRule
&ScalingRuleId=eMKWG8SRNb9dBLAjweNI1Ik
&<Public Request Parameters>

Response example

XML format:

<DeleteScalingRuleResponse>
    <RequestId>F0595173-CA3A-4597-B0D3-97A07A042B9C</RequestId>
</DeleteScalingRuleResponse>

JSON format:

"RequestId": "F0595173-CA3A-4597-B0D3-97A07A042B9C"