vpc > routes API¶
This page documents the client wrapper functions and raw HTTP interface for the vpc > routes segment of the Utho Cloud API.
Endpoints¶
POST `/vpc/route`¶
Summary: update
Request Body
- application/json
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call POST /vpc/route -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: '/vpc/route' });
console.log(res);
GET `/vpc-route`¶
Summary: list
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| route_table_id | query | string | no |
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call GET /vpc-route -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: '/vpc-route' });
console.log(res);
DELETE `/vpc-route`¶
Summary: delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| route_id | query | string | no |
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call DELETE /vpc-route -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: 'DELETE', path: '/vpc-route' });
console.log(res);