v8

latestOpenAPI 3.0.0Apache 2.0raw.githubusercontent.com2025-10-165266542.4 MB
DigitalOcean-public.v2-new_[Public Preview] VPC NAT Gateways

Update VPC NAT Gateway

To update the configuration of an existing VPC NAT Gateway, send a PUT request to /v2/vpc_nat_gateways/$VPC_NAT_GATEWAY_ID. The request must contain a full representation of the VPC NAT Gateway including existing attributes.

put/v2/vpc_nat_gateways/{id}

Path parameters

idstring required

The unique identifier of the VPC NAT gateway.

Request body

namestring required

The human-readable name of the VPC NAT gateway.

sizeinteger required

The size of the VPC NAT gateway.

udp_timeout_secondsinteger

The UDP timeout in seconds for the VPC NAT gateway.

icmp_timeout_secondsinteger

The ICMP timeout in seconds for the VPC NAT gateway.

tcp_timeout_secondsinteger

The TCP timeout in seconds for the VPC NAT gateway.

Example request

{
  "name": "my-vpc-nat-gateway",
  "size": 1,
  "udp_timeout_seconds": 30,
  "icmp_timeout_seconds": 30,
  "tcp_timeout_seconds": 30
}

Response

The response will be a JSON object with a key called vpc_nat_gateway. This will be set to a JSON object that contains the standard VPC NAT gateway attributes.

Example response

{
  "vpc_nat_gateway": {
    "id": "70e1b58d-cdec-4e95-b3ee-2d4d95feff51",
    "name": "my-vpc-nat-gateway",
    "type": "PUBLIC",
    "state": "ACTIVE",
    "region": "tor1",
    "size": 1,
    "vpcs": [
      {
        "vpc_uuid": "0d3db13e-a604-4944-9827-7ec2642d32ac",
        "gateway_ip": "10.118.0.35"
      }
    ],
    "egresses": {
      "public_gateways": [
        {
          "ipv4": "174.138.113.197"
        }
      ]
    },
    "udp_timeout_seconds": 30,
    "icmp_timeout_seconds": 30,
    "tcp_timeout_seconds": 30,
    "created_at": "2020-07-28T18:00:00Z",
    "updated_at": "2020-07-28T18:00:00Z"
  }
}