vpc > internet-gateway API¶
This page documents the client wrapper functions and raw HTTP interface for the vpc > internet-gateway segment of the Utho Cloud API.
Endpoints¶
POST `/vpc-internetgateway`¶
Summary: create
Request Body
- application/json
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call POST /vpc-internetgateway -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-internetgateway' });
console.log(res);
DELETE `/vpc-internetgateway`¶
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-internetgateway -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-internetgateway' });
console.log(res);
GET `/vpc-internetgateway`¶
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-internetgateway -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-internetgateway' });
console.log(res);
POST `/vpc-internetgateway/{id}/attach`¶
Summary: attachSubnet
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | yes |
Request Body
- application/json
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call POST /vpc-internetgateway/{id}/attach -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-internetgateway/{id}/attach' });
console.log(res);
POST `/vpc-internetgateway/234236/dettach`¶
Summary: dettachSubnet
Request Body
- application/json
Responses
| Status | Description |
|---|---|
| 200 | Successful response |
Example (CLI)
# Using the generic call command
utho call POST /vpc-internetgateway/234236/dettach -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-internetgateway/234236/dettach' });
console.log(res);