You can call this operation to delete a scaling configuration.

Description

The scaling configuration cannot be deleted in either of the following conditions:

  • The scaling configuration in the scaling group is in the Active state.
  • The scaling group contains ECS instances that were created using 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
ScalingConfigurationId String Yes eOs27Kb0oXvQcUYjEGel****

The ID of the scaling configuration to be deleted.

Action String No DeleteScalingConfiguration

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

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

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

Examples

Sample requests


http://ess.aliyuncs.com/?Action=DeleteScalingConfiguration
&ScalingConfigurationId=eOs27Kb0oXvQcUYjEGel****
&<Common request parameters>

Sample success responses

XML format

<DeleteScalingConfigurationResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteScalingConfigurationResponse>

JSON format

{
	"RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

For more information about error codes, visit 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 in 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 not in the Inactive 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 specified scaling configuration still has associated ECS instances.