Back to top

VLANs

Manage virtual networks (VLANs). See project endpoints to list and create virtual networks.

Create an internet gateway
/virtual-networks/{id}/internet-gateways

Creates an internet gateway.

  • Parameters
  • id
    string  (required) in path

    Virtual Network UUID

    length
    string  (required) in query

    IP Reservation length

  • Response  201   created
  • {
    	"id": "string",
    	"created_at": "string",
    	"virtual_network": {
    		"href": "string"
    	},
    	"created_by": "string",
    	"ip_reservations": [
    		{
    			"href": "string"
    		}
    	],
    	"href": "string"
    } 
  • Response  401   unauthorized
  • Response  404   not found
  • Response  422   unprocessable entity
Retrieve all virtual networks
GET
/projects/{id}/virtual-networks

Provides a list of virtual networks for a single project.

  • Parameters
  • id
    string  (required) in path

    Project UUID

    include
    string in query

    related attributes to include

  •  
  • Response Body Show Hide
  • Request URL Show Hide
  • cURL Show Hide
  • Response  200   ok
  • {
    	"virtual_networks": [
    		{
    			"id": "string",
    			"description": "string",
    			"vxlan": "integer",
    			"facility": {
    				"href": "string"
    			},
    			"instances": [
    				{
    					"href": "string"
    				}
    			],
    			"assigned_to": {
    				"href": "string"
    			},
    			"href": "string"
    		}
    	]
    } 
  • Response  401   unauthorized
  • Response  403   forbidden
  • Response  404   not found
Create an virtual network
/projects/{id}/virtual-networks

Creates an virtual network.

  • Parameters
  • id
    string  (required) in path

    Project UUID

    virtual_network
     (required) in body

    Virtual Network to create

    {
    	"project_id": "string",
    	"description": "string",
    	"facility": "string",
    	"vxlan": "integer",
    	"vlan": "integer"
    } 
  • Response  201   created
  • {
    	"id": "string",
    	"description": "string",
    	"vxlan": "integer",
    	"facility": {
    		"href": "string"
    	},
    	"instances": [
    		{
    			"href": "string"
    		}
    	],
    	"assigned_to": {
    		"href": "string"
    	},
    	"href": "string"
    } 
  • Response  401   unauthorized
  • Response  403   forbidden
  • Response  404   not found
  • Response  422   unprocessable entity
Delete a virtual network
/virtual-networks/{id}

Deletes a virtual network.

  • Parameters
  • id
    string  (required) in path

    Virtual Network UUID

  • Response  200   ok
  • {
    	"id": "string",
    	"description": "string",
    	"vxlan": "integer",
    	"facility": {
    		"href": "string"
    	},
    	"instances": [
    		{
    			"href": "string"
    		}
    	],
    	"assigned_to": {
    		"href": "string"
    	},
    	"href": "string"
    } 
  • Response  401   unauthorized
  • Response  403   forbidden
  • Response  404   not found
  • Response  422   unprocessable entity