Enables or disables deletion protection for an SLB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:SetLoadBalancerDeleteProtection |
update |
*loadbalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region where the SLB instance is deployed. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
The ID of the SLB instance. |
lb-bp1b6c719dfa08e***** |
| DeleteProtection |
string |
Yes |
Specify whether to enable or disable deletion protection for the SLB instance. Valid values: on and off. |
off |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
791D8B68-AE0F-4174-AF54-088C8B3C5D54 |
Examples
Success response
JSON format
{
"RequestId": "791D8B68-AE0F-4174-AF54-088C8B3C5D54"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationUnsupported.DeleteProtectionForPrePayInstance | The operation failed because prepay instance does not support delete protection. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.