Skip to main content

DeleteScalingConfiguration

Description

call DeleteScalingConfiguration to delete a specified scaling configuration.

Request Method

POST

Request Path

/apsara/route/Ess/DeleteScalingConfiguration

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.region id
ScalingConfigurationIdBODYstringYesNo sample value for this parameter.scaling configuration ID.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
the specified scaling configuration does not exist under this user account.invalidscalingconfigurationid.notfoundThe specified scaling configuration does not exist.404
The specified scaling configuration and the associated ECS instance have not been deleted.instanceinuseYou cannot delete a scaling configuration or scaling group while there is an instance associated with it.400
the specified scaling configuration needs to be in the Inactive state.incorrectscalingconfigurationlifecyclestateThe current lifecycle state of specified scaling configuration does not support this action.400

Example

Successful Response example

{
"the specified scaling configuration does not exist under this user account.":"The specified scaling configuration does not exist.",
"The specified scaling configuration and the associated ECS instance have not been deleted.":"You cannot delete a scaling configuration or scaling group while there is an instance associated with it.",
"the specified scaling configuration needs to be in the Inactive state.":"The current lifecycle state of specified scaling configuration does not support this action."
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}