vpc > elastic-ip API¶
This page documents the client wrapper functions and raw HTTP interface for the vpc > elastic-ip segment of the Utho Cloud API.
Endpoints¶
GET `/elasticip`¶
Summary: Elastic IP List
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call GET /elasticip -k $CLOUD_API_KEY
Example (TypeScript)
import { ApiClient } from 'utho-cdk';
const client = new ApiClient({ baseUrl: "https://api.utho.com/v2", apiKey: process.env.CLOUD_API_KEY });
const res = await client.request({ method: 'GET', path: '/elasticip' });
console.log(res);
POST `/elasticip/allocate`¶
Summary: Allocate Elastic IP
Request Body
- application/json
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call POST /elasticip/allocate -k $CLOUD_API_KEY
Example (TypeScript)
import { ApiClient } from 'utho-cdk';
const client = new ApiClient({ baseUrl: "https://api.utho.com/v2", apiKey: process.env.CLOUD_API_KEY });
const res = await client.request({ method: 'POST', path: '/elasticip/allocate' });
console.log(res);
POST `/elasticip/{ip_address}/deallocate`¶
Summary: Deallocate Elastic IP
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| ip_address | path | string | yes |
Request Body
- application/json
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call POST /elasticip/{ip_address}/deallocate -k $CLOUD_API_KEY
Example (TypeScript)
import { ApiClient } from 'utho-cdk';
const client = new ApiClient({ baseUrl: "https://api.utho.com/v2", apiKey: process.env.CLOUD_API_KEY });
const res = await client.request({ method: 'POST', path: '/elasticip/{ip_address}/deallocate' });
console.log(res);