Files
doc-exports/docs/elb/api-ref/DeleteLoadBalancerForce.html
zhoumeng 79a6901263 ELB_API_20251118_Version
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com>
Co-authored-by: zhoumeng <zhoumeng35@huawei.com>
Co-committed-by: zhoumeng <zhoumeng35@huawei.com>
2025-12-04 21:11:56 +00:00

6.0 KiB

Deleting a Load Balancer and Its Associated Resources

Function

This API is used to delete a load balancer and its associated resources, including the listeners, backend server groups, and backend servers.

Note:

  • If a load balancer has EIPs bound to it, the EIPs will be unbound from the load balancer.

  • If deletion protection is enabled for the load balancer, the load balancer and its associated resources cannot be deleted.

  • If deletion protection is enabled for any backend server group of the load balancer, the load balancer and its associated resources cannot be deleted.

  • If modification protection is enabled for the load balancer, the load balancer and its associated resources can be deleted.

URI

DELETE /v3/{project_id}/elb/loadbalancers/{loadbalancer_id}/force-elb

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition: Specifies the project ID.

Constraints: N/A

Range: The value can contain a maximum of 32 characters, including digits and lowercase letters.

Default value: N/A

loadbalancer_id

Yes

String

Definition: Specifies the load balancer ID.

Constraints: N/A

Range: N/A

Default value: N/A

Request Parameters

Table 2 Request header 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

Response Parameters

Status code: 204

Successful request.

None

Example Requests

Deleting a load balancer and resources associated with it

DELETE https://{ELB_Endpoint}/v3/060576782980d5762f9ec014dd2f1148/elb/loadbalancers/32c1057f-74a1-42d6-9b20-d55b80ab89c4/force-elb

Example Responses

None

Status Codes

Status Code

Description

204

Successful request.

Error Codes

See Error Codes.