Skip to content

vpc API

This page documents the client wrapper functions and raw HTTP interface for the vpc segment of the Utho Cloud API.

Endpoints

POST `/vpc/subnet/associate`

Summary: associate_subnet_with_route_table

Request Body

  • application/json

Responses

Status Description
200 Successful response

Example (CLI)

# Using the generic call command
utho call POST /vpc/subnet/associate -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/subnet/associate' });
console.log(res);

GET `/vpc/subnet/associate`

Summary: list_associated_subnets_for_route_table

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/subnet/associate -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/subnet/associate' });
console.log(res);

POST `/vpc/subnet/dissociate`

Summary: dissociate_subnet_from_route_table

Request Body

  • application/json

Responses

Status Description
200 Successful response

Example (CLI)

# Using the generic call command
utho call POST /vpc/subnet/dissociate -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/subnet/dissociate' });
console.log(res);