Update a VPC subnet

Update a VPC Subnet. A successful request triggers a subnet_update event.

Permissions and scopes

To call this operation, you need the following:

  • Identity and access permissions. Your user needs a role with these permissions assigned. Learn more.

    • Permissions: update_vpc_subnet
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: vpc:read_write

CLI

linode-cli vpcs subnet-update $vpcId \
  --label cool-vpc-subnet

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
integer
required

The id of the VPC.

integer
required

The id of the VPC Subnet.

Body Params

A VPC Subnet Update request object.

string
length between 1 and 64

Filterable The VPC subnet's label, for display purposes only.

  • Must be unique among the VPC's subnets.
  • Can only contain ASCII letters, numbers, and dashes (-). You can't use two consecutive dashes (--).
Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json