vpc_subnet_create

Create subnet
post/v1/vpc-subnets

Query Parameters

project

vpc

Request Body

Create-time parameters for a VpcSubnet

Object
custom_router

An optional router, used to direct packets sent from hosts in this subnet to any destination address.

Custom routers apply in addition to the VPC-wide system router, and have higher priority than the system router for an otherwise equal-prefix-length match.

description
ipv4_block

The IPv4 address range for this subnet.

It must be allocated from an RFC 1918 private address range, and must not overlap with any other existing subnet in the VPC.

An IPv4 subnet, including prefix and prefix length

ipv6_block

The IPv6 address range for this subnet.

It must be allocated from the RFC 4193 Unique Local Address range, with the prefix equal to the parent VPC's prefix. A random /64 block will be assigned if one is not provided. It must not overlap with any existing subnet in the VPC.

An IPv6 subnet, including prefix and subnet mask

name

Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. Names cannot be a UUID, but they may contain a UUID. They can be at most 63 characters long.

Responses

Object
custom_router_id

ID for an attached custom router.

description

human-readable free-form text about a resource

id

unique, immutable, system-controlled identifier for each resource

ipv4_block

The IPv4 subnet CIDR block.

An IPv4 subnet, including prefix and prefix length

ipv6_block

The IPv6 subnet CIDR block.

An IPv6 subnet, including prefix and subnet mask

name

unique, mutable, user-controlled identifier for each resource

Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. Names cannot be a UUID, but they may contain a UUID. They can be at most 63 characters long.

time_created

timestamp when this resource was created

time_modified

timestamp when this resource was last modified

vpc_id

The VPC to which the subnet belongs.