Updated on 2023-12-25 GMT+08:00

Unbinding EIPs in Batches

Function

This API is used to unbind EIPs in batches.

URI

PATCH /v2/{project_id}/batchpublicips

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

publicip_ids

Yes

Array of strings

EIP IDs

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

job_ids

Array of strings

Job ID. The netAPI needs to be called to view the job execution status. netAPI: /v1/{project_id}/jobs/{job_id}

Example Request

/v2/{project_id}/batchpublicips

{
  "publicip_ids" : [ "59e55560-4d2c-40d5-b757-0f5c97b701e4", "e83cae01-e68f-4627-84b3-d2d5c4c836bd" ]
}

Example Response

Status code: 200

OK

{
  "job_ids" : [ "ff8080828436722c0184cdb88e9200a5" ]
}

Status Code

See Status Codes.

Error Code

See Error Codes.