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