mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Remove /controller from the api endpoint
This commit is contained in:
parent
e3580d52c3
commit
8c1560332e
13
docs/api/examples/_delete_projectsprojectid.txt
Normal file
13
docs/api/examples/_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/eabfa6b4-b0e7-4031-87da-b0b2c376683b'
|
||||
|
||||
DELETE /v2/projects/eabfa6b4-b0e7-4031-87da-b0b2c376683b HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/projects/{project_id}
|
||||
|
@ -10,7 +10,7 @@ CONTENT-LENGTH: 49
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/version
|
||||
X-ROUTE: /v2/version
|
||||
|
||||
{
|
||||
"local": true,
|
@ -17,7 +17,7 @@ CONTENT-LENGTH: 184
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/hypervisors
|
||||
X-ROUTE: /v2/hypervisors
|
||||
|
||||
{
|
||||
"connected": false,
|
@ -13,7 +13,7 @@ CONTENT-LENGTH: 122
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/projects
|
||||
X-ROUTE: /v2/projects
|
||||
|
||||
{
|
||||
"name": "test",
|
13
docs/api/examples/_post_projectsprojectidclose.txt
Normal file
13
docs/api/examples/_post_projectsprojectidclose.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/933e1599-277d-403b-9062-b111d3ae4bf3/close' -d '{}'
|
||||
|
||||
POST /v2/projects/933e1599-277d-403b-9062-b111d3ae4bf3/close HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/projects/{project_id}/close
|
||||
|
13
docs/api/examples/_post_projectsprojectidcommit.txt
Normal file
13
docs/api/examples/_post_projectsprojectidcommit.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a508ab79-4cfa-46fb-896b-ee4399463d33/commit' -d '{}'
|
||||
|
||||
POST /v2/projects/a508ab79-4cfa-46fb-896b-ee4399463d33/commit HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/projects/{project_id}/commit
|
||||
|
42
docs/api/examples/_post_projectsprojectidlinks.txt
Normal file
42
docs/api/examples/_post_projectsprojectidlinks.txt
Normal file
@ -0,0 +1,42 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/93c9f250-c79b-4191-86e0-dfe177194cfc/links' -d '{"vms": [{"adapter_number": 0, "port_number": 3, "vm_id": "bab8bd9a-b951-4a91-a77d-a872d15b9ce3"}, {"adapter_number": 2, "port_number": 4, "vm_id": "f50d4553-0895-4d66-9006-56e9ba3b30d6"}]}'
|
||||
|
||||
POST /v2/projects/93c9f250-c79b-4191-86e0-dfe177194cfc/links HTTP/1.1
|
||||
{
|
||||
"vms": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"port_number": 3,
|
||||
"vm_id": "bab8bd9a-b951-4a91-a77d-a872d15b9ce3"
|
||||
},
|
||||
{
|
||||
"adapter_number": 2,
|
||||
"port_number": 4,
|
||||
"vm_id": "f50d4553-0895-4d66-9006-56e9ba3b30d6"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 364
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/projects/{project_id}/links
|
||||
|
||||
{
|
||||
"link_id": "8d49f36a-2469-4295-a803-ae3cc54b780e",
|
||||
"vms": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"port_number": 3,
|
||||
"vm_id": "bab8bd9a-b951-4a91-a77d-a872d15b9ce3"
|
||||
},
|
||||
{
|
||||
"adapter_number": 2,
|
||||
"port_number": 4,
|
||||
"vm_id": "f50d4553-0895-4d66-9006-56e9ba3b30d6"
|
||||
}
|
||||
]
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/e3f3ed10-3e32-49bd-8596-6ec73507fb50/vms' -d '{"hypervisor_id": "example.com", "name": "test", "properties": {"startup_script": "echo test"}, "vm_type": "vpcs"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/bfb7af51-0213-4a66-b348-b0c9465dd8fd/vms' -d '{"hypervisor_id": "example.com", "name": "test", "properties": {"startup_script": "echo test"}, "vm_type": "vpcs"}'
|
||||
|
||||
POST /v2/projects/e3f3ed10-3e32-49bd-8596-6ec73507fb50/vms HTTP/1.1
|
||||
POST /v2/projects/bfb7af51-0213-4a66-b348-b0c9465dd8fd/vms HTTP/1.1
|
||||
{
|
||||
"hypervisor_id": "example.com",
|
||||
"name": "test",
|
||||
@ -17,17 +17,17 @@ CONTENT-LENGTH: 308
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/projects/{project_id}/vms
|
||||
X-ROUTE: /v2/projects/{project_id}/vms
|
||||
|
||||
{
|
||||
"console": null,
|
||||
"console_type": "telnet",
|
||||
"hypervisor_id": "example.com",
|
||||
"name": "test",
|
||||
"project_id": "e3f3ed10-3e32-49bd-8596-6ec73507fb50",
|
||||
"project_id": "bfb7af51-0213-4a66-b348-b0c9465dd8fd",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
"vm_id": "acc8b635-4ee6-48f4-8c69-c054acd829a2",
|
||||
"vm_id": "b3dd162f-c0f8-49f4-bfdc-9c1892734fb3",
|
||||
"vm_type": "vpcs"
|
||||
}
|
@ -12,7 +12,7 @@ CONTENT-LENGTH: 30
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/version
|
||||
X-ROUTE: /v2/version
|
||||
|
||||
{
|
||||
"version": "1.5.0dev1"
|
@ -1,13 +0,0 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/4c0cfdee-80b9-4c95-96ea-270923777084'
|
||||
|
||||
DELETE /v2/projects/4c0cfdee-80b9-4c95-96ea-270923777084 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/projects/{project_id}
|
||||
|
@ -1,13 +0,0 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/afef5a9e-9cc9-4d71-be81-ae7d33d066bd/close' -d '{}'
|
||||
|
||||
POST /v2/projects/afef5a9e-9cc9-4d71-be81-ae7d33d066bd/close HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/projects/{project_id}/close
|
||||
|
@ -1,13 +0,0 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/21fb0c4a-0660-48a9-a8a6-3cfdc6314097/commit' -d '{}'
|
||||
|
||||
POST /v2/projects/21fb0c4a-0660-48a9-a8a6-3cfdc6314097/commit HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONTENT-LENGTH: 0
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/controller/projects/{project_id}/commit
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80 HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/d8280aa5-e7e5-479b-80b5-33e8722512dc/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/b520bd18-a793-4f29-8cf4-40ae5fb38bd7/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/d8280aa5-e7e5-479b-80b5-33e8722512dc/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/b520bd18-a793-4f29-8cf4-40ae5fb38bd7/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/75d28a14-9b91-4142-b65b-99c7c94fda90'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/4e17bb6b-97e5-4d44-970b-f7771210f047'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/75d28a14-9b91-4142-b65b-99c7c94fda90 HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/4e17bb6b-97e5-4d44-970b-f7771210f047 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6c1e771b-f36b-4e10-b583-52f4f50b2dc1/adapters/1/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/ca8de24c-263e-4ebf-bf50-76dce4b35b24/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6c1e771b-f36b-4e10-b583-52f4f50b2dc1/adapters/1/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/ca8de24c-263e-4ebf-bf50-76dce4b35b24/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/567a9cd3-608c-47a9-a56b-c4df35765a34'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f9f1af81-62dd-452d-b204-23ac7069952f'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/567a9cd3-608c-47a9-a56b-c4df35765a34 HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f9f1af81-62dd-452d-b204-23ac7069952f HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/3d625b6c-cad3-4131-a6f6-9444f94844e7/adapters/1/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/147743be-ed6e-4cef-b8e8-c6bd62997f15/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/3d625b6c-cad3-4131-a6f6-9444f94844e7/adapters/1/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/147743be-ed6e-4cef-b8e8-c6bd62997f15/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/26a0d7b0-0ea9-48b2-acac-7e1d1911c046/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/c45a3845-3307-41bf-b6b4-03b0831a0f8d/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/26a0d7b0-0ea9-48b2-acac-7e1d1911c046/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/c45a3845-3307-41bf-b6b4-03b0831a0f8d/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/b5eaec0c-8225-4fe2-9cef-61ec1d4124ba'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/f6eeb14c-6238-4c1a-a5a6-6216b4c14807'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/b5eaec0c-8225-4fe2-9cef-61ec1d4124ba HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/f6eeb14c-6238-4c1a-a5a6-6216b4c14807 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/57f749d2-d6fd-484b-bf5d-85d29e065c1d/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/3a07849a-b896-4965-b5c1-473adfbd865b/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/57f749d2-d6fd-484b-bf5d-85d29e065c1d/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/3a07849a-b896-4965-b5c1-473adfbd865b/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/interfaces'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/interfaces'
|
||||
|
||||
GET /v2/interfaces HTTP/1.1
|
||||
GET /v2/hypervisor/interfaces HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/iou/vms'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/iou/vms'
|
||||
|
||||
GET /v2/iou/vms HTTP/1.1
|
||||
GET /v2/hypervisor/iou/vms HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects'
|
||||
|
||||
GET /v2/projects HTTP/1.1
|
||||
GET /v2/hypervisor/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -15,12 +15,12 @@ X-ROUTE: /v2/hypervisor/projects
|
||||
[
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b",
|
||||
"temporary": false
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"temporary": false
|
||||
}
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/40010203-0405-0607-0809-0a0b0c0d0e02'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/40010203-0405-0607-0809-0a0b0c0d0e02'
|
||||
|
||||
GET /v2/projects/40010203-0405-0607-0809-0a0b0c0d0e02 HTTP/1.1
|
||||
GET /v2/hypervisor/projects/40010203-0405-0607-0809-0a0b0c0d0e02 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/files'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/files'
|
||||
|
||||
GET /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/files HTTP/1.1
|
||||
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/files HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/840619f6-3af5-4094-abdd-27e15cce205d'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c7787726-666f-48df-ba31-c78a084d8736'
|
||||
|
||||
GET /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/840619f6-3af5-4094-abdd-27e15cce205d HTTP/1.1
|
||||
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c7787726-666f-48df-ba31-c78a084d8736 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -28,6 +28,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
|
||||
"serial_adapters": 2,
|
||||
"startup_config": null,
|
||||
"use_default_iou_values": true,
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/840619f6-3af5-4094-abdd-27e15cce205d",
|
||||
"vm_id": "840619f6-3af5-4094-abdd-27e15cce205d"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/c7787726-666f-48df-ba31-c78a084d8736",
|
||||
"vm_id": "c7787726-666f-48df-ba31-c78a084d8736"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/45ec2ea9-5569-42d0-aef3-4112437ee7ac/configs'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d721a97b-5287-4dd6-8d40-d161af4a0fa2/configs'
|
||||
|
||||
GET /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/45ec2ea9-5569-42d0-aef3-4112437ee7ac/configs HTTP/1.1
|
||||
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d721a97b-5287-4dd6-8d40-d161af4a0fa2/configs HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/446f30be-e4c8-4f96-9610-e9e1f5178511'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15480e0d-035f-4cca-b84d-0db90080ad4f'
|
||||
|
||||
GET /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/446f30be-e4c8-4f96-9610-e9e1f5178511 HTTP/1.1
|
||||
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15480e0d-035f-4cca-b84d-0db90080ad4f HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -42,15 +42,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:00:ab:85:11:00",
|
||||
"mac_address": "00:00:ab:ad:4f:00",
|
||||
"name": "PC TEST 1",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm4bp6di7/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"usage": "",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/446f30be-e4c8-4f96-9610-e9e1f5178511",
|
||||
"vm_id": "446f30be-e4c8-4f96-9610-e9e1f5178511"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/15480e0d-035f-4cca-b84d-0db90080ad4f",
|
||||
"vm_id": "15480e0d-035f-4cca-b84d-0db90080ad4f"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/68cfe7a5-4303-449e-ae3c-ae821be9052d'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/586af506-86a2-4143-8333-c01364807d84'
|
||||
|
||||
GET /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/68cfe7a5-4303-449e-ae3c-ae821be9052d HTTP/1.1
|
||||
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/586af506-86a2-4143-8333-c01364807d84 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -24,6 +24,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/virtualbox/vms/{vm_id}
|
||||
"ram": 0,
|
||||
"use_any_adapter": false,
|
||||
"vm_directory": null,
|
||||
"vm_id": "68cfe7a5-4303-449e-ae3c-ae821be9052d",
|
||||
"vm_id": "586af506-86a2-4143-8333-c01364807d84",
|
||||
"vmname": "VMTEST"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/16145952-ade4-4107-8dc3-ae77319214cf'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c9601208-f635-4726-9435-3c67ad325216'
|
||||
|
||||
GET /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/16145952-ade4-4107-8dc3-ae77319214cf HTTP/1.1
|
||||
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c9601208-f635-4726-9435-3c67ad325216 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -21,6 +21,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms/{vm_id}
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/16145952-ade4-4107-8dc3-ae77319214cf",
|
||||
"vm_id": "16145952-ade4-4107-8dc3-ae77319214cf"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/c9601208-f635-4726-9435-3c67ad325216",
|
||||
"vm_id": "c9601208-f635-4726-9435-3c67ad325216"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/qemu/binaries' -d '{"archs": ["i386"]}'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/qemu/binaries' -d '{"archs": ["i386"]}'
|
||||
|
||||
GET /v2/qemu/binaries HTTP/1.1
|
||||
GET /v2/hypervisor/qemu/binaries HTTP/1.1
|
||||
{
|
||||
"archs": [
|
||||
"i386"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/qemu/capabilities'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/qemu/capabilities'
|
||||
|
||||
GET /v2/qemu/capabilities HTTP/1.1
|
||||
GET /v2/hypervisor/qemu/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:8000/v2/version'
|
||||
curl -i -X GET 'http://localhost:8000/v2/hypervisor/version'
|
||||
|
||||
GET /v2/version HTTP/1.1
|
||||
GET /v2/hypervisor/version HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/config/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/config/reload' -d '{}'
|
||||
|
||||
POST /v2/config/reload HTTP/1.1
|
||||
POST /v2/hypervisor/config/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects' -d '{"name": "test", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects' -d '{"name": "test", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
||||
|
||||
POST /v2/projects HTTP/1.1
|
||||
POST /v2/hypervisor/projects HTTP/1.1
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/commit' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/commit' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/commit HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/commit HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/9aaf281c-5629-487b-92cf-355f04bd30ac/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/196f5b72-1b18-416e-9588-d6aab49f27cc/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/9aaf281c-5629-487b-92cf-355f04bd30ac/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/196f5b72-1b18-416e-9588-d6aab49f27cc/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/290150b5-45a7-408d-8a01-bd07f3ad38d7/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/faad9918-44bf-4a2e-9516-09e678281bb3/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/290150b5-45a7-408d-8a01-bd07f3ad38d7/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/faad9918-44bf-4a2e-9516-09e678281bb3/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
@ -16,5 +16,5 @@ SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/hypervisor/projects/{project_id}/docker/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/00b760c2-6f4f-4d13-a915-44c986382b46/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/75522061-1500-4a40-bbf4-8d26f3b3e307/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/00b760c2-6f4f-4d13-a915-44c986382b46/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/75522061-1500-4a40-bbf4-8d26f3b3e307/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms' -d '{"name": "PC TEST 1", "path": "iou.bin", "startup_config_content": "hostname test", "vm_id": "f66ef162-9427-4d26-903e-c6b917bdeefd"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms' -d '{"name": "PC TEST 1", "path": "iou.bin", "startup_config_content": "hostname test", "vm_id": "09db88eb-06f5-4e4d-b24e-d3a7a41ac14a"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms HTTP/1.1
|
||||
{
|
||||
"name": "PC TEST 1",
|
||||
"path": "iou.bin",
|
||||
"startup_config_content": "hostname test",
|
||||
"vm_id": "f66ef162-9427-4d26-903e-c6b917bdeefd"
|
||||
"vm_id": "09db88eb-06f5-4e4d-b24e-d3a7a41ac14a"
|
||||
}
|
||||
|
||||
|
||||
@ -33,6 +33,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms
|
||||
"serial_adapters": 2,
|
||||
"startup_config": "startup-config.cfg",
|
||||
"use_default_iou_values": true,
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/f66ef162-9427-4d26-903e-c6b917bdeefd",
|
||||
"vm_id": "f66ef162-9427-4d26-903e-c6b917bdeefd"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/09db88eb-06f5-4e4d-b24e-d3a7a41ac14a",
|
||||
"vm_id": "09db88eb-06f5-4e4d-b24e-d3a7a41ac14a"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/a3646555-b2aa-4c7d-b3cf-3a66789d23ae/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_generic_ethernet"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/b67c3a66-9ad6-4be2-b981-a8c9a5464808/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_generic_ethernet"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/a3646555-b2aa-4c7d-b3cf-3a66789d23ae/adapters/1/ports/0/nio HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/b67c3a66-9ad6-4be2-b981-a8c9a5464808/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_generic_ethernet"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/7bb550f3-8ae2-40a4-87c5-f5937c3d1e24/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/75c04a74-e006-405b-a074-9d83c5bbed94/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/7bb550f3-8ae2-40a4-87c5-f5937c3d1e24/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/75c04a74-e006-405b-a074-9d83c5bbed94/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
@ -16,5 +16,5 @@ SERVER: Python/3.5 GNS3/1.5.0dev1
|
||||
X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/643a96f0-f900-43c3-81bb-11da1785ad24/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f9fe45c9-88b8-486b-9811-907232d3317a/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/643a96f0-f900-43c3-81bb-11da1785ad24/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f9fe45c9-88b8-486b-9811-907232d3317a/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/69021a47-ed92-4c4b-8854-f677f061ed89/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6923429a-4f6c-44bd-bb77-784834fd9660/reload' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/69021a47-ed92-4c4b-8854-f677f061ed89/reload HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6923429a-4f6c-44bd-bb77-784834fd9660/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8685620d-f041-41df-84e3-99bbecb0c49a/start' -d '{"iourc_content": "test"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683/start' -d '{"iourc_content": "test"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8685620d-f041-41df-84e3-99bbecb0c49a/start HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683/start HTTP/1.1
|
||||
{
|
||||
"iourc_content": "test"
|
||||
}
|
||||
@ -18,7 +18,7 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}/start
|
||||
"command_line": "",
|
||||
"console": 2001,
|
||||
"ethernet_adapters": 2,
|
||||
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbejksl_b/iourc",
|
||||
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpu9_4fykf/iourc",
|
||||
"l1_keepalives": false,
|
||||
"md5sum": null,
|
||||
"name": "PC TEST 1",
|
||||
@ -30,6 +30,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}/start
|
||||
"serial_adapters": 2,
|
||||
"startup_config": null,
|
||||
"use_default_iou_values": true,
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/8685620d-f041-41df-84e3-99bbecb0c49a",
|
||||
"vm_id": "8685620d-f041-41df-84e3-99bbecb0c49a"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683",
|
||||
"vm_id": "8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/132d5e4b-33ee-47a6-aa9e-d2aae39ba341/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e44c8270-e003-482c-b32e-fb77e248b3e2/stop' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/132d5e4b-33ee-47a6-aa9e-d2aae39ba341/stop HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e44c8270-e003-482c-b32e-fb77e248b3e2/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm4bp6di7/qemu-system-x86_64", "ram": 1024}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64", "ram": 1024}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms HTTP/1.1
|
||||
{
|
||||
"hda_disk_image": "linux\u8f7d.img",
|
||||
"name": "PC TEST 1",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm4bp6di7/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
@ -47,15 +47,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:00:ab:20:ff:00",
|
||||
"mac_address": "00:00:ab:ad:d0:00",
|
||||
"name": "PC TEST 1",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm4bp6di7/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"usage": "",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/beb792c9-809b-4ebc-9f39-3353018120ff",
|
||||
"vm_id": "beb792c9-809b-4ebc-9f39-3353018120ff"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/3df1ae0f-950d-4905-b07e-0093aa16add0",
|
||||
"vm_id": "3df1ae0f-950d-4905-b07e-0093aa16add0"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/22aaea06-baef-4abd-9787-3ed66e218120/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f540d2ea-ea58-40f2-a1b7-89f76df56c06/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/22aaea06-baef-4abd-9787-3ed66e218120/adapters/1/ports/0/nio HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f540d2ea-ea58-40f2-a1b7-89f76df56c06/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "eth0",
|
||||
"type": "nio_generic_ethernet"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f581119f-be41-46c1-ba4a-b98aa2fec483/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/7f261004-a1ef-4b86-af39-1b9024e08840/reload' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f581119f-be41-46c1-ba4a-b98aa2fec483/reload HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/7f261004-a1ef-4b86-af39-1b9024e08840/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/9934da10-d24c-4265-a468-518a51b36e3c/resume' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/3c4e40ae-1455-4c5e-8f0d-5a4774b3ace3/resume' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/9934da10-d24c-4265-a468-518a51b36e3c/resume HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/3c4e40ae-1455-4c5e-8f0d-5a4774b3ace3/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/5d4a1d61-2fb5-4e6e-8020-d19330742baf/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15782ee6-13a2-424c-9fa7-c41f6e35c361/start' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/5d4a1d61-2fb5-4e6e-8020-d19330742baf/start HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15782ee6-13a2-424c-9fa7-c41f6e35c361/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -42,15 +42,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}/start
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:00:ab:2b:af:00",
|
||||
"mac_address": "00:00:ab:c3:61:00",
|
||||
"name": "PC TEST 1",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm4bp6di7/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"usage": "",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/5d4a1d61-2fb5-4e6e-8020-d19330742baf",
|
||||
"vm_id": "5d4a1d61-2fb5-4e6e-8020-d19330742baf"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/15782ee6-13a2-424c-9fa7-c41f6e35c361",
|
||||
"vm_id": "15782ee6-13a2-424c-9fa7-c41f6e35c361"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/804bab19-1ddc-4bbd-99a7-a81d4d0713a2/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/937f6d1a-23e4-488d-823f-0049a0402534/stop' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/804bab19-1ddc-4bbd-99a7-a81d4d0713a2/stop HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/937f6d1a-23e4-488d-823f-0049a0402534/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/0fd95266-a532-422c-90b7-6d5992e62917/suspend' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/bced5cc5-bcb2-44bb-8067-7de89438dfa1/suspend' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/0fd95266-a532-422c-90b7-6d5992e62917/suspend HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/bced5cc5-bcb2-44bb-8067-7de89438dfa1/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms HTTP/1.1
|
||||
{
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
@ -28,6 +28,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/virtualbox/vms
|
||||
"ram": 0,
|
||||
"use_any_adapter": false,
|
||||
"vm_directory": null,
|
||||
"vm_id": "e403e2fe-8439-4eb8-8994-7d23df8137b4",
|
||||
"vm_id": "e5ddf8a0-a140-42e1-a10c-47604b48c408",
|
||||
"vmname": "VM1"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/9c17b8f0-42d5-4a75-8039-498694959194/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/b4ae14ae-5334-48b5-b4aa-478a8a6bd409/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/9c17b8f0-42d5-4a75-8039-498694959194/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/b4ae14ae-5334-48b5-b4aa-478a8a6bd409/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/83a7af23-088d-454c-81f9-00473e8d4a8a/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f96eee10-f0ba-49ee-9a58-8c21351efd5b/reload' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/83a7af23-088d-454c-81f9-00473e8d4a8a/reload HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f96eee10-f0ba-49ee-9a58-8c21351efd5b/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2a29eb7c-804f-44cb-abf1-d27e35b24255/resume' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/3304d24e-d971-4fa7-8109-b5be19e6eea1/resume' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2a29eb7c-804f-44cb-abf1-d27e35b24255/resume HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/3304d24e-d971-4fa7-8109-b5be19e6eea1/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/5b691e48-5bce-4370-92f1-58c1450c86b2/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2ac32a6b-7056-497a-b11e-ecdb293490a1/start' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/5b691e48-5bce-4370-92f1-58c1450c86b2/start HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2ac32a6b-7056-497a-b11e-ecdb293490a1/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/a4385112-5c76-42d0-8a55-c709f63f4c5c/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/38af0900-a93b-43fe-875e-810318f86673/stop' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/a4385112-5c76-42d0-8a55-c709f63f4c5c/stop HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/38af0900-a93b-43fe-875e-810318f86673/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/6787b73f-6478-426e-be08-8e6b2a90104a/suspend' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/ee566163-aa7a-4519-a1c2-0917bb3f3054/suspend' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/6787b73f-6478-426e-be08-8e6b2a90104a/suspend HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/ee566163-aa7a-4519-a1c2-0917bb3f3054/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms' -d '{"name": "PC TEST 1"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms' -d '{"name": "PC TEST 1"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms HTTP/1.1
|
||||
{
|
||||
"name": "PC TEST 1"
|
||||
}
|
||||
@ -23,6 +23,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/8fcbebf4-0bf2-4726-9a86-9b7b83f0ce0a",
|
||||
"vm_id": "8fcbebf4-0bf2-4726-9a86-9b7b83f0ce0a"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/87780177-c1f1-4fbd-99b7-4c6d731bcf43",
|
||||
"vm_id": "87780177-c1f1-4fbd-99b7-4c6d731bcf43"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/2979d4a4-1eed-4ba1-9b68-36245c71c16d/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e326747d-1260-42d0-a711-ef2406bb44e0/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/2979d4a4-1eed-4ba1-9b68-36245c71c16d/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e326747d-1260-42d0-a711-ef2406bb44e0/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/087f8436-7044-406a-b467-04314977868b/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e5b8a493-3353-48b4-af5e-d57dd492c1f1/reload' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/087f8436-7044-406a-b467-04314977868b/reload HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e5b8a493-3353-48b4-af5e-d57dd492c1f1/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e3e00c0d-832b-45f4-bbc6-5caeec7bd6db/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/ff84c991-ed15-4d2c-8bfd-b1e07174efd5/start' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e3e00c0d-832b-45f4-bbc6-5caeec7bd6db/start HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/ff84c991-ed15-4d2c-8bfd-b1e07174efd5/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -21,6 +21,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms/{vm_id}/start
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e3e00c0d-832b-45f4-bbc6-5caeec7bd6db",
|
||||
"vm_id": "e3e00c0d-832b-45f4-bbc6-5caeec7bd6db"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/ff84c991-ed15-4d2c-8bfd-b1e07174efd5",
|
||||
"vm_id": "ff84c991-ed15-4d2c-8bfd-b1e07174efd5"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/68e0e7b5-8bae-4558-b528-5a548494985d/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c8509a6c-2e77-4eac-9f0b-9e450851e88a/stop' -d '{}'
|
||||
|
||||
POST /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/68e0e7b5-8bae-4558-b528-5a548494985d/stop HTTP/1.1
|
||||
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c8509a6c-2e77-4eac-9f0b-9e450851e88a/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/qemu/img' -d '{"cluster_size": 64, "format": "qcow2", "lazy_refcounts": "off", "path": "/tmp/hda.qcow2", "preallocation": "metadata", "qemu_img": "/tmp/qemu-img", "refcount_bits": 12, "size": 100}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/qemu/img' -d '{"cluster_size": 64, "format": "qcow2", "lazy_refcounts": "off", "path": "/tmp/hda.qcow2", "preallocation": "metadata", "qemu_img": "/tmp/qemu-img", "refcount_bits": 12, "size": 100}'
|
||||
|
||||
POST /v2/qemu/img HTTP/1.1
|
||||
POST /v2/hypervisor/qemu/img HTTP/1.1
|
||||
{
|
||||
"cluster_size": 64,
|
||||
"format": "qcow2",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:8000/v2/version' -d '{"version": "1.5.0dev1"}'
|
||||
curl -i -X POST 'http://localhost:8000/v2/hypervisor/version' -d '{"version": "1.5.0dev1"}'
|
||||
|
||||
POST /v2/version HTTP/1.1
|
||||
POST /v2/hypervisor/version HTTP/1.1
|
||||
{
|
||||
"version": "1.5.0dev1"
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
curl -i -X PUT 'http://localhost:8000/v2/projects/90010203-0405-0607-0809-0a0b0c0d0e0b' -d '{"name": "second_name", "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-341/test_update_path_project_non_l0"}'
|
||||
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/90010203-0405-0607-0809-0a0b0c0d0e0b' -d '{"name": "second_name", "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-343/test_update_path_project_non_l0"}'
|
||||
|
||||
PUT /v2/projects/90010203-0405-0607-0809-0a0b0c0d0e0b HTTP/1.1
|
||||
PUT /v2/hypervisor/projects/90010203-0405-0607-0809-0a0b0c0d0e0b HTTP/1.1
|
||||
{
|
||||
"name": "second_name",
|
||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-341/test_update_path_project_non_l0"
|
||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-343/test_update_path_project_non_l0"
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/49b015b8-75f4-4ed9-940f-0792bb2b6c23' -d '{"console": 2003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172' -d '{"console": 2003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
|
||||
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/49b015b8-75f4-4ed9-940f-0792bb2b6c23 HTTP/1.1
|
||||
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172 HTTP/1.1
|
||||
{
|
||||
"console": 2003,
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
@ -28,6 +28,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/docker/vms/{vm_id}
|
||||
"name": "test",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"start_command": "yes",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/49b015b8-75f4-4ed9-940f-0792bb2b6c23",
|
||||
"vm_id": "49b015b8-75f4-4ed9-940f-0792bb2b6c23"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172",
|
||||
"vm_id": "5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/53188672-e84b-4177-a430-dcbf5c4a0e47' -d '{"console": 2002, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
||||
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/55ecff0a-cc62-4577-86b3-a698c82d1e22' -d '{"console": 2002, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
||||
|
||||
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/53188672-e84b-4177-a430-dcbf5c4a0e47 HTTP/1.1
|
||||
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/55ecff0a-cc62-4577-86b3-a698c82d1e22 HTTP/1.1
|
||||
{
|
||||
"console": 2002,
|
||||
"ethernet_adapters": 4,
|
||||
@ -27,7 +27,7 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
|
||||
"command_line": "",
|
||||
"console": 2002,
|
||||
"ethernet_adapters": 4,
|
||||
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpgrmrfaw9/iourc",
|
||||
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpa6d2m_yh/iourc",
|
||||
"l1_keepalives": true,
|
||||
"md5sum": null,
|
||||
"name": "test",
|
||||
@ -39,6 +39,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
|
||||
"serial_adapters": 0,
|
||||
"startup_config": "startup-config.cfg",
|
||||
"use_default_iou_values": true,
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1tufm1gg/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/53188672-e84b-4177-a430-dcbf5c4a0e47",
|
||||
"vm_id": "53188672-e84b-4177-a430-dcbf5c4a0e47"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/55ecff0a-cc62-4577-86b3-a698c82d1e22",
|
||||
"vm_id": "55ecff0a-cc62-4577-86b3-a698c82d1e22"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/5cfe2a70-3698-4cab-90f4-50a125960d4a' -d '{"console": 2002, "hdb_disk_image": "linux.img", "name": "test", "ram": 1024}'
|
||||
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/65d5c9f4-194d-4fb7-9a58-9fcbffaae1de' -d '{"console": 2002, "hdb_disk_image": "linux.img", "name": "test", "ram": 1024}'
|
||||
|
||||
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/5cfe2a70-3698-4cab-90f4-50a125960d4a HTTP/1.1
|
||||
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/65d5c9f4-194d-4fb7-9a58-9fcbffaae1de HTTP/1.1
|
||||
{
|
||||
"console": 2002,
|
||||
"hdb_disk_image": "linux.img",
|
||||
@ -47,15 +47,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:00:ab:0d:4a:00",
|
||||
"mac_address": "00:00:ab:e1:de:00",
|
||||
"name": "test",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm4bp6di7/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"usage": "",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/5cfe2a70-3698-4cab-90f4-50a125960d4a",
|
||||
"vm_id": "5cfe2a70-3698-4cab-90f4-50a125960d4a"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/65d5c9f4-194d-4fb7-9a58-9fcbffaae1de",
|
||||
"vm_id": "65d5c9f4-194d-4fb7-9a58-9fcbffaae1de"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2e3f8024-469c-428e-8648-a2cc5d6cf67c' -d '{"console": 2011, "name": "test"}'
|
||||
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1aad6ad2-02bc-4532-af65-c0efdfbf1d85' -d '{"console": 2011, "name": "test"}'
|
||||
|
||||
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2e3f8024-469c-428e-8648-a2cc5d6cf67c HTTP/1.1
|
||||
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1aad6ad2-02bc-4532-af65-c0efdfbf1d85 HTTP/1.1
|
||||
{
|
||||
"console": 2011,
|
||||
"name": "test"
|
||||
@ -27,6 +27,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/virtualbox/vms/{vm_id}
|
||||
"ram": 0,
|
||||
"use_any_adapter": false,
|
||||
"vm_directory": null,
|
||||
"vm_id": "2e3f8024-469c-428e-8648-a2cc5d6cf67c",
|
||||
"vm_id": "1aad6ad2-02bc-4532-af65-c0efdfbf1d85",
|
||||
"vmname": "VMTEST"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/aef62ebb-895a-46a4-8f8c-c6f98089af05' -d '{"console": 2012, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/bc323133-ac7e-48bb-ba9e-f834303e9236' -d '{"console": 2012, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
|
||||
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/aef62ebb-895a-46a4-8f8c-c6f98089af05 HTTP/1.1
|
||||
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/bc323133-ac7e-48bb-ba9e-f834303e9236 HTTP/1.1
|
||||
{
|
||||
"console": 2012,
|
||||
"name": "test",
|
||||
@ -25,6 +25,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms/{vm_id}
|
||||
"startup_script": "ip 192.168.1.1",
|
||||
"startup_script_path": "startup.vpc",
|
||||
"status": "stopped",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp6s9gtipf/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/aef62ebb-895a-46a4-8f8c-c6f98089af05",
|
||||
"vm_id": "aef62ebb-895a-46a4-8f8c-c6f98089af05"
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/bc323133-ac7e-48bb-ba9e-f834303e9236",
|
||||
"vm_id": "bc323133-ac7e-48bb-ba9e-f834303e9236"
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/hypervisors
|
||||
/v2/hypervisors
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/controller/hypervisors
|
||||
POST /v2/hypervisors
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Register a hypervisor
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/hypervisors/shutdown
|
||||
/v2/hypervisors/shutdown
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/controller/hypervisors/shutdown
|
||||
POST /v2/hypervisors/shutdown
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Shutdown the local hypervisor
|
||||
|
||||
|
8
docs/api/v2/controller/link.rst
Normal file
8
docs/api/v2/controller/link.rst
Normal file
@ -0,0 +1,8 @@
|
||||
Link
|
||||
-----------------------------
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
:maxdepth: 2
|
||||
|
||||
link/*
|
38
docs/api/v2/controller/link/projectsprojectidlinks.rst
Normal file
38
docs/api/v2/controller/link/projectsprojectidlinks.rst
Normal file
@ -0,0 +1,38 @@
|
||||
/v2/projects/{project_id}/links
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/projects/**{project_id}**/links
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Create a new link instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **project_id**: UUID for the project
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
- **400**: Invalid request
|
||||
- **201**: Link created
|
||||
|
||||
Input
|
||||
*******
|
||||
.. raw:: html
|
||||
|
||||
<table>
|
||||
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
||||
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link identifier</td> </tr>
|
||||
<tr><td>vms</td> <td>✔</td> <td>array</td> <td>List of the VMS</td> </tr>
|
||||
</table>
|
||||
|
||||
Output
|
||||
*******
|
||||
.. raw:: html
|
||||
|
||||
<table>
|
||||
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
||||
<tr><td>link_id</td> <td> </td> <td>string</td> <td>Link identifier</td> </tr>
|
||||
<tr><td>vms</td> <td>✔</td> <td>array</td> <td>List of the VMS</td> </tr>
|
||||
</table>
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/projects
|
||||
/v2/projects
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/controller/projects
|
||||
POST /v2/projects
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Create a new project on the server
|
||||
|
||||
@ -36,9 +36,3 @@ Output
|
||||
<tr><td>temporary</td> <td>✔</td> <td>boolean</td> <td>If project is a temporary project</td> </tr>
|
||||
</table>
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_post_projects.txt
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/projects/{project_id}
|
||||
/v2/projects/{project_id}
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
DELETE /v2/controller/projects/**{project_id}**
|
||||
DELETE /v2/projects/**{project_id}**
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Delete a project from disk
|
||||
|
||||
@ -16,9 +16,3 @@ Response status codes
|
||||
- **404**: The project doesn't exist
|
||||
- **204**: Changes have been written on disk
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_delete_projectsprojectid.txt
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/projects/{project_id}/close
|
||||
/v2/projects/{project_id}/close
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/controller/projects/**{project_id}**/close
|
||||
POST /v2/projects/**{project_id}**/close
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Close a project
|
||||
|
||||
@ -16,9 +16,3 @@ Response status codes
|
||||
- **404**: The project doesn't exist
|
||||
- **204**: The project has been closed
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_post_projectsprojectidclose.txt
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/projects/{project_id}/commit
|
||||
/v2/projects/{project_id}/commit
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/controller/projects/**{project_id}**/commit
|
||||
POST /v2/projects/**{project_id}**/commit
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Write changes on disk
|
||||
|
||||
@ -16,9 +16,3 @@ Response status codes
|
||||
- **404**: The project doesn't exist
|
||||
- **204**: Changes have been written on disk
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_post_projectsprojectidcommit.txt
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/version
|
||||
/v2/version
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
GET /v2/controller/version
|
||||
GET /v2/version
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Retrieve the server version number
|
||||
|
||||
@ -21,14 +21,8 @@ Output
|
||||
<tr><td>version</td> <td>✔</td> <td>string</td> <td>Version number human readable</td> </tr>
|
||||
</table>
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_get_version.txt
|
||||
|
||||
|
||||
POST /v2/controller/version
|
||||
POST /v2/version
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Check if version is the same as the server
|
||||
|
||||
@ -57,9 +51,3 @@ Output
|
||||
<tr><td>version</td> <td>✔</td> <td>string</td> <td>Version number human readable</td> </tr>
|
||||
</table>
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_post_version.txt
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
/v2/controller/projects/{project_id}/vms
|
||||
/v2/projects/{project_id}/vms
|
||||
------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
.. contents::
|
||||
|
||||
POST /v2/controller/projects/**{project_id}**/vms
|
||||
POST /v2/projects/**{project_id}**/vms
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Create a new VM instance
|
||||
|
||||
@ -48,9 +48,3 @@ Output
|
||||
<tr><td>vm_type</td> <td>✔</td> <td>enum</td> <td>Possible values: docker, dynamips, vpcs, virtualbox, vmware, iou</td> </tr>
|
||||
</table>
|
||||
|
||||
Sample session
|
||||
***************
|
||||
|
||||
|
||||
.. literalinclude:: ../../../examples/controller_post_projectsprojectidvms.txt
|
||||
|
||||
|
@ -9,8 +9,8 @@ Delete a Docker container
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **project_id**: UUID for the project
|
||||
- **id**: ID for the container
|
||||
- **project_id**: UUID for the project
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Add a NIO to a Docker container
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter where the nio should be added
|
||||
- **id**: ID of the container
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
@ -33,10 +33,10 @@ Remove a NIO from a Docker container
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter where the nio should be added
|
||||
- **id**: ID of the container
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Start a packet capture on a IOU VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to start a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Stop a packet capture on a IOU VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to stop a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Add a NIO to a Dynamips VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter where the nio should be added
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
@ -27,10 +27,10 @@ Remove a NIO from a Dynamips VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter from where the nio should be removed
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Start a packet capture on a Dynamips VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to start a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Stop a packet capture on a Dynamips VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to stop a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Add a NIO to a IOU instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port where the nio should be added
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Network adapter where the nio is located
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port where the nio should be added
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
@ -33,10 +33,10 @@ Remove a NIO from a IOU instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port from where the nio should be removed
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Network adapter where the nio is located
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port from where the nio should be removed
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Start a packet capture on a IOU VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to start a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Stop a packet capture on a IOU VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to stop a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Add a NIO to a Qemu VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Network adapter where the nio is located
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
@ -33,10 +33,10 @@ Remove a NIO from a Qemu VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Network adapter where the nio is located
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Add a NIO to a VirtualBox VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter where the nio should be added
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
@ -33,10 +33,10 @@ Remove a NIO from a VirtualBox VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter from where the nio should be removed
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Start a packet capture on a VirtualBox VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to start a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
@ -9,10 +9,10 @@ Stop a packet capture on a VirtualBox VM instance
|
||||
|
||||
Parameters
|
||||
**********
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
- **project_id**: UUID for the project
|
||||
- **adapter_number**: Adapter to stop a packet capture
|
||||
- **vm_id**: UUID for the instance
|
||||
- **port_number**: Port on the adapter (always 0)
|
||||
|
||||
Response status codes
|
||||
**********************
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user