GET /v2/vlans
Returns an array with a list of existing VLAN networks.
{
"success": true,
"vlans": [
{
"id": "$network_id",
"label": "$network_label",
"cost_per_hour": $network_cost,
"owner": {
"id": "$owner_id",
"name": "$owner_name"
},
"zone": {
"id": "$zone_id",
"name": "$zone_name"
},
"task": [],
"virtual_machines": [
{
"id": "$vm_id",
"label": "$vm_label",
"owner_id": "$vm_owner_id"
}
]
}, {...}
}
POST /v2/vlans/$NETWORK_ID/attach
Connects the VLAN network $NETWORK_ID
to the specified virtual server.
{
"virtual_machine_id": "$virtual_machine_id"
}
{
"success":true
}
POST /v2/vlans/$NETWORK_ID/detach
Disconnects the VLAN network $NETWORK_ID
from the specified virtual server.
{
"virtual_machine_id": "$virtual_machine_id"
}
{
"success":true
}