Deletes an auto scaling policy for an application.
Debugging
Request headers
This operation uses only common request headers and does not have operation-specific request headers. For more information, see Common request and response headers.
Request syntax
DELETE /pop/v1/sam/scale/applicationScalingRule HTTP/1.1
Request parameters
Parameter |
Type |
Position |
Required |
Example |
Description |
AppId | String | Query | Yes | 7171a6ca-d1cd-4928-8642-7d5cfe69**** | The application ID. |
ScalingRuleName | String | Query | Yes | timer-0800-2100 | The name of the auto scaling policy. |
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** | The request ID. |
TraceId | String | 0a98a02315955564772843261e**** | The trace ID that is used to query the details of the request. |
Message | String | success | The returned message. Valid values:
|
ErrorCode | String | Null | The error code. Valid values:
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the auto scaling policy was deleted. Valid values:
|
Examples
Sample requests
DELETE /pop/v1/sam/scale/applicationScalingRule?AppId=7171a6ca-d1cd-4928-8642-7d5cfe69****&ScalingRuleName=timer-0800-2100 HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteApplicationScalingRuleResponse>
<RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
<TraceId>0a98a02315955564772843261e****</TraceId>
<Message>success</Message>
<Code>200</Code>
<Success>true</Success>
</DeleteApplicationScalingRuleResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"TraceId" : "0a98a02315955564772843261e****",
"Message" : "success",
"Code" : "200",
"Success" : true
}
Error codes
HttpCode |
Error code |
Error message |
Description |
400 | System.Upgrading | The system is being upgraded. Please try again later. | The system is being upgraded. Try again later. |
For a list of error codes, see Service error codes.