TOPICS
API

API: Virtual Networks

The network category allows you to create and manage virtual networks.

Action Required Parameters Optional Parameters
network/list None region
network/create region, name, subnet, dns None
network/delete region, net_id None

network/list

Optional parameters:

  • region - region ('toronto', 'montreal', 'roubaix')
Endpoint: network/list
region=roubaix

{
    "networks": [
        {
            "name": "default",
            "net_id": "2071",
            "subnet": "192.168.30.0/24"
        }
    ],
    "success": "yes"
}

network/create

Required parameters:

  • region - region ('toronto', 'montreal', 'roubaix')
  • name - a label for this network
  • subnet - CIDR subnet, e.g. '172.20.0.0/24'
  • dns - comma-separated list of DNS server IPs, e.g. '8.8.8.8,8.8.4.4'
Endpoint: network/create
region=toronto
name=mynetwork
subnet=172.20.0.0/24
dns=8.8.8.8,8.8.4.4

{
    "network_id": "4112",
    "success": "yes"
}

network/delete

Delete a virtual network.

Required parameters:

  • region - region ('toronto', 'montreal', 'roubaix')
  • net_id - the network ID
Endpoint: network/delete
region=toronto
net_id=4112

{"success": "yes"}