14.4. Deleting load balancers¶
DELETE /v2/lbaas/loadbalancers/{loadbalancer_id}
Delete a load balancer with the specified ID.
The optional parameter cascade
when defined as true
will delete all
child objects of the load balancer.
The API immediately purges any and all configuration data, depending on the configuration settings. You cannot recover it.
Source: https://docs.openstack.org/api-ref/load-balancer/v2/index.html#remove-a-load-balancer
14.4.1. Request¶
Name | In | Type | Description |
---|---|---|---|
cascade (Optional) |
query | boolean | If true will delete all child objects of the load balancer. |
loadbalancer_id |
path | uuid | The ID of the load balancer to query. |
14.4.1.1. Example¶
# curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9888/v2/lbaas/loadbalancers/6322ba02-93d9-4282-a12e-d97901a467d9?cascade=True
14.4.2. Response¶
14.4.2.1. Status codes¶
14.4.2.1.1. Success¶
Code | Reason |
---|---|
204 - No Content |
The server has fulfilled the request. |
14.4.2.1.2. Error¶
Code | Reason |
---|---|
400 - Bad Request |
Some content in the request was invalid. |
401 - Unauthorized |
User must authenticate before making a request. |
403 - Forbidden |
Policy does not allow current user to do this operation. |
404 - Not Found |
The requested resource could not be found. |
409 - Conflict |
This operation conflicted with another operation on this resource. |
500 - Internal Server Error |
Something went wrong inside the service. This should not happen usually. If it does happen, it means the server has experienced some serious problems. |
Version 5.0.0 — Feb 01, 2022