Updated on 2026-01-20 GMT+08:00

Batch Deleting Load Balancers

Function

This API is used to batch delete load balancers.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

POST /v3/{project_id}/elb/loadbalancers/batch-delete

Table 1 Path Parameters

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

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

Table 3 Request body parameters

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

Table 4 Response body parameters

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.