post
https://api.linode.com//vpcs//subnets
Create a VPC Subnet. A successful request triggers a subnet_create event.
After you create a VPC subnet, you can attach it to a Linode by assigning the subnet to one of the Linode's network interfaces. To do this, you can run the following operations:
- Create a Linode
- Create a config profile
- Update a config profile
- Add a configuration profile interface
You can also attach managed databases and NodeBalancers to a subnet.
Permissions and scopes
To call this operation, you need permissions, based on the model you're using:
-
Identity and access permissions. Your user needs a role with these permissions. Learn more.
- Permissions:
create_vpc_subnet
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
vpc:read_write
- Scopes:
CLI
linode-cli vpcs subnet-create $vpcId \
--label cool-vpc-subnet \
--ipv4 10.0.1.0/24