Batch Deleting Load Balancers
Function
This API is used to batch delete load balancers.
Calling Method
For details, see Calling APIs.
URI
POST /v3/{project_id}/elb/loadbalancers/batch-delete
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Definition: Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID. Constraints: N/A Range: The value can contain a maximum of 32 characters, including digits and lowercase letters. Default value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition: Specifies the token used for IAM authentication. Constraints: N/A Range: N/A Default value: N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
unbounded_pool |
No |
Boolean |
Specifies whether to delete the backend server groups after they are disassociated from the load balancers. |
|
public_ip |
No |
Boolean |
Specifies whether to release the EIPs. |
|
loadbalancer_ids |
Yes |
Array of strings |
Specifies the IDs of the load balancers to be deleted. |
Response Parameters
Status code: 202
|
Parameter |
Type |
Description |
|---|---|---|
|
job_id |
String |
Specifies the ID of the batch deletion task. |
|
loadbalancer_ids |
Array of strings |
Specifies the IDs of the load balancers to be deleted. |
Example Requests
Batch deleting load balancers
POST https://{ELB_Endpoint}/v3/{project_id}/elb/loadbalancers/batch-delete
{
"public_ip" : true,
"unbounded_pool" : true,
"loadbalancer_ids" : [ "5b2513ca-3290-46ad-b723-e47afb83b4d2", "c2d6bfd6-4eae-4995-8e5d-711fa592744c" ]
}
Example Responses
Status code: 202
Successful request.
{
"job_id" : "6b76f5cb-cab8-48e2-919a-0ff55d230051",
"loadbalancer_ids" : [ "5b2513ca-3290-46ad-b723-e47afb83b4d2", "c2d6bfd6-4eae-4995-8e5d-711fa592744c" ],
"request_id" : "8812a7b1-4201-45e9-8346-f12bf9a78f04"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
202 |
Successful request. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot