ReleaseEipAddresses

1. API Description

This API is used to release one or multiple elastic IPs.

Note

  • Elastic IPs in recycle bin will be remained for 24 hours.

  • Only operations on elastic IPs in recycle bin with the status of RECYCLE are supported.

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

2. Input Parameters

The following request parameter list only provides API request parameters.

Parameter NameRequiredTypeDescription

eipIds

Yes

Array of String

IDs of elastic IPs.

To obtain IDs of the elastic IPs, you can call DescribeEipAddresses and look for eipId in the response.

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 two elastic IPs

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

Request:
{
    "eipIds": ["eipId1","eipId2"]
}

Response:
{
  "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3",
  "response": {
    "requestId": "T05992D0C-7E8B-4047-B0C0-780F2CD549D3"
  }
}

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_EIP_NOT_RECYCLED

Elastic IP not in recycle bin.

Last updated