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