Authorizations
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Path Parameters
Project ID
1
Region ID
1
Body
CIDR
"192.168.10.0/24"
Subnet name
"my subnet"
Network ID
"ee2402d0-f0cd-4503-9b75-69be1d11c5f1"
True if the network's router should get a gateway in this subnet. Must be explicitly 'false' when gateway_ip
is null.
true
List IP addresses of DNS servers to advertise via DHCP.
["8.8.4.4", "1.1.1.1"]
True if DHCP should be enabled
true
Default GW IPv4 address to advertise in DHCP routes in this subnet. Omit this field to let the cloud backend allocate it automatically. Set to null if no gateway must be advertised by this subnet's DHCP (useful when attaching instances to multiple subnets in order to prevent default route conflicts).
"192.168.10.1"
List of custom static routes to advertise via DHCP.
[
{
"destination": "10.0.3.0/24",
"nexthop": "10.0.0.13"
}
]
IP version
4
, 6
ID of the router to connect to. Requires connect_to_network_router
set to true. If not specified, attempts to find a router created during network creation.
"00000000-0000-4000-8000-000000000000"
Key-value tags to associate with the resource. A tag is a key-value pair that can be associated with a resource, enabling efficient filtering and grouping for better organization and management. Some tags are read-only and cannot be modified by the user. Tags are also integrated with cost reports, allowing cost data to be filtered based on tag keys or values.
Response
OK
List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
* GET /v1/tasks/{
task_id}
- Check individual task status and details
Poll task status until completion (FINISHED
/ERROR
) before proceeding with dependent operations.
["d478ae29-dedc-4869-82f0-96104425f565"]