POST /v2/vpc_nat_gateways
To create a new VPC NAT gateway, send a POST request to /v2/vpc_nat_gateways setting the required attributes.
The response body will contain a JSON object with a key called vpc_nat_gateway containing the standard attributes for the new VPC NAT gateway.
Servers
- https://api.digitalocean.com
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
region |
String | Yes |
The region in which the VPC NAT gateway is created. Valid values:
|
udp_timeout_seconds |
Integer | No |
The UDP timeout in seconds for the VPC NAT gateway. |
name |
String | Yes |
The human-readable name of the VPC NAT gateway. |
size |
Integer | Yes |
The size of the VPC NAT gateway. |
icmp_timeout_seconds |
Integer | No |
The ICMP timeout in seconds for the VPC NAT gateway. |
tcp_timeout_seconds |
Integer | No |
The TCP timeout in seconds for the VPC NAT gateway. |
vpcs[] |
Array | Yes |
An array of VPCs associated with the VPC NAT gateway. |
vpcs[].vpc_uuid |
String | Yes |
The unique identifier of the VPC to which the NAT gateway is attached. |
vpcs[].default_gateway |
Boolean | No |
The classification of the NAT gateway as the default egress route for the VPC traffic. |
type |
String | Yes |
The type of the VPC NAT gateway. Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.