GET /v2/vxlans
Zwraca tablicę z listą istniejących siedzi VxLAN.
{
"success": true,
"vxlans": [
{
"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"
}
]
}, {...}
}
PUT /v2/vxlans
{
"zone_id": "$network_zone_id",
"label": "$network_label"
}
{
"success": true,
"vlan": [
{
"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/vxlans/$NETWORK_ID/attach
Podłącza sieć VxLAN $NETWORK_ID
do wskazanego wirtualnego serwera.
{
"virtual_machine_id": "$virtual_machine_id"
}
{
"success":true
}
POST /v2/vxlans/$NETWORK_ID/detach
Odłącza sieć VxLAN $NETWORK_ID
od wskazanego wirtualnego serwera.
{
"virtual_machine_id": "$virtual_machine_id"
}
{
"success":true
}
DELETE /v2/vxlans/$NETWORK_ID
Usuwa sieć VxLAN $NETWORK_ID
.
{
"success":true
}