Querying the Number of Available EIPs
Function
This API is used to query the number of available EIP in an EIP pool.
URI
POST /v3/{project_id}/eip/resources/available
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| type | No | String | EIP pool type. |
| limit | Yes | Integer | Number of available EIPs in an EIP pool. |
Response Parameter
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| result | Integer |
|
Example Request
{
"limit" : 5,
"type" : "5_bgp"
} Example Response
Status code: 200
OK
{
"result" : 5
} Status Codes
See Status Codes.
Error Codes
See Error Codes.