Deletes a pay-as-you-go Server Load Balancer (SLB) instance.
Operation description
The listeners and tags of the SLB instance are deleted along with the SLB instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DeleteLoadBalancer |
delete |
*loadbalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the SLB instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
The SLB instance ID. |
lb-bp1h66tp5uat8******** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
Examples
Success response
JSON format
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidChargeType | The prepay loadBalancer does not support this action. | |
| 400 | Operation.NotAllowed | Operation Denied. Unfinished order exists. | |
| 400 | OperationDenied.DeleteProtectionIsOn | The loadbalancer can not be deleted due to DeleteProtection is enabled. | |
| 400 | NoPermission.AliyunServiceRoleForSlbEipAccess | You are not authorized to create the service linked role. Role Name: AliyunServiceRoleForSlbEipAccess. Service Name: eipaccess.slb.aliyuncs.com. Please ensure the user has been granted the ram:CreateServiceLinkedRole permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.