ReleaseCidrBlocks

1. API Description

This API is used to release one or more IPv4 CIDR blocks.

Note

  • IPv4 CIDR blocks in recycle bin are remained for 24 hours by default.

  • Only operations on IPv4 CIDR blocks in recycle bin with the status of RECYCLE are supported.

  • This API is not applicable to IPv6 CIDR block.

  • Batch operations are supported. The maximum number of instances in each request is 100.

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

cidrBlockIds

Yes

Array of String

CIDR block ID(s).

To obtain the CIDR block IDs, you can call DescribeCidrBlocks and look for cidrBlockId in the response.

The maximum number of CIDR blocks in each request is 100.

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

Release IPv4 CIDR blocks.

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

Request:
{
  "cidrBlockIds": [
    "cidrBlockId1",
    "cidrBlockId2"
  ]
}

Response:
{
  "requestId": "TF7DE750F-B3AA-4A65-BB46-1EE89072FC04",
  "response": {
    "requestId": "TF7DE750F-B3AA-4A65-BB46-1EE89072FC04"
  }
}

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_CIDRBLOCK_NOT_RECYCLED

Only operations on IPv4 CIDR blocks in recycle bin are supported.

Last updated