Create VPC
- Name
post
- Type
- /v1/vpcs
- Description
Send a
POST
request to creata a VPC.
Request
Attributes
Required
- Name
name
- Type
- string
- Description
VPC Human-readable name given by the user at its creation.
- Name
cidr
- Type
- string
- Description
The range of IP addresses in the VPC in CIDR notation.
Optional
- Name
project_uuid
- Type
- string
- Description
The project universal unique identifier where the VPC will be created. If the user didn't provide the UUID, the system will replace the VPC in the user default project.
Example
curl -X POST "https://api.simplystack.com/v1/vpc" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
-d '{"name": "vpc01", "cidr": "192.168.128.0/24", "region: "fra"}'
Response
JSON object with a key named vpc
which is an array of the following attributes:
Attributes
Example
json
{
"vpc": {
"uuid": "56a78994-75fe-11eb-9439-024202430002",
"cidr": "192.168.128.0/24",
"created_at": "2021-02-13T08:33:25.371494Z",
"name": "vpc01",
"region": {
"available": true,
"features": ["floating_ips"],
"name": "Frankfurt",
"slug": "fra"
},
"stackelt_ids": []
}
}