Deletes a scaling configuration that is used to create elastic container instances

Description

You cannot delete a scaling configuration that is used to create elastic container instances in the following scenarios:

  • The scaling configuration is in the Active state.
  • The scaling group contains elastic container instances that are created based on the scaling configuration.

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 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 ID of the region where the scaling group resides.

Response parameters

Parameter Type Example Description
RequestId String 45D5B0AD-3B00-4A9B-9911-6D5303B06712

The ID of the request. This parameter is returned regardless of whether the request is successful.

Examples

Sample requests

http(s)://ess.aliyuncs.com/?Action=DeleteEciScalingConfiguration
&ScalingConfigurationId=asc-bp1bx8mzur534edp****
&RegionId=cn-qingdao
&<Common request parameters>

Sample responses

XML format

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

<DeleteEciScalingConfigurationResponse>
    <RequestId>45D5B0AD-3B00-4A9B-9911-6D5303B06712</RequestId>
</DeleteEciScalingConfigurationResponse>

JSON format

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

{
  "RequestId" : "45D5B0AD-3B00-4A9B-9911-6D5303B06712"
}

Error codes

For a list of error codes, visit the API Error Center.

HTTP status code

Error code

Error message

Description

404

InvalidScalingConfigurationId.NotFound

The specified scaling configuration does not exist.

The error message returned because the specified scaling configuration does not exist within the current account.

400

IncorrectScalingConfigurationLifecycleState

The current lifecycle state of specified scaling configuration does not support this action.

The error message returned because 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 error message returned because the scaling group contains elastic container instances that are created based on the specified scaling configuration.