UnbindCidrBlockIps

1. API Description

This API is used to unbind one or more CIDR block IPs from instances.


2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

cidrBlockId

Yes

String

ID of the CIDR block.

You can find the cidrBlockId in the response by calling DescribeCidrBlocks.

ipList

Yes

String

List of IPs to be unassigned.

3. Output Parameters

Parameter NameTypeDescription

requestId

String

The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Code Example

Unassign a CIDR block IP from the instance.

POST /api/v2/bmc HTTP/1.1
Host: console.zenlayer.com
Content-Type: application/json
X-ZC-Action: UnbindCidrBlockIps
<Common Request Params>

Request:
{
  "cidrBlockId": "cidrBlockId",
  "ipList": [
    "2602:ffe4:1:11::1"
  ]
}

Response:
{
  "requestId": "TEE694662-1428-4330-91ED-9D5800206E20",
  "response": {
    "requestId": "TEE694662-1428-4330-91ED-9D5800206E20"
  }
}

5. Developer Resources

Zenlayer Cloud API 2.0 integrates SDKs to make it easier for you to call APIs. More programming languages will be supported.

6. Error Codes

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.​

HTTP Status CodeError CodeDescription

403

OPERATION_DENIED_IP_NOT_BELONG

IP to be unassigned does not belong to the CIDR block.

403

OPERATION_DENIED_INVALID_STATUS

IP status not supported.

403

OPERATION_DENIED_CIDRBLOCK_RECYCLED

Operations on CIDR block in recycle bin are not supported.

403

OPERATION_DENIED_SERVER_EXIST_IPV6

An IPv6 CIDR already assigned to the instance.

Last updated