POST /vps/{id}/vpc/subnets.API-key: ********************{
"name": "office",
"cidr": "10.0.0.0/16",
"gateway": "10.0.0.1",
"dns1": "8.8.8.8",
"dns2": "8.8.4.4",
"description": ""
}curl --location 'https://mijn.host/api/v2/vps/12345/vpc' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "office",
"cidr": "10.0.0.0/16",
"gateway": "10.0.0.1",
"dns1": "8.8.8.8",
"dns2": "8.8.4.4",
"description": ""
}'{
"status": 200,
"status_description": "VPC created.",
"data": {
"vpc": {
"id": 12,
"name": "office",
"cidr": "10.0.0.0/16",
"gateway": "10.0.0.1",
"dns1": "8.8.8.8",
"dns2": "8.8.4.4",
"description": "",
"created": "06-09-2026 09:15"
},
"subnets": [
{ "id": 44, "name": "lan", "cidr": "10.0.1.0/24", "gateway": "10.0.1.1", "dhcp_start": "10.0.1.2", "dhcp_end": "10.0.1.254", "created": "06-09-2026 09:16" }
],
"attachments": [
{ "id": 81, "subnet_id": 44, "ip": "10.0.1.4", "subnet_name": "lan", "subnet_cidr": "10.0.1.0/24" }
]
}
}