Sets deletion protection for a scaling group. If you enable deletion protection for a scaling group, you cannot delete the scaling group. If you disable deletion protection for a scaling group, you can directly delete the scaling group. You can call the SetGroupDeletionProtection operation to enable or disable deletion protection.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
GroupDeletionProtection | boolean | Yes | Specifies whether to enable deletion protection for the scaling group. Valid values:
Default value: false. | true |
ScalingGroupId | string | Yes | The ID of the scaling group. | asg-bp1igpak5ft1flyp**** |
RegionId | string | No | The region ID. | cn-qingdao |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "CCC29E24-3AEC-4F2C-8A14-78B14FA738B7"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history