v1

latestSwagger 2.02026-08-04232286653.5 KB
VPC Subnets

Updates a VPC subnet in the project and returns the async operation.

patch/projects/{project_id}/networking/vpc-subnets/{vpc_subnet_id}

Path parameters

project_idstring required

ID of the project that owns the VPC subnet.

vpc_subnet_idstring required

ID of the VPC subnet.

Request body

namestring required

New name for the VPC subnet.

nat_gateway_action'enable' | 'disable'

Action to take on the subnet's NAT gateway. "enable" creates a NAT gateway if one does not exist; "disable" deletes the NAT gateway if one exists. If omitted, the subnet's NAT gateway is left unchanged. enable NATGatewayActionEnable disable NATGatewayActionDisable

Example request

{
  "name": "my-cool-vpc-subnet",
  "nat_gateway_action": "enable"
}

Response

Example response

{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": "{}",
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": "{}",
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}