Create VPC
Creates a VPC with the address range you supply. The network is set up asynchronously: the VPC is returned with status Creating and reaches Active on its own. Poll the details endpoint until the status settles.
POST
/vpc/Query parameters
project_idQueryintegerrequiredProject ID
active_iamQueryintegeroptionalActive IAM ID (To access contact person account) Find your Active IAM ID here
locationQuerystringrequiredLocation
Request body
application/json
A name for the VPC, unique among the active VPCs in the project. Starts with a letter, ends with a letter or digit, and may contain letters, digits, hyphens and underscores in between.
example
tir-vpc-prodThe IPv4 address range for the VPC, written as a network address with the host portion set to zero. Must be a private range inside 10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16, with a prefix between /16 and /28. Fixed once the VPC is created.
example
172.16.231.0/24Responses
201VPC created. The network is still being set up, so status is Creating.
example
201example
VPC created successfully.400The name or the address range was rejected.
example
400example
A VPC with this name already exists in the project.412The request was valid but could not be carried out — the VPC limit for the location is reached, VPC is not offered there, or the network could not be set up.
example
412example
You have reached the maximum number of VPCs for this location.