Deletes a scaling configuration of the Elastic Container Instance type. If the scaling configuration of a scaling group is in the Inactive state and the scaling group contains no elastic container instances created from the scaling configuration, you can call the DeleteEciScalingConfiguration operation to delete the scaling configuration to free up the scaling configuration quota.
Usage notes
You cannot call this operation to delete a scaling configuration in the following scenarios:
The scaling configuration is in the Active state.
The scaling group contains elastic container instances created from the scaling configuration.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | DeleteEciScalingConfiguration | The operation that you want to perform. Set the value to DeleteEciScalingConfiguration. |
ScalingConfigurationId | String | Yes | asc-bp1bx8mzur534edp**** | The ID of the scaling configuration 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 | 45D5B0AD-3B00-4A9B-9911-6D5303B0**** | The request ID. The request ID is consistently returned in the response, irrespective of whether the request is executed successfully or encounters an error. |
Examples
Sample requests
http(s)://ess.aliyuncs.com/?Action=DeleteEciScalingConfiguration
&ScalingConfigurationId=asc-bp1bx8mzur534edp****
&RegionId=cn-qingdao
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteEciScalingConfigurationResponse>
<RequestId>45D5B0AD-3B00-4A9B-9911-6D5303B0****</RequestId>
</DeleteEciScalingConfigurationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "45D5B0AD-3B00-4A9B-9911-6D5303B0****"
}
Error codes
For a list of error codes, see Service error codes.
HTTP status code | Error code | Error message | Description |
404 | InvalidScalingConfigurationId.NotFound | The specified scaling configuration does not exist. | The specified scaling configuration does not exist within the Alibaba Cloud account. |
400 | IncorrectScalingConfigurationLifecycleState | The current lifecycle state of specified scaling configuration does not support this action. | The specified scaling configuration is in the Active state. |
400 | InstanceInUse | You cannot delete a scaling configuration or scaling group while there is an instance associated with it. | The scaling group contains elastic container instances created from the specified scaling configuration. |