diff --git a/docs/api/examples/compute_delete_projectsprojectidcloudnodesnodeid.txt b/docs/api/examples/compute_delete_projectsprojectidcloudnodesnodeid.txt new file mode 100644 index 00000000..685f84b0 --- /dev/null +++ b/docs/api/examples/compute_delete_projectsprojectidcloudnodesnodeid.txt @@ -0,0 +1,12 @@ +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f0cbbcef-3abe-43b0-bc94-9ef756185aec' + +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f0cbbcef-3abe-43b0-bc94-9ef756185aec HTTP/1.1 + + + +HTTP/1.1 204 +CONTENT-LENGTH: 0 +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id} + diff --git a/docs/api/examples/compute_delete_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt new file mode 100644 index 00000000..1fbd6e89 --- /dev/null +++ b/docs/api/examples/compute_delete_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -0,0 +1,12 @@ +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/86c08af6-cc43-4051-a3d2-f441122611dd/adapters/0/ports/0/nio' + +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/86c08af6-cc43-4051-a3d2-f441122611dd/adapters/0/ports/0/nio HTTP/1.1 + + + +HTTP/1.1 204 +CONTENT-LENGTH: 0 +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio + diff --git a/docs/api/examples/compute_delete_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt index e4648d92..4a712a32 100644 --- a/docs/api/examples/compute_delete_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_delete_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3dc0854f-0bbe-463c-ad04-6f5c99786540/adapters/0/ports/0/nio' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e8adbc13-6149-4541-8e1f-e911ed3cb1d3/adapters/0/ports/0/nio' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3dc0854f-0bbe-463c-ad04-6f5c99786540/adapters/0/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e8adbc13-6149-4541-8e1f-e911ed3cb1d3/adapters/0/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidiounodesnodeid.txt b/docs/api/examples/compute_delete_projectsprojectidiounodesnodeid.txt index 187e484b..45852586 100644 --- a/docs/api/examples/compute_delete_projectsprojectidiounodesnodeid.txt +++ b/docs/api/examples/compute_delete_projectsprojectidiounodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/51d71d03-f1e8-4863-bcb7-cc13edbab6ef' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e13a534-e22a-4391-8412-279bde813e3b' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/51d71d03-f1e8-4863-bcb7-cc13edbab6ef HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e13a534-e22a-4391-8412-279bde813e3b HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt index e192d9c1..10bad1d7 100644 --- a/docs/api/examples/compute_delete_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_delete_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8ec9575e-f928-4e6f-becd-795df7a0a20e/adapters/1/ports/0/nio' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c9b300c3-f0da-4ad5-a2f7-9ee686cc6f83/adapters/1/ports/0/nio' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8ec9575e-f928-4e6f-becd-795df7a0a20e/adapters/1/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c9b300c3-f0da-4ad5-a2f7-9ee686cc6f83/adapters/1/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidnatnodesnodeid.txt b/docs/api/examples/compute_delete_projectsprojectidnatnodesnodeid.txt new file mode 100644 index 00000000..a52c8e91 --- /dev/null +++ b/docs/api/examples/compute_delete_projectsprojectidnatnodesnodeid.txt @@ -0,0 +1,12 @@ +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d730fde6-f8d2-4be9-a8fd-f08fe82624b9' + +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d730fde6-f8d2-4be9-a8fd-f08fe82624b9 HTTP/1.1 + + + +HTTP/1.1 204 +CONTENT-LENGTH: 0 +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id} + diff --git a/docs/api/examples/compute_delete_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt new file mode 100644 index 00000000..70f42b21 --- /dev/null +++ b/docs/api/examples/compute_delete_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -0,0 +1,12 @@ +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/4a4b37e2-0862-4fdf-8083-6009b27d1794/adapters/0/ports/0/nio' + +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/4a4b37e2-0862-4fdf-8083-6009b27d1794/adapters/0/ports/0/nio HTTP/1.1 + + + +HTTP/1.1 204 +CONTENT-LENGTH: 0 +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio + diff --git a/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeid.txt b/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeid.txt index 4a128922..f0e1476e 100644 --- a/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeid.txt +++ b/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bce7d29c-4ccb-42ad-a3b5-6534cdf09273' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7aa06406-8520-4dcf-8e2b-de47d53ecaff' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bce7d29c-4ccb-42ad-a3b5-6534cdf09273 HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7aa06406-8520-4dcf-8e2b-de47d53ecaff HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 8a0b437b..5b50dfe5 100644 --- a/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a44ef10-61fb-4f0a-98d2-516a58b14e86/adapters/1/ports/0/nio' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7d7c54e3-582b-4ad7-8bde-67f4598a4862/adapters/1/ports/0/nio' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a44ef10-61fb-4f0a-98d2-516a58b14e86/adapters/1/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7d7c54e3-582b-4ad7-8bde-67f4598a4862/adapters/1/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 13513488..5215bd04 100644 --- a/docs/api/examples/compute_delete_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_delete_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/fb25ddff-28fc-47d5-9151-c0f919dbcf7e/adapters/0/ports/0/nio' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/db35105b-863d-432c-87f1-e21f5fa3b5f9/adapters/0/ports/0/nio' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/fb25ddff-28fc-47d5-9151-c0f919dbcf7e/adapters/0/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/db35105b-863d-432c-87f1-e21f5fa3b5f9/adapters/0/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeid.txt b/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeid.txt index 66923efb..c77e3ce3 100644 --- a/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeid.txt +++ b/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b2e2b69a-4934-4e7e-8bcd-e0f459725763' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/02f72086-d9a8-4dce-9df0-aea4274f84f1' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b2e2b69a-4934-4e7e-8bcd-e0f459725763 HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/02f72086-d9a8-4dce-9df0-aea4274f84f1 HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt index e3fe1f2c..abf9960c 100644 --- a/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5e88621b-9b70-4121-91a2-4f788ca8b3b3/adapters/0/ports/0/nio' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e4a2af70-947b-4253-a007-a47f06217846/adapters/0/ports/0/nio' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5e88621b-9b70-4121-91a2-4f788ca8b3b3/adapters/0/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e4a2af70-947b-4253-a007-a47f06217846/adapters/0/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_get_projects.txt b/docs/api/examples/compute_get_projects.txt index efcab351..e2e41882 100644 --- a/docs/api/examples/compute_get_projects.txt +++ b/docs/api/examples/compute_get_projects.txt @@ -14,10 +14,10 @@ X-ROUTE: /v2/compute/projects [ { "name": "test", - "project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b" + "project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f" }, { "name": "test", - "project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f" + "project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b" } ] diff --git a/docs/api/examples/compute_get_projectsprojectidcloudnodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidcloudnodesnodeid.txt new file mode 100644 index 00000000..b7e5d669 --- /dev/null +++ b/docs/api/examples/compute_get_projectsprojectidcloudnodesnodeid.txt @@ -0,0 +1,962 @@ +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/09247bb6-2ed3-4e6c-9f59-5092098eed69' + +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/09247bb6-2ed3-4e6c-9f59-5092098eed69 HTTP/1.1 + + + +HTTP/1.1 200 +CONTENT-LENGTH: 19808 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id} + +{ + "interfaces": [ + { + "name": "bridge0", + "type": "ethernet" + }, + { + "name": "en0", + "type": "ethernet" + }, + { + "name": "en1", + "type": "ethernet" + }, + { + "name": "en2", + "type": "ethernet" + }, + { + "name": "fw0", + "type": "ethernet" + }, + { + "name": "lo0", + "type": "ethernet" + }, + { + "name": "p2p0", + "type": "ethernet" + }, + { + "name": "vboxnet0", + "type": "ethernet" + }, + { + "name": "vboxnet1", + "type": "ethernet" + }, + { + "name": "vboxnet2", + "type": "ethernet" + }, + { + "name": "vboxnet3", + "type": "ethernet" + }, + { + "name": "vboxnet4", + "type": "ethernet" + }, + { + "name": "vboxnet5", + "type": "ethernet" + }, + { + "name": "vboxnet6", + "type": "ethernet" + }, + { + "name": "vboxnet7", + "type": "ethernet" + }, + { + "name": "vmnet1", + "type": "ethernet" + }, + { + "name": "vmnet10", + "type": "ethernet" + }, + { + "name": "vmnet100", + "type": "ethernet" + }, + { + "name": "vmnet101", + "type": "ethernet" + }, + { + "name": "vmnet102", + "type": "ethernet" + }, + { + "name": "vmnet103", + "type": "ethernet" + }, + { + "name": "vmnet104", + "type": "ethernet" + }, + { + "name": "vmnet105", + "type": "ethernet" + }, + { + "name": "vmnet106", + "type": "ethernet" + }, + { + "name": "vmnet107", + "type": "ethernet" + }, + { + "name": "vmnet108", + "type": "ethernet" + }, + { + "name": "vmnet109", + "type": "ethernet" + }, + { + "name": "vmnet11", + "type": "ethernet" + }, + { + "name": "vmnet110", + "type": "ethernet" + }, + { + "name": "vmnet111", + "type": "ethernet" + }, + { + "name": "vmnet112", + "type": "ethernet" + }, + { + "name": "vmnet113", + "type": "ethernet" + }, + { + "name": "vmnet114", + "type": "ethernet" + }, + { + "name": "vmnet115", + "type": "ethernet" + }, + { + "name": "vmnet116", + "type": "ethernet" + }, + { + "name": "vmnet117", + "type": "ethernet" + }, + { + "name": "vmnet118", + "type": "ethernet" + }, + { + "name": "vmnet119", + "type": "ethernet" + }, + { + "name": "vmnet12", + "type": "ethernet" + }, + { + "name": "vmnet120", + "type": "ethernet" + }, + { + "name": "vmnet121", + "type": "ethernet" + }, + { + "name": "vmnet122", + "type": "ethernet" + }, + { + "name": "vmnet123", + "type": "ethernet" + }, + { + "name": "vmnet124", + "type": "ethernet" + }, + { + "name": "vmnet125", + "type": "ethernet" + }, + { + "name": "vmnet126", + "type": "ethernet" + }, + { + "name": "vmnet127", + "type": "ethernet" + }, + { + "name": "vmnet128", + "type": "ethernet" + }, + { + "name": "vmnet129", + "type": "ethernet" + }, + { + "name": "vmnet13", + "type": "ethernet" + }, + { + "name": "vmnet130", + "type": "ethernet" + }, + { + "name": "vmnet131", + "type": "ethernet" + }, + { + "name": "vmnet132", + "type": "ethernet" + }, + { + "name": "vmnet133", + "type": "ethernet" + }, + { + "name": "vmnet134", + "type": "ethernet" + }, + { + "name": "vmnet135", + "type": "ethernet" + }, + { + "name": "vmnet136", + "type": "ethernet" + }, + { + "name": "vmnet137", + "type": "ethernet" + }, + { + "name": "vmnet138", + "type": "ethernet" + }, + { + "name": "vmnet139", + "type": "ethernet" + }, + { + "name": "vmnet14", + "type": "ethernet" + }, + { + "name": "vmnet140", + "type": "ethernet" + }, + { + "name": "vmnet141", + "type": "ethernet" + }, + { + "name": "vmnet142", + "type": "ethernet" + }, + { + "name": "vmnet143", + "type": "ethernet" + }, + { + "name": "vmnet144", + "type": "ethernet" + }, + { + "name": "vmnet145", + "type": "ethernet" + }, + { + "name": "vmnet146", + "type": "ethernet" + }, + { + "name": "vmnet147", + "type": "ethernet" + }, + { + "name": "vmnet148", + "type": "ethernet" + }, + { + "name": "vmnet149", + "type": "ethernet" + }, + { + "name": "vmnet15", + "type": "ethernet" + }, + { + "name": "vmnet150", + "type": "ethernet" + }, + { + "name": "vmnet151", + "type": "ethernet" + }, + { + "name": "vmnet152", + "type": "ethernet" + }, + { + "name": "vmnet153", + "type": "ethernet" + }, + { + "name": "vmnet154", + "type": "ethernet" + }, + { + "name": "vmnet155", + "type": "ethernet" + }, + { + "name": "vmnet156", + "type": "ethernet" + }, + { + "name": "vmnet157", + "type": "ethernet" + }, + { + "name": "vmnet158", + "type": "ethernet" + }, + { + "name": "vmnet159", + "type": "ethernet" + }, + { + "name": "vmnet16", + "type": "ethernet" + }, + { + "name": "vmnet160", + "type": "ethernet" + }, + { + "name": "vmnet161", + "type": "ethernet" + }, + { + "name": "vmnet162", + "type": "ethernet" + }, + { + "name": "vmnet163", + "type": "ethernet" + }, + { + "name": "vmnet164", + "type": "ethernet" + }, + { + "name": "vmnet165", + "type": "ethernet" + }, + { + "name": "vmnet166", + "type": "ethernet" + }, + { + "name": "vmnet167", + "type": "ethernet" + }, + { + "name": "vmnet168", + "type": "ethernet" + }, + { + "name": "vmnet169", + "type": "ethernet" + }, + { + "name": "vmnet17", + "type": "ethernet" + }, + { + "name": "vmnet170", + "type": "ethernet" + }, + { + "name": "vmnet171", + "type": "ethernet" + }, + { + "name": "vmnet172", + "type": "ethernet" + }, + { + "name": "vmnet173", + "type": "ethernet" + }, + { + "name": "vmnet174", + "type": "ethernet" + }, + { + "name": "vmnet175", + "type": "ethernet" + }, + { + "name": "vmnet176", + "type": "ethernet" + }, + { + "name": "vmnet177", + "type": "ethernet" + }, + { + "name": "vmnet178", + "type": "ethernet" + }, + { + "name": "vmnet179", + "type": "ethernet" + }, + { + "name": "vmnet18", + "type": "ethernet" + }, + { + "name": "vmnet180", + "type": "ethernet" + }, + { + "name": "vmnet181", + "type": "ethernet" + }, + { + "name": "vmnet182", + "type": "ethernet" + }, + { + "name": "vmnet183", + "type": "ethernet" + }, + { + "name": "vmnet184", + "type": "ethernet" + }, + { + "name": "vmnet185", + "type": "ethernet" + }, + { + "name": "vmnet186", + "type": "ethernet" + }, + { + "name": "vmnet187", + "type": "ethernet" + }, + { + "name": "vmnet188", + "type": "ethernet" + }, + { + "name": "vmnet189", + "type": "ethernet" + }, + { + "name": "vmnet19", + "type": "ethernet" + }, + { + "name": "vmnet190", + "type": "ethernet" + }, + { + "name": "vmnet191", + "type": "ethernet" + }, + { + "name": "vmnet192", + "type": "ethernet" + }, + { + "name": "vmnet193", + "type": "ethernet" + }, + { + "name": "vmnet194", + "type": "ethernet" + }, + { + "name": "vmnet195", + "type": "ethernet" + }, + { + "name": "vmnet196", + "type": "ethernet" + }, + { + "name": "vmnet197", + "type": "ethernet" + }, + { + "name": "vmnet198", + "type": "ethernet" + }, + { + "name": "vmnet199", + "type": "ethernet" + }, + { + "name": "vmnet2", + "type": "ethernet" + }, + { + "name": "vmnet20", + "type": "ethernet" + }, + { + "name": "vmnet200", + "type": "ethernet" + }, + { + "name": "vmnet201", + "type": "ethernet" + }, + { + "name": "vmnet202", + "type": "ethernet" + }, + { + "name": "vmnet203", + "type": "ethernet" + }, + { + "name": "vmnet204", + "type": "ethernet" + }, + { + "name": "vmnet205", + "type": "ethernet" + }, + { + "name": "vmnet206", + "type": "ethernet" + }, + { + "name": "vmnet207", + "type": "ethernet" + }, + { + "name": "vmnet208", + "type": "ethernet" + }, + { + "name": "vmnet209", + "type": "ethernet" + }, + { + "name": "vmnet21", + "type": "ethernet" + }, + { + "name": "vmnet210", + "type": "ethernet" + }, + { + "name": "vmnet211", + "type": "ethernet" + }, + { + "name": "vmnet212", + "type": "ethernet" + }, + { + "name": "vmnet213", + "type": "ethernet" + }, + { + "name": "vmnet214", + "type": "ethernet" + }, + { + "name": "vmnet215", + "type": "ethernet" + }, + { + "name": "vmnet216", + "type": "ethernet" + }, + { + "name": "vmnet217", + "type": "ethernet" + }, + { + "name": "vmnet218", + "type": "ethernet" + }, + { + "name": "vmnet219", + "type": "ethernet" + }, + { + "name": "vmnet22", + "type": "ethernet" + }, + { + "name": "vmnet220", + "type": "ethernet" + }, + { + "name": "vmnet23", + "type": "ethernet" + }, + { + "name": "vmnet24", + "type": "ethernet" + }, + { + "name": "vmnet25", + "type": "ethernet" + }, + { + "name": "vmnet26", + "type": "ethernet" + }, + { + "name": "vmnet27", + "type": "ethernet" + }, + { + "name": "vmnet28", + "type": "ethernet" + }, + { + "name": "vmnet29", + "type": "ethernet" + }, + { + "name": "vmnet3", + "type": "ethernet" + }, + { + "name": "vmnet30", + "type": "ethernet" + }, + { + "name": "vmnet31", + "type": "ethernet" + }, + { + "name": "vmnet32", + "type": "ethernet" + }, + { + "name": "vmnet33", + "type": "ethernet" + }, + { + "name": "vmnet34", + "type": "ethernet" + }, + { + "name": "vmnet35", + "type": "ethernet" + }, + { + "name": "vmnet36", + "type": "ethernet" + }, + { + "name": "vmnet37", + "type": "ethernet" + }, + { + "name": "vmnet38", + "type": "ethernet" + }, + { + "name": "vmnet39", + "type": "ethernet" + }, + { + "name": "vmnet4", + "type": "ethernet" + }, + { + "name": "vmnet40", + "type": "ethernet" + }, + { + "name": "vmnet41", + "type": "ethernet" + }, + { + "name": "vmnet42", + "type": "ethernet" + }, + { + "name": "vmnet43", + "type": "ethernet" + }, + { + "name": "vmnet44", + "type": "ethernet" + }, + { + "name": "vmnet45", + "type": "ethernet" + }, + { + "name": "vmnet46", + "type": "ethernet" + }, + { + "name": "vmnet47", + "type": "ethernet" + }, + { + "name": "vmnet48", + "type": "ethernet" + }, + { + "name": "vmnet49", + "type": "ethernet" + }, + { + "name": "vmnet5", + "type": "ethernet" + }, + { + "name": "vmnet50", + "type": "ethernet" + }, + { + "name": "vmnet51", + "type": "ethernet" + }, + { + "name": "vmnet52", + "type": "ethernet" + }, + { + "name": "vmnet53", + "type": "ethernet" + }, + { + "name": "vmnet54", + "type": "ethernet" + }, + { + "name": "vmnet55", + "type": "ethernet" + }, + { + "name": "vmnet56", + "type": "ethernet" + }, + { + "name": "vmnet57", + "type": "ethernet" + }, + { + "name": "vmnet58", + "type": "ethernet" + }, + { + "name": "vmnet59", + "type": "ethernet" + }, + { + "name": "vmnet6", + "type": "ethernet" + }, + { + "name": "vmnet60", + "type": "ethernet" + }, + { + "name": "vmnet61", + "type": "ethernet" + }, + { + "name": "vmnet62", + "type": "ethernet" + }, + { + "name": "vmnet63", + "type": "ethernet" + }, + { + "name": "vmnet64", + "type": "ethernet" + }, + { + "name": "vmnet65", + "type": "ethernet" + }, + { + "name": "vmnet66", + "type": "ethernet" + }, + { + "name": "vmnet67", + "type": "ethernet" + }, + { + "name": "vmnet68", + "type": "ethernet" + }, + { + "name": "vmnet69", + "type": "ethernet" + }, + { + "name": "vmnet7", + "type": "ethernet" + }, + { + "name": "vmnet70", + "type": "ethernet" + }, + { + "name": "vmnet71", + "type": "ethernet" + }, + { + "name": "vmnet72", + "type": "ethernet" + }, + { + "name": "vmnet73", + "type": "ethernet" + }, + { + "name": "vmnet74", + "type": "ethernet" + }, + { + "name": "vmnet75", + "type": "ethernet" + }, + { + "name": "vmnet76", + "type": "ethernet" + }, + { + "name": "vmnet77", + "type": "ethernet" + }, + { + "name": "vmnet78", + "type": "ethernet" + }, + { + "name": "vmnet79", + "type": "ethernet" + }, + { + "name": "vmnet8", + "type": "ethernet" + }, + { + "name": "vmnet80", + "type": "ethernet" + }, + { + "name": "vmnet81", + "type": "ethernet" + }, + { + "name": "vmnet82", + "type": "ethernet" + }, + { + "name": "vmnet83", + "type": "ethernet" + }, + { + "name": "vmnet84", + "type": "ethernet" + }, + { + "name": "vmnet85", + "type": "ethernet" + }, + { + "name": "vmnet86", + "type": "ethernet" + }, + { + "name": "vmnet87", + "type": "ethernet" + }, + { + "name": "vmnet88", + "type": "ethernet" + }, + { + "name": "vmnet89", + "type": "ethernet" + }, + { + "name": "vmnet9", + "type": "ethernet" + }, + { + "name": "vmnet90", + "type": "ethernet" + }, + { + "name": "vmnet91", + "type": "ethernet" + }, + { + "name": "vmnet92", + "type": "ethernet" + }, + { + "name": "vmnet93", + "type": "ethernet" + }, + { + "name": "vmnet94", + "type": "ethernet" + }, + { + "name": "vmnet95", + "type": "ethernet" + }, + { + "name": "vmnet96", + "type": "ethernet" + }, + { + "name": "vmnet97", + "type": "ethernet" + }, + { + "name": "vmnet98", + "type": "ethernet" + }, + { + "name": "vmnet99", + "type": "ethernet" + } + ], + "name": "Cloud 1", + "node_id": "09247bb6-2ed3-4e6c-9f59-5092098eed69", + "ports": [], + "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", + "status": "started" +} diff --git a/docs/api/examples/compute_get_projectsprojectidiounodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidiounodesnodeid.txt index ca798d39..b2e84f9b 100644 --- a/docs/api/examples/compute_get_projectsprojectidiounodesnodeid.txt +++ b/docs/api/examples/compute_get_projectsprojectidiounodesnodeid.txt @@ -1,11 +1,11 @@ -curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/42132b18-719b-408c-a78a-a349c5966396' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3ce6666e-2b7e-4ced-915a-6b060f4c2796' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/42132b18-719b-408c-a78a-a349c5966396 HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3ce6666e-2b7e-4ced-915a-6b060f4c2796 HTTP/1.1 HTTP/1.1 200 -CONTENT-LENGTH: 721 +CONTENT-LENGTH: 696 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -16,12 +16,11 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id} "console": 5711, "console_type": "telnet", "ethernet_adapters": 2, - "iourc_path": null, "l1_keepalives": false, "md5sum": "e573e8f5c93c6c00783f20c7a170aa6c", "name": "PC TEST 1", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/42132b18-719b-408c-a78a-a349c5966396", - "node_id": "42132b18-719b-408c-a78a-a349c5966396", + "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/3ce6666e-2b7e-4ced-915a-6b060f4c2796", + "node_id": "3ce6666e-2b7e-4ced-915a-6b060f4c2796", "nvram": 128, "path": "iou.bin", "private_config": null, diff --git a/docs/api/examples/compute_get_projectsprojectidnatnodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidnatnodesnodeid.txt new file mode 100644 index 00000000..706c1ea2 --- /dev/null +++ b/docs/api/examples/compute_get_projectsprojectidnatnodesnodeid.txt @@ -0,0 +1,27 @@ +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/35d71fb8-b556-402f-abba-6f12971501b0' + +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/35d71fb8-b556-402f-abba-6f12971501b0 HTTP/1.1 + + + +HTTP/1.1 200 +CONTENT-LENGTH: 325 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id} + +{ + "name": "Nat 1", + "node_id": "35d71fb8-b556-402f-abba-6f12971501b0", + "ports": [ + { + "interface": "eth1", + "name": "nat0", + "port_number": 1, + "type": "ethernet" + } + ], + "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", + "status": "started" +} diff --git a/docs/api/examples/compute_get_projectsprojectidqemunodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidqemunodesnodeid.txt index 2707f8f5..0bd2dfcc 100644 --- a/docs/api/examples/compute_get_projectsprojectidqemunodesnodeid.txt +++ b/docs/api/examples/compute_get_projectsprojectidqemunodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/061d6c7c-0288-402d-9731-69caa6422a3c' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/982bf60a-aa50-4716-b6ab-41e7700dd6c1' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/061d6c7c-0288-402d-9731-69caa6422a3c HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/982bf60a-aa50-4716-b6ab-41e7700dd6c1 HTTP/1.1 @@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id} "kernel_image": "", "kernel_image_md5sum": null, "legacy_networking": false, - "mac_address": "00:dd:80:2a:3c:00", + "mac_address": "00:dd:80:d6:c1:00", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/061d6c7c-0288-402d-9731-69caa6422a3c", - "node_id": "061d6c7c-0288-402d-9731-69caa6422a3c", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/982bf60a-aa50-4716-b6ab-41e7700dd6c1", + "node_id": "982bf60a-aa50-4716-b6ab-41e7700dd6c1", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 256, "status": "stopped", "usage": "" diff --git a/docs/api/examples/compute_get_projectsprojectidvirtualboxnodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidvirtualboxnodesnodeid.txt index f116bf59..9104c00e 100644 --- a/docs/api/examples/compute_get_projectsprojectidvirtualboxnodesnodeid.txt +++ b/docs/api/examples/compute_get_projectsprojectidvirtualboxnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3d3e36f1-5dc8-4c30-8421-c7a4f987d1be' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/61b068b6-38e5-4d38-ac66-6a294a10200a' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3d3e36f1-5dc8-4c30-8421-c7a4f987d1be HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/61b068b6-38e5-4d38-ac66-6a294a10200a HTTP/1.1 @@ -21,7 +21,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id} "linked_clone": false, "name": "VMTEST", "node_directory": null, - "node_id": "3d3e36f1-5dc8-4c30-8421-c7a4f987d1be", + "node_id": "61b068b6-38e5-4d38-ac66-6a294a10200a", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "ram": 0, "status": "stopped", diff --git a/docs/api/examples/compute_get_projectsprojectidvpcsnodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidvpcsnodesnodeid.txt index ef9afbc8..aff70795 100644 --- a/docs/api/examples/compute_get_projectsprojectidvpcsnodesnodeid.txt +++ b/docs/api/examples/compute_get_projectsprojectidvpcsnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/19f16d2f-1859-4a51-a816-45d1d8af547b' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/76cfacde-1811-4eae-a22f-06cd7f2032ed' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/19f16d2f-1859-4a51-a816-45d1d8af547b HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/76cfacde-1811-4eae-a22f-06cd7f2032ed HTTP/1.1 @@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id} "console": 5720, "console_type": "telnet", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/19f16d2f-1859-4a51-a816-45d1d8af547b", - "node_id": "19f16d2f-1859-4a51-a816-45d1d8af547b", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/76cfacde-1811-4eae-a22f-06cd7f2032ed", + "node_id": "76cfacde-1811-4eae-a22f-06cd7f2032ed", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "startup_script": null, "startup_script_path": null, diff --git a/docs/api/examples/compute_post_projectsprojectidcloudnodes.txt b/docs/api/examples/compute_post_projectsprojectidcloudnodes.txt new file mode 100644 index 00000000..188067a6 --- /dev/null +++ b/docs/api/examples/compute_post_projectsprojectidcloudnodes.txt @@ -0,0 +1,964 @@ +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes' -d '{"name": "Cloud 1"}' + +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes HTTP/1.1 +{ + "name": "Cloud 1" +} + + +HTTP/1.1 201 +CONTENT-LENGTH: 19808 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes + +{ + "interfaces": [ + { + "name": "bridge0", + "type": "ethernet" + }, + { + "name": "en0", + "type": "ethernet" + }, + { + "name": "en1", + "type": "ethernet" + }, + { + "name": "en2", + "type": "ethernet" + }, + { + "name": "fw0", + "type": "ethernet" + }, + { + "name": "lo0", + "type": "ethernet" + }, + { + "name": "p2p0", + "type": "ethernet" + }, + { + "name": "vboxnet0", + "type": "ethernet" + }, + { + "name": "vboxnet1", + "type": "ethernet" + }, + { + "name": "vboxnet2", + "type": "ethernet" + }, + { + "name": "vboxnet3", + "type": "ethernet" + }, + { + "name": "vboxnet4", + "type": "ethernet" + }, + { + "name": "vboxnet5", + "type": "ethernet" + }, + { + "name": "vboxnet6", + "type": "ethernet" + }, + { + "name": "vboxnet7", + "type": "ethernet" + }, + { + "name": "vmnet1", + "type": "ethernet" + }, + { + "name": "vmnet10", + "type": "ethernet" + }, + { + "name": "vmnet100", + "type": "ethernet" + }, + { + "name": "vmnet101", + "type": "ethernet" + }, + { + "name": "vmnet102", + "type": "ethernet" + }, + { + "name": "vmnet103", + "type": "ethernet" + }, + { + "name": "vmnet104", + "type": "ethernet" + }, + { + "name": "vmnet105", + "type": "ethernet" + }, + { + "name": "vmnet106", + "type": "ethernet" + }, + { + "name": "vmnet107", + "type": "ethernet" + }, + { + "name": "vmnet108", + "type": "ethernet" + }, + { + "name": "vmnet109", + "type": "ethernet" + }, + { + "name": "vmnet11", + "type": "ethernet" + }, + { + "name": "vmnet110", + "type": "ethernet" + }, + { + "name": "vmnet111", + "type": "ethernet" + }, + { + "name": "vmnet112", + "type": "ethernet" + }, + { + "name": "vmnet113", + "type": "ethernet" + }, + { + "name": "vmnet114", + "type": "ethernet" + }, + { + "name": "vmnet115", + "type": "ethernet" + }, + { + "name": "vmnet116", + "type": "ethernet" + }, + { + "name": "vmnet117", + "type": "ethernet" + }, + { + "name": "vmnet118", + "type": "ethernet" + }, + { + "name": "vmnet119", + "type": "ethernet" + }, + { + "name": "vmnet12", + "type": "ethernet" + }, + { + "name": "vmnet120", + "type": "ethernet" + }, + { + "name": "vmnet121", + "type": "ethernet" + }, + { + "name": "vmnet122", + "type": "ethernet" + }, + { + "name": "vmnet123", + "type": "ethernet" + }, + { + "name": "vmnet124", + "type": "ethernet" + }, + { + "name": "vmnet125", + "type": "ethernet" + }, + { + "name": "vmnet126", + "type": "ethernet" + }, + { + "name": "vmnet127", + "type": "ethernet" + }, + { + "name": "vmnet128", + "type": "ethernet" + }, + { + "name": "vmnet129", + "type": "ethernet" + }, + { + "name": "vmnet13", + "type": "ethernet" + }, + { + "name": "vmnet130", + "type": "ethernet" + }, + { + "name": "vmnet131", + "type": "ethernet" + }, + { + "name": "vmnet132", + "type": "ethernet" + }, + { + "name": "vmnet133", + "type": "ethernet" + }, + { + "name": "vmnet134", + "type": "ethernet" + }, + { + "name": "vmnet135", + "type": "ethernet" + }, + { + "name": "vmnet136", + "type": "ethernet" + }, + { + "name": "vmnet137", + "type": "ethernet" + }, + { + "name": "vmnet138", + "type": "ethernet" + }, + { + "name": "vmnet139", + "type": "ethernet" + }, + { + "name": "vmnet14", + "type": "ethernet" + }, + { + "name": "vmnet140", + "type": "ethernet" + }, + { + "name": "vmnet141", + "type": "ethernet" + }, + { + "name": "vmnet142", + "type": "ethernet" + }, + { + "name": "vmnet143", + "type": "ethernet" + }, + { + "name": "vmnet144", + "type": "ethernet" + }, + { + "name": "vmnet145", + "type": "ethernet" + }, + { + "name": "vmnet146", + "type": "ethernet" + }, + { + "name": "vmnet147", + "type": "ethernet" + }, + { + "name": "vmnet148", + "type": "ethernet" + }, + { + "name": "vmnet149", + "type": "ethernet" + }, + { + "name": "vmnet15", + "type": "ethernet" + }, + { + "name": "vmnet150", + "type": "ethernet" + }, + { + "name": "vmnet151", + "type": "ethernet" + }, + { + "name": "vmnet152", + "type": "ethernet" + }, + { + "name": "vmnet153", + "type": "ethernet" + }, + { + "name": "vmnet154", + "type": "ethernet" + }, + { + "name": "vmnet155", + "type": "ethernet" + }, + { + "name": "vmnet156", + "type": "ethernet" + }, + { + "name": "vmnet157", + "type": "ethernet" + }, + { + "name": "vmnet158", + "type": "ethernet" + }, + { + "name": "vmnet159", + "type": "ethernet" + }, + { + "name": "vmnet16", + "type": "ethernet" + }, + { + "name": "vmnet160", + "type": "ethernet" + }, + { + "name": "vmnet161", + "type": "ethernet" + }, + { + "name": "vmnet162", + "type": "ethernet" + }, + { + "name": "vmnet163", + "type": "ethernet" + }, + { + "name": "vmnet164", + "type": "ethernet" + }, + { + "name": "vmnet165", + "type": "ethernet" + }, + { + "name": "vmnet166", + "type": "ethernet" + }, + { + "name": "vmnet167", + "type": "ethernet" + }, + { + "name": "vmnet168", + "type": "ethernet" + }, + { + "name": "vmnet169", + "type": "ethernet" + }, + { + "name": "vmnet17", + "type": "ethernet" + }, + { + "name": "vmnet170", + "type": "ethernet" + }, + { + "name": "vmnet171", + "type": "ethernet" + }, + { + "name": "vmnet172", + "type": "ethernet" + }, + { + "name": "vmnet173", + "type": "ethernet" + }, + { + "name": "vmnet174", + "type": "ethernet" + }, + { + "name": "vmnet175", + "type": "ethernet" + }, + { + "name": "vmnet176", + "type": "ethernet" + }, + { + "name": "vmnet177", + "type": "ethernet" + }, + { + "name": "vmnet178", + "type": "ethernet" + }, + { + "name": "vmnet179", + "type": "ethernet" + }, + { + "name": "vmnet18", + "type": "ethernet" + }, + { + "name": "vmnet180", + "type": "ethernet" + }, + { + "name": "vmnet181", + "type": "ethernet" + }, + { + "name": "vmnet182", + "type": "ethernet" + }, + { + "name": "vmnet183", + "type": "ethernet" + }, + { + "name": "vmnet184", + "type": "ethernet" + }, + { + "name": "vmnet185", + "type": "ethernet" + }, + { + "name": "vmnet186", + "type": "ethernet" + }, + { + "name": "vmnet187", + "type": "ethernet" + }, + { + "name": "vmnet188", + "type": "ethernet" + }, + { + "name": "vmnet189", + "type": "ethernet" + }, + { + "name": "vmnet19", + "type": "ethernet" + }, + { + "name": "vmnet190", + "type": "ethernet" + }, + { + "name": "vmnet191", + "type": "ethernet" + }, + { + "name": "vmnet192", + "type": "ethernet" + }, + { + "name": "vmnet193", + "type": "ethernet" + }, + { + "name": "vmnet194", + "type": "ethernet" + }, + { + "name": "vmnet195", + "type": "ethernet" + }, + { + "name": "vmnet196", + "type": "ethernet" + }, + { + "name": "vmnet197", + "type": "ethernet" + }, + { + "name": "vmnet198", + "type": "ethernet" + }, + { + "name": "vmnet199", + "type": "ethernet" + }, + { + "name": "vmnet2", + "type": "ethernet" + }, + { + "name": "vmnet20", + "type": "ethernet" + }, + { + "name": "vmnet200", + "type": "ethernet" + }, + { + "name": "vmnet201", + "type": "ethernet" + }, + { + "name": "vmnet202", + "type": "ethernet" + }, + { + "name": "vmnet203", + "type": "ethernet" + }, + { + "name": "vmnet204", + "type": "ethernet" + }, + { + "name": "vmnet205", + "type": "ethernet" + }, + { + "name": "vmnet206", + "type": "ethernet" + }, + { + "name": "vmnet207", + "type": "ethernet" + }, + { + "name": "vmnet208", + "type": "ethernet" + }, + { + "name": "vmnet209", + "type": "ethernet" + }, + { + "name": "vmnet21", + "type": "ethernet" + }, + { + "name": "vmnet210", + "type": "ethernet" + }, + { + "name": "vmnet211", + "type": "ethernet" + }, + { + "name": "vmnet212", + "type": "ethernet" + }, + { + "name": "vmnet213", + "type": "ethernet" + }, + { + "name": "vmnet214", + "type": "ethernet" + }, + { + "name": "vmnet215", + "type": "ethernet" + }, + { + "name": "vmnet216", + "type": "ethernet" + }, + { + "name": "vmnet217", + "type": "ethernet" + }, + { + "name": "vmnet218", + "type": "ethernet" + }, + { + "name": "vmnet219", + "type": "ethernet" + }, + { + "name": "vmnet22", + "type": "ethernet" + }, + { + "name": "vmnet220", + "type": "ethernet" + }, + { + "name": "vmnet23", + "type": "ethernet" + }, + { + "name": "vmnet24", + "type": "ethernet" + }, + { + "name": "vmnet25", + "type": "ethernet" + }, + { + "name": "vmnet26", + "type": "ethernet" + }, + { + "name": "vmnet27", + "type": "ethernet" + }, + { + "name": "vmnet28", + "type": "ethernet" + }, + { + "name": "vmnet29", + "type": "ethernet" + }, + { + "name": "vmnet3", + "type": "ethernet" + }, + { + "name": "vmnet30", + "type": "ethernet" + }, + { + "name": "vmnet31", + "type": "ethernet" + }, + { + "name": "vmnet32", + "type": "ethernet" + }, + { + "name": "vmnet33", + "type": "ethernet" + }, + { + "name": "vmnet34", + "type": "ethernet" + }, + { + "name": "vmnet35", + "type": "ethernet" + }, + { + "name": "vmnet36", + "type": "ethernet" + }, + { + "name": "vmnet37", + "type": "ethernet" + }, + { + "name": "vmnet38", + "type": "ethernet" + }, + { + "name": "vmnet39", + "type": "ethernet" + }, + { + "name": "vmnet4", + "type": "ethernet" + }, + { + "name": "vmnet40", + "type": "ethernet" + }, + { + "name": "vmnet41", + "type": "ethernet" + }, + { + "name": "vmnet42", + "type": "ethernet" + }, + { + "name": "vmnet43", + "type": "ethernet" + }, + { + "name": "vmnet44", + "type": "ethernet" + }, + { + "name": "vmnet45", + "type": "ethernet" + }, + { + "name": "vmnet46", + "type": "ethernet" + }, + { + "name": "vmnet47", + "type": "ethernet" + }, + { + "name": "vmnet48", + "type": "ethernet" + }, + { + "name": "vmnet49", + "type": "ethernet" + }, + { + "name": "vmnet5", + "type": "ethernet" + }, + { + "name": "vmnet50", + "type": "ethernet" + }, + { + "name": "vmnet51", + "type": "ethernet" + }, + { + "name": "vmnet52", + "type": "ethernet" + }, + { + "name": "vmnet53", + "type": "ethernet" + }, + { + "name": "vmnet54", + "type": "ethernet" + }, + { + "name": "vmnet55", + "type": "ethernet" + }, + { + "name": "vmnet56", + "type": "ethernet" + }, + { + "name": "vmnet57", + "type": "ethernet" + }, + { + "name": "vmnet58", + "type": "ethernet" + }, + { + "name": "vmnet59", + "type": "ethernet" + }, + { + "name": "vmnet6", + "type": "ethernet" + }, + { + "name": "vmnet60", + "type": "ethernet" + }, + { + "name": "vmnet61", + "type": "ethernet" + }, + { + "name": "vmnet62", + "type": "ethernet" + }, + { + "name": "vmnet63", + "type": "ethernet" + }, + { + "name": "vmnet64", + "type": "ethernet" + }, + { + "name": "vmnet65", + "type": "ethernet" + }, + { + "name": "vmnet66", + "type": "ethernet" + }, + { + "name": "vmnet67", + "type": "ethernet" + }, + { + "name": "vmnet68", + "type": "ethernet" + }, + { + "name": "vmnet69", + "type": "ethernet" + }, + { + "name": "vmnet7", + "type": "ethernet" + }, + { + "name": "vmnet70", + "type": "ethernet" + }, + { + "name": "vmnet71", + "type": "ethernet" + }, + { + "name": "vmnet72", + "type": "ethernet" + }, + { + "name": "vmnet73", + "type": "ethernet" + }, + { + "name": "vmnet74", + "type": "ethernet" + }, + { + "name": "vmnet75", + "type": "ethernet" + }, + { + "name": "vmnet76", + "type": "ethernet" + }, + { + "name": "vmnet77", + "type": "ethernet" + }, + { + "name": "vmnet78", + "type": "ethernet" + }, + { + "name": "vmnet79", + "type": "ethernet" + }, + { + "name": "vmnet8", + "type": "ethernet" + }, + { + "name": "vmnet80", + "type": "ethernet" + }, + { + "name": "vmnet81", + "type": "ethernet" + }, + { + "name": "vmnet82", + "type": "ethernet" + }, + { + "name": "vmnet83", + "type": "ethernet" + }, + { + "name": "vmnet84", + "type": "ethernet" + }, + { + "name": "vmnet85", + "type": "ethernet" + }, + { + "name": "vmnet86", + "type": "ethernet" + }, + { + "name": "vmnet87", + "type": "ethernet" + }, + { + "name": "vmnet88", + "type": "ethernet" + }, + { + "name": "vmnet89", + "type": "ethernet" + }, + { + "name": "vmnet9", + "type": "ethernet" + }, + { + "name": "vmnet90", + "type": "ethernet" + }, + { + "name": "vmnet91", + "type": "ethernet" + }, + { + "name": "vmnet92", + "type": "ethernet" + }, + { + "name": "vmnet93", + "type": "ethernet" + }, + { + "name": "vmnet94", + "type": "ethernet" + }, + { + "name": "vmnet95", + "type": "ethernet" + }, + { + "name": "vmnet96", + "type": "ethernet" + }, + { + "name": "vmnet97", + "type": "ethernet" + }, + { + "name": "vmnet98", + "type": "ethernet" + }, + { + "name": "vmnet99", + "type": "ethernet" + } + ], + "name": "Cloud 1", + "node_id": "bbddb1ea-9ec9-4fa6-b503-3ff74eed4ab0", + "ports": [], + "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", + "status": "started" +} diff --git a/docs/api/examples/compute_post_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt new file mode 100644 index 00000000..355c6a9a --- /dev/null +++ b/docs/api/examples/compute_post_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -0,0 +1,24 @@ +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d39b89b6-1a4d-4874-9f33-cce697db969a/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' + +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d39b89b6-1a4d-4874-9f33-cce697db969a/adapters/0/ports/0/nio HTTP/1.1 +{ + "lport": 4242, + "rhost": "127.0.0.1", + "rport": 4343, + "type": "nio_udp" +} + + +HTTP/1.1 201 +CONTENT-LENGTH: 89 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio + +{ + "lport": 4242, + "rhost": "127.0.0.1", + "rport": 4343, + "type": "nio_udp" +} diff --git a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 1c6f5967..d017e748 100644 --- a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d810f789-7b5c-4e9c-9ddd-cb66aa11a48a/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/2dbfa776-e4dd-446a-a46d-a72150191322/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d810f789-7b5c-4e9c-9ddd-cb66aa11a48a/adapters/0/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/2dbfa776-e4dd-446a-a46d-a72150191322/adapters/0/ports/0/nio HTTP/1.1 { "lport": 4242, "rhost": "127.0.0.1", diff --git a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt index d3b5fddb..36ce7731 100644 --- a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt +++ b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3ecbe3f3-4972-4c4e-bfd3-5d182c4bc6d8/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a19882ff-53cd-4592-b386-ce424a73faed/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3ecbe3f3-4972-4c4e-bfd3-5d182c4bc6d8/adapters/0/ports/0/start_capture HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a19882ff-53cd-4592-b386-ce424a73faed/adapters/0/ports/0/start_capture HTTP/1.1 { "capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB" @@ -8,12 +8,12 @@ POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3ecb HTTP/1.1 200 -CONTENT-LENGTH: 146 +CONTENT-LENGTH: 145 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture { - "pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/tmp/captures/test.pcap" + "pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/tmp/captures/test.pcap" } diff --git a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt index 956d3a68..2453c548 100644 --- a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt +++ b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/cb14a233-7808-4219-9df8-eb7c6e986f7a/adapters/0/ports/0/stop_capture' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/58b9a246-ce23-4c50-9af7-dd08092db8e1/adapters/0/ports/0/stop_capture' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/cb14a233-7808-4219-9df8-eb7c6e986f7a/adapters/0/ports/0/stop_capture HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/58b9a246-ce23-4c50-9af7-dd08092db8e1/adapters/0/ports/0/stop_capture HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidiounodes.txt b/docs/api/examples/compute_post_projectsprojectidiounodes.txt index f2800d64..f10077c4 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodes.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodes.txt @@ -1,16 +1,16 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b", "path": "iou.bin", "startup_config_content": "hostname test"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "b1ec956f-ef2d-49a5-80a0-2f3c95f3b748", "path": "iou.bin", "startup_config_content": "hostname test"}' POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes HTTP/1.1 { "name": "PC TEST 1", - "node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b", + "node_id": "b1ec956f-ef2d-49a5-80a0-2f3c95f3b748", "path": "iou.bin", "startup_config_content": "hostname test" } HTTP/1.1 201 -CONTENT-LENGTH: 737 +CONTENT-LENGTH: 712 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -21,12 +21,11 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes "console": 5711, "console_type": "telnet", "ethernet_adapters": 2, - "iourc_path": null, "l1_keepalives": false, "md5sum": "e573e8f5c93c6c00783f20c7a170aa6c", "name": "PC TEST 1", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/17425b54-3868-47dc-94ba-7775e7c04d1b", - "node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b", + "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/b1ec956f-ef2d-49a5-80a0-2f3c95f3b748", + "node_id": "b1ec956f-ef2d-49a5-80a0-2f3c95f3b748", "nvram": 128, "path": "iou.bin", "private_config": null, diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 18b8d33f..6f18a752 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38dfca02-6ea0-44e8-b58c-b7bdca09308a/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/53080a75-d40c-447c-a347-24c88b0c9513/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38dfca02-6ea0-44e8-b58c-b7bdca09308a/adapters/1/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/53080a75-d40c-447c-a347-24c88b0c9513/adapters/1/ports/0/nio HTTP/1.1 { "ethernet_device": "bridge0", "type": "nio_ethernet" diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt index 71e92f23..4af8ab78 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93cf9e7b-070d-408b-81f5-283a9a0e247e/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/66921aca-148a-4625-bb51-8451ed7993e2/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93cf9e7b-070d-408b-81f5-283a9a0e247e/adapters/0/ports/0/start_capture HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/66921aca-148a-4625-bb51-8451ed7993e2/adapters/0/ports/0/start_capture HTTP/1.1 { "capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB" @@ -8,12 +8,12 @@ POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93cf9e7 HTTP/1.1 200 -CONTENT-LENGTH: 146 +CONTENT-LENGTH: 145 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture { - "pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/tmp/captures/test.pcap" + "pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/tmp/captures/test.pcap" } diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt index 92c9ba21..5418893e 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c8ebed81-7cfb-4392-8af8-2dff93de291c/adapters/0/ports/0/stop_capture' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7713ca9a-509b-495f-850c-aac89e50b5a9/adapters/0/ports/0/stop_capture' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c8ebed81-7cfb-4392-8af8-2dff93de291c/adapters/0/ports/0/stop_capture HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7713ca9a-509b-495f-850c-aac89e50b5a9/adapters/0/ports/0/stop_capture HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidreload.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidreload.txt index a3771ac9..f4621725 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidreload.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidreload.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3947b6cc-ea2a-4e04-92f3-cade4f6404fb/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7f027614-6aab-4d13-96a1-d464893db68c/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3947b6cc-ea2a-4e04-92f3-cade4f6404fb/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7f027614-6aab-4d13-96a1-d464893db68c/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstart.txt index fd71059a..a60f0be4 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstart.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstart.txt @@ -1,13 +1,13 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f8607a0c-8df3-482b-927f-321018542107/start' -d '{"iourc_content": "test"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/88ef9436-cdb0-4d4b-8ee3-a143f500bede/start' -d '{"iourc_content": "test"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f8607a0c-8df3-482b-927f-321018542107/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/88ef9436-cdb0-4d4b-8ee3-a143f500bede/start HTTP/1.1 { "iourc_content": "test" } HTTP/1.1 200 -CONTENT-LENGTH: 785 +CONTENT-LENGTH: 696 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -18,12 +18,11 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start "console": 5711, "console_type": "telnet", "ethernet_adapters": 2, - "iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7xj2kn7r/iourc", "l1_keepalives": false, "md5sum": "e573e8f5c93c6c00783f20c7a170aa6c", "name": "PC TEST 1", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/f8607a0c-8df3-482b-927f-321018542107", - "node_id": "f8607a0c-8df3-482b-927f-321018542107", + "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/88ef9436-cdb0-4d4b-8ee3-a143f500bede", + "node_id": "88ef9436-cdb0-4d4b-8ee3-a143f500bede", "nvram": 128, "path": "iou.bin", "private_config": null, diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstop.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstop.txt index 37def726..24516b49 100644 --- a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstop.txt +++ b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstop.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e2dce29b-ae1b-415b-881b-855a0e194590/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/29ff3007-361e-449d-8fdd-78bbf25eaa78/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e2dce29b-ae1b-415b-881b-855a0e194590/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/29ff3007-361e-449d-8fdd-78bbf25eaa78/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidnatnodes.txt b/docs/api/examples/compute_post_projectsprojectidnatnodes.txt new file mode 100644 index 00000000..b4bc55e4 --- /dev/null +++ b/docs/api/examples/compute_post_projectsprojectidnatnodes.txt @@ -0,0 +1,29 @@ +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes' -d '{"name": "Nat 1"}' + +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes HTTP/1.1 +{ + "name": "Nat 1" +} + + +HTTP/1.1 201 +CONTENT-LENGTH: 325 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes + +{ + "name": "Nat 1", + "node_id": "2c745227-9d57-404d-9f49-330b1871ddbc", + "ports": [ + { + "interface": "eth1", + "name": "nat0", + "port_number": 1, + "type": "ethernet" + } + ], + "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", + "status": "started" +} diff --git a/docs/api/examples/compute_post_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt new file mode 100644 index 00000000..d1e11e5f --- /dev/null +++ b/docs/api/examples/compute_post_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -0,0 +1,24 @@ +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/8be30430-3372-4a40-af11-5e3df5f8f497/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' + +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/8be30430-3372-4a40-af11-5e3df5f8f497/adapters/0/ports/0/nio HTTP/1.1 +{ + "lport": 4242, + "rhost": "127.0.0.1", + "rport": 4343, + "type": "nio_udp" +} + + +HTTP/1.1 201 +CONTENT-LENGTH: 89 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio + +{ + "lport": 4242, + "rhost": "127.0.0.1", + "rport": 4343, + "type": "nio_udp" +} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodes.txt b/docs/api/examples/compute_post_projectsprojectidqemunodes.txt index 611c1692..edeeba3d 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodes.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodes.txt @@ -1,10 +1,10 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", "ram": 1024}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 1024}' POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1 { "hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 1024 } @@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes "kernel_image": "", "kernel_image_md5sum": null, "legacy_networking": false, - "mac_address": "00:dd:80:0c:c1:00", + "mac_address": "00:dd:80:3f:3f:00", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/38fa68a3-8717-4a7c-9bbb-3a64a9e60cc1", - "node_id": "38fa68a3-8717-4a7c-9bbb-3a64a9e60cc1", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/7626d2a1-cc35-442d-bc85-8151af2f3f3f", + "node_id": "7626d2a1-cc35-442d-bc85-8151af2f3f3f", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 1024, "status": "stopped", "usage": "" diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 596c84ad..56fe79dd 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/945b147c-060f-4a79-ac1c-32c0c736e1bf/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/44da0d8c-bb3b-4b93-8918-363345b58b9c/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/945b147c-060f-4a79-ac1c-32c0c736e1bf/adapters/1/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/44da0d8c-bb3b-4b93-8918-363345b58b9c/adapters/1/ports/0/nio HTTP/1.1 { "ethernet_device": "eth0", "type": "nio_ethernet" diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidreload.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidreload.txt index 6cfb2441..083d5c22 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidreload.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidreload.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f456a9c9-0425-488f-8172-c8e3df767434/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0d8e7a92-8de1-4978-aa2e-c6e77dc7a7f2/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f456a9c9-0425-488f-8172-c8e3df767434/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0d8e7a92-8de1-4978-aa2e-c6e77dc7a7f2/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidresume.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidresume.txt index 2e7d35cd..30f61f28 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidresume.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidresume.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6599101f-a3ac-4303-826e-7092f7bab117/resume' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8471705e-da31-4d1b-b070-9ba982711cc1/resume' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6599101f-a3ac-4303-826e-7092f7bab117/resume HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8471705e-da31-4d1b-b070-9ba982711cc1/resume HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstart.txt index 47573ed3..7a53b0d0 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstart.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstart.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f8bf0222-44dc-4ac6-ab1c-32a50982d326/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ef7f5f10-637d-4103-a34f-7bcbce149f8e/start' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f8bf0222-44dc-4ac6-ab1c-32a50982d326/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ef7f5f10-637d-4103-a34f-7bcbce149f8e/start HTTP/1.1 {} @@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start "kernel_image": "", "kernel_image_md5sum": null, "legacy_networking": false, - "mac_address": "00:dd:80:d3:26:00", + "mac_address": "00:dd:80:9f:8e:00", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/f8bf0222-44dc-4ac6-ab1c-32a50982d326", - "node_id": "f8bf0222-44dc-4ac6-ab1c-32a50982d326", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ef7f5f10-637d-4103-a34f-7bcbce149f8e", + "node_id": "ef7f5f10-637d-4103-a34f-7bcbce149f8e", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 256, "status": "stopped", "usage": "" diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstop.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstop.txt index 939dfb0f..99748fe3 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstop.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstop.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d0e548d5-1cd1-40a7-84af-225702ce993a/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/64642cf3-92ef-49a9-859c-2d50b2e06b24/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d0e548d5-1cd1-40a7-84af-225702ce993a/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/64642cf3-92ef-49a9-859c-2d50b2e06b24/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidsuspend.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidsuspend.txt index 40668225..80602482 100644 --- a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidsuspend.txt +++ b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidsuspend.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/50bc44d6-3274-4e34-8967-f03bc6f77a38/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b96ad185-f250-46fe-bb27-a0307656db10/suspend' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/50bc44d6-3274-4e34-8967-f03bc6f77a38/suspend HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b96ad185-f250-46fe-bb27-a0307656db10/suspend HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodes.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodes.txt index 5a58d18e..fc3160f8 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodes.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodes.txt @@ -25,7 +25,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes "linked_clone": false, "name": "VM1", "node_directory": null, - "node_id": "65abbe8d-dff3-43be-a3d1-c18f2f4658a2", + "node_id": "8207fc7e-9b7f-4a04-a2e9-eb01d826ba4f", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "ram": 0, "status": "stopped", diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 56a4a32f..824f10f4 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/97942d37-2d75-4599-b04d-2b05444a4c05/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/c969abea-4228-49cb-9da8-6c118a444ea0/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/97942d37-2d75-4599-b04d-2b05444a4c05/adapters/0/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/c969abea-4228-49cb-9da8-6c118a444ea0/adapters/0/ports/0/nio HTTP/1.1 { "lport": 4242, "rhost": "127.0.0.1", diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidreload.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidreload.txt index 4881cebd..8a4fb717 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidreload.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidreload.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8bf8e172-f166-42e0-bdfd-80aca6f2e4fb/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/25bfb4b1-af29-4c23-8762-9d65092652ce/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8bf8e172-f166-42e0-bdfd-80aca6f2e4fb/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/25bfb4b1-af29-4c23-8762-9d65092652ce/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidresume.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidresume.txt index 1bee5ce4..f0ccc469 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidresume.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidresume.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/622fb0cc-d606-460f-b747-40522d9b343a/resume' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/506a3552-19dc-4c9f-91a1-8a8cb9d2e244/resume' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/622fb0cc-d606-460f-b747-40522d9b343a/resume HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/506a3552-19dc-4c9f-91a1-8a8cb9d2e244/resume HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstart.txt index da70e7ed..3d02d114 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstart.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstart.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7a1579fb-2768-4999-bca3-647e9ba47a63/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dec8ba6d-e98f-4330-a83e-b89b505db1ff/start' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7a1579fb-2768-4999-bca3-647e9ba47a63/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dec8ba6d-e98f-4330-a83e-b89b505db1ff/start HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstop.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstop.txt index 708ba19c..05cbb9b4 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstop.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstop.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4bbb3869-411b-4a29-9d63-134c51da727e/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4b8c8554-e309-4268-be07-9030ac3f9dc9/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4bbb3869-411b-4a29-9d63-134c51da727e/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4b8c8554-e309-4268-be07-9030ac3f9dc9/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidsuspend.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidsuspend.txt index 618f429f..4b4d6154 100644 --- a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidsuspend.txt +++ b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidsuspend.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21931428-40d7-466e-9c6c-26fbf90a6172/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/bf7560e4-23fc-4029-ada5-122c2aef97a6/suspend' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21931428-40d7-466e-9c6c-26fbf90a6172/suspend HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/bf7560e4-23fc-4029-ada5-122c2aef97a6/suspend HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodes.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodes.txt index a3969902..176a614b 100644 --- a/docs/api/examples/compute_post_projectsprojectidvpcsnodes.txt +++ b/docs/api/examples/compute_post_projectsprojectidvpcsnodes.txt @@ -18,8 +18,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes "console": 5720, "console_type": "telnet", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/8a4dac14-7af3-4f14-bc94-866223f81c51", - "node_id": "8a4dac14-7af3-4f14-bc94-866223f81c51", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e5748c47-6674-467c-8989-21c6ec8772ae", + "node_id": "e5748c47-6674-467c-8989-21c6ec8772ae", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "startup_script": null, "startup_script_path": null, diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 10ba3544..6b643c25 100644 --- a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt +++ b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5cf81283-7a37-4fe4-b387-228eda727008/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a6b0cfea-8161-4ebb-9af9-e98643cba39a/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5cf81283-7a37-4fe4-b387-228eda727008/adapters/0/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a6b0cfea-8161-4ebb-9af9-e98643cba39a/adapters/0/ports/0/nio HTTP/1.1 { "lport": 4242, "rhost": "127.0.0.1", diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidreload.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidreload.txt index 0c842b12..927b1f07 100644 --- a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidreload.txt +++ b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidreload.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2721cc81-3274-4a89-9e7b-4cfb986a9e80/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/8b061422-b92f-4b4a-878c-536f55ba1221/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2721cc81-3274-4a89-9e7b-4cfb986a9e80/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/8b061422-b92f-4b4a-878c-536f55ba1221/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstart.txt index 9a232fd7..75df7f78 100644 --- a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstart.txt +++ b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstart.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/696e00ce-d1b5-461f-8f8f-a5397762f0d4/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a0e7676b-0d45-481e-a98b-101848d559d6/start' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/696e00ce-d1b5-461f-8f8f-a5397762f0d4/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a0e7676b-0d45-481e-a98b-101848d559d6/start HTTP/1.1 {} @@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start "console": 5720, "console_type": "telnet", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/696e00ce-d1b5-461f-8f8f-a5397762f0d4", - "node_id": "696e00ce-d1b5-461f-8f8f-a5397762f0d4", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/a0e7676b-0d45-481e-a98b-101848d559d6", + "node_id": "a0e7676b-0d45-481e-a98b-101848d559d6", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "startup_script": null, "startup_script_path": null, diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstop.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstop.txt index 01b164a1..3a10bd29 100644 --- a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstop.txt +++ b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstop.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/75f19d3b-b46c-4f80-973f-d126e8011dd1/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/9aedadc1-a312-4186-a053-648e9df8ae9b/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/75f19d3b-b46c-4f80-973f-d126e8011dd1/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/9aedadc1-a312-4186-a053-648e9df8ae9b/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_put_projectsprojectidcloudnodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidcloudnodesnodeid.txt new file mode 100644 index 00000000..981235f5 --- /dev/null +++ b/docs/api/examples/compute_put_projectsprojectidcloudnodesnodeid.txt @@ -0,0 +1,964 @@ +curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/11800c81-28cb-419d-869e-4c1cec9738fe' -d '{"name": "test"}' + +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/11800c81-28cb-419d-869e-4c1cec9738fe HTTP/1.1 +{ + "name": "test" +} + + +HTTP/1.1 200 +CONTENT-LENGTH: 19805 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id} + +{ + "interfaces": [ + { + "name": "bridge0", + "type": "ethernet" + }, + { + "name": "en0", + "type": "ethernet" + }, + { + "name": "en1", + "type": "ethernet" + }, + { + "name": "en2", + "type": "ethernet" + }, + { + "name": "fw0", + "type": "ethernet" + }, + { + "name": "lo0", + "type": "ethernet" + }, + { + "name": "p2p0", + "type": "ethernet" + }, + { + "name": "vboxnet0", + "type": "ethernet" + }, + { + "name": "vboxnet1", + "type": "ethernet" + }, + { + "name": "vboxnet2", + "type": "ethernet" + }, + { + "name": "vboxnet3", + "type": "ethernet" + }, + { + "name": "vboxnet4", + "type": "ethernet" + }, + { + "name": "vboxnet5", + "type": "ethernet" + }, + { + "name": "vboxnet6", + "type": "ethernet" + }, + { + "name": "vboxnet7", + "type": "ethernet" + }, + { + "name": "vmnet1", + "type": "ethernet" + }, + { + "name": "vmnet10", + "type": "ethernet" + }, + { + "name": "vmnet100", + "type": "ethernet" + }, + { + "name": "vmnet101", + "type": "ethernet" + }, + { + "name": "vmnet102", + "type": "ethernet" + }, + { + "name": "vmnet103", + "type": "ethernet" + }, + { + "name": "vmnet104", + "type": "ethernet" + }, + { + "name": "vmnet105", + "type": "ethernet" + }, + { + "name": "vmnet106", + "type": "ethernet" + }, + { + "name": "vmnet107", + "type": "ethernet" + }, + { + "name": "vmnet108", + "type": "ethernet" + }, + { + "name": "vmnet109", + "type": "ethernet" + }, + { + "name": "vmnet11", + "type": "ethernet" + }, + { + "name": "vmnet110", + "type": "ethernet" + }, + { + "name": "vmnet111", + "type": "ethernet" + }, + { + "name": "vmnet112", + "type": "ethernet" + }, + { + "name": "vmnet113", + "type": "ethernet" + }, + { + "name": "vmnet114", + "type": "ethernet" + }, + { + "name": "vmnet115", + "type": "ethernet" + }, + { + "name": "vmnet116", + "type": "ethernet" + }, + { + "name": "vmnet117", + "type": "ethernet" + }, + { + "name": "vmnet118", + "type": "ethernet" + }, + { + "name": "vmnet119", + "type": "ethernet" + }, + { + "name": "vmnet12", + "type": "ethernet" + }, + { + "name": "vmnet120", + "type": "ethernet" + }, + { + "name": "vmnet121", + "type": "ethernet" + }, + { + "name": "vmnet122", + "type": "ethernet" + }, + { + "name": "vmnet123", + "type": "ethernet" + }, + { + "name": "vmnet124", + "type": "ethernet" + }, + { + "name": "vmnet125", + "type": "ethernet" + }, + { + "name": "vmnet126", + "type": "ethernet" + }, + { + "name": "vmnet127", + "type": "ethernet" + }, + { + "name": "vmnet128", + "type": "ethernet" + }, + { + "name": "vmnet129", + "type": "ethernet" + }, + { + "name": "vmnet13", + "type": "ethernet" + }, + { + "name": "vmnet130", + "type": "ethernet" + }, + { + "name": "vmnet131", + "type": "ethernet" + }, + { + "name": "vmnet132", + "type": "ethernet" + }, + { + "name": "vmnet133", + "type": "ethernet" + }, + { + "name": "vmnet134", + "type": "ethernet" + }, + { + "name": "vmnet135", + "type": "ethernet" + }, + { + "name": "vmnet136", + "type": "ethernet" + }, + { + "name": "vmnet137", + "type": "ethernet" + }, + { + "name": "vmnet138", + "type": "ethernet" + }, + { + "name": "vmnet139", + "type": "ethernet" + }, + { + "name": "vmnet14", + "type": "ethernet" + }, + { + "name": "vmnet140", + "type": "ethernet" + }, + { + "name": "vmnet141", + "type": "ethernet" + }, + { + "name": "vmnet142", + "type": "ethernet" + }, + { + "name": "vmnet143", + "type": "ethernet" + }, + { + "name": "vmnet144", + "type": "ethernet" + }, + { + "name": "vmnet145", + "type": "ethernet" + }, + { + "name": "vmnet146", + "type": "ethernet" + }, + { + "name": "vmnet147", + "type": "ethernet" + }, + { + "name": "vmnet148", + "type": "ethernet" + }, + { + "name": "vmnet149", + "type": "ethernet" + }, + { + "name": "vmnet15", + "type": "ethernet" + }, + { + "name": "vmnet150", + "type": "ethernet" + }, + { + "name": "vmnet151", + "type": "ethernet" + }, + { + "name": "vmnet152", + "type": "ethernet" + }, + { + "name": "vmnet153", + "type": "ethernet" + }, + { + "name": "vmnet154", + "type": "ethernet" + }, + { + "name": "vmnet155", + "type": "ethernet" + }, + { + "name": "vmnet156", + "type": "ethernet" + }, + { + "name": "vmnet157", + "type": "ethernet" + }, + { + "name": "vmnet158", + "type": "ethernet" + }, + { + "name": "vmnet159", + "type": "ethernet" + }, + { + "name": "vmnet16", + "type": "ethernet" + }, + { + "name": "vmnet160", + "type": "ethernet" + }, + { + "name": "vmnet161", + "type": "ethernet" + }, + { + "name": "vmnet162", + "type": "ethernet" + }, + { + "name": "vmnet163", + "type": "ethernet" + }, + { + "name": "vmnet164", + "type": "ethernet" + }, + { + "name": "vmnet165", + "type": "ethernet" + }, + { + "name": "vmnet166", + "type": "ethernet" + }, + { + "name": "vmnet167", + "type": "ethernet" + }, + { + "name": "vmnet168", + "type": "ethernet" + }, + { + "name": "vmnet169", + "type": "ethernet" + }, + { + "name": "vmnet17", + "type": "ethernet" + }, + { + "name": "vmnet170", + "type": "ethernet" + }, + { + "name": "vmnet171", + "type": "ethernet" + }, + { + "name": "vmnet172", + "type": "ethernet" + }, + { + "name": "vmnet173", + "type": "ethernet" + }, + { + "name": "vmnet174", + "type": "ethernet" + }, + { + "name": "vmnet175", + "type": "ethernet" + }, + { + "name": "vmnet176", + "type": "ethernet" + }, + { + "name": "vmnet177", + "type": "ethernet" + }, + { + "name": "vmnet178", + "type": "ethernet" + }, + { + "name": "vmnet179", + "type": "ethernet" + }, + { + "name": "vmnet18", + "type": "ethernet" + }, + { + "name": "vmnet180", + "type": "ethernet" + }, + { + "name": "vmnet181", + "type": "ethernet" + }, + { + "name": "vmnet182", + "type": "ethernet" + }, + { + "name": "vmnet183", + "type": "ethernet" + }, + { + "name": "vmnet184", + "type": "ethernet" + }, + { + "name": "vmnet185", + "type": "ethernet" + }, + { + "name": "vmnet186", + "type": "ethernet" + }, + { + "name": "vmnet187", + "type": "ethernet" + }, + { + "name": "vmnet188", + "type": "ethernet" + }, + { + "name": "vmnet189", + "type": "ethernet" + }, + { + "name": "vmnet19", + "type": "ethernet" + }, + { + "name": "vmnet190", + "type": "ethernet" + }, + { + "name": "vmnet191", + "type": "ethernet" + }, + { + "name": "vmnet192", + "type": "ethernet" + }, + { + "name": "vmnet193", + "type": "ethernet" + }, + { + "name": "vmnet194", + "type": "ethernet" + }, + { + "name": "vmnet195", + "type": "ethernet" + }, + { + "name": "vmnet196", + "type": "ethernet" + }, + { + "name": "vmnet197", + "type": "ethernet" + }, + { + "name": "vmnet198", + "type": "ethernet" + }, + { + "name": "vmnet199", + "type": "ethernet" + }, + { + "name": "vmnet2", + "type": "ethernet" + }, + { + "name": "vmnet20", + "type": "ethernet" + }, + { + "name": "vmnet200", + "type": "ethernet" + }, + { + "name": "vmnet201", + "type": "ethernet" + }, + { + "name": "vmnet202", + "type": "ethernet" + }, + { + "name": "vmnet203", + "type": "ethernet" + }, + { + "name": "vmnet204", + "type": "ethernet" + }, + { + "name": "vmnet205", + "type": "ethernet" + }, + { + "name": "vmnet206", + "type": "ethernet" + }, + { + "name": "vmnet207", + "type": "ethernet" + }, + { + "name": "vmnet208", + "type": "ethernet" + }, + { + "name": "vmnet209", + "type": "ethernet" + }, + { + "name": "vmnet21", + "type": "ethernet" + }, + { + "name": "vmnet210", + "type": "ethernet" + }, + { + "name": "vmnet211", + "type": "ethernet" + }, + { + "name": "vmnet212", + "type": "ethernet" + }, + { + "name": "vmnet213", + "type": "ethernet" + }, + { + "name": "vmnet214", + "type": "ethernet" + }, + { + "name": "vmnet215", + "type": "ethernet" + }, + { + "name": "vmnet216", + "type": "ethernet" + }, + { + "name": "vmnet217", + "type": "ethernet" + }, + { + "name": "vmnet218", + "type": "ethernet" + }, + { + "name": "vmnet219", + "type": "ethernet" + }, + { + "name": "vmnet22", + "type": "ethernet" + }, + { + "name": "vmnet220", + "type": "ethernet" + }, + { + "name": "vmnet23", + "type": "ethernet" + }, + { + "name": "vmnet24", + "type": "ethernet" + }, + { + "name": "vmnet25", + "type": "ethernet" + }, + { + "name": "vmnet26", + "type": "ethernet" + }, + { + "name": "vmnet27", + "type": "ethernet" + }, + { + "name": "vmnet28", + "type": "ethernet" + }, + { + "name": "vmnet29", + "type": "ethernet" + }, + { + "name": "vmnet3", + "type": "ethernet" + }, + { + "name": "vmnet30", + "type": "ethernet" + }, + { + "name": "vmnet31", + "type": "ethernet" + }, + { + "name": "vmnet32", + "type": "ethernet" + }, + { + "name": "vmnet33", + "type": "ethernet" + }, + { + "name": "vmnet34", + "type": "ethernet" + }, + { + "name": "vmnet35", + "type": "ethernet" + }, + { + "name": "vmnet36", + "type": "ethernet" + }, + { + "name": "vmnet37", + "type": "ethernet" + }, + { + "name": "vmnet38", + "type": "ethernet" + }, + { + "name": "vmnet39", + "type": "ethernet" + }, + { + "name": "vmnet4", + "type": "ethernet" + }, + { + "name": "vmnet40", + "type": "ethernet" + }, + { + "name": "vmnet41", + "type": "ethernet" + }, + { + "name": "vmnet42", + "type": "ethernet" + }, + { + "name": "vmnet43", + "type": "ethernet" + }, + { + "name": "vmnet44", + "type": "ethernet" + }, + { + "name": "vmnet45", + "type": "ethernet" + }, + { + "name": "vmnet46", + "type": "ethernet" + }, + { + "name": "vmnet47", + "type": "ethernet" + }, + { + "name": "vmnet48", + "type": "ethernet" + }, + { + "name": "vmnet49", + "type": "ethernet" + }, + { + "name": "vmnet5", + "type": "ethernet" + }, + { + "name": "vmnet50", + "type": "ethernet" + }, + { + "name": "vmnet51", + "type": "ethernet" + }, + { + "name": "vmnet52", + "type": "ethernet" + }, + { + "name": "vmnet53", + "type": "ethernet" + }, + { + "name": "vmnet54", + "type": "ethernet" + }, + { + "name": "vmnet55", + "type": "ethernet" + }, + { + "name": "vmnet56", + "type": "ethernet" + }, + { + "name": "vmnet57", + "type": "ethernet" + }, + { + "name": "vmnet58", + "type": "ethernet" + }, + { + "name": "vmnet59", + "type": "ethernet" + }, + { + "name": "vmnet6", + "type": "ethernet" + }, + { + "name": "vmnet60", + "type": "ethernet" + }, + { + "name": "vmnet61", + "type": "ethernet" + }, + { + "name": "vmnet62", + "type": "ethernet" + }, + { + "name": "vmnet63", + "type": "ethernet" + }, + { + "name": "vmnet64", + "type": "ethernet" + }, + { + "name": "vmnet65", + "type": "ethernet" + }, + { + "name": "vmnet66", + "type": "ethernet" + }, + { + "name": "vmnet67", + "type": "ethernet" + }, + { + "name": "vmnet68", + "type": "ethernet" + }, + { + "name": "vmnet69", + "type": "ethernet" + }, + { + "name": "vmnet7", + "type": "ethernet" + }, + { + "name": "vmnet70", + "type": "ethernet" + }, + { + "name": "vmnet71", + "type": "ethernet" + }, + { + "name": "vmnet72", + "type": "ethernet" + }, + { + "name": "vmnet73", + "type": "ethernet" + }, + { + "name": "vmnet74", + "type": "ethernet" + }, + { + "name": "vmnet75", + "type": "ethernet" + }, + { + "name": "vmnet76", + "type": "ethernet" + }, + { + "name": "vmnet77", + "type": "ethernet" + }, + { + "name": "vmnet78", + "type": "ethernet" + }, + { + "name": "vmnet79", + "type": "ethernet" + }, + { + "name": "vmnet8", + "type": "ethernet" + }, + { + "name": "vmnet80", + "type": "ethernet" + }, + { + "name": "vmnet81", + "type": "ethernet" + }, + { + "name": "vmnet82", + "type": "ethernet" + }, + { + "name": "vmnet83", + "type": "ethernet" + }, + { + "name": "vmnet84", + "type": "ethernet" + }, + { + "name": "vmnet85", + "type": "ethernet" + }, + { + "name": "vmnet86", + "type": "ethernet" + }, + { + "name": "vmnet87", + "type": "ethernet" + }, + { + "name": "vmnet88", + "type": "ethernet" + }, + { + "name": "vmnet89", + "type": "ethernet" + }, + { + "name": "vmnet9", + "type": "ethernet" + }, + { + "name": "vmnet90", + "type": "ethernet" + }, + { + "name": "vmnet91", + "type": "ethernet" + }, + { + "name": "vmnet92", + "type": "ethernet" + }, + { + "name": "vmnet93", + "type": "ethernet" + }, + { + "name": "vmnet94", + "type": "ethernet" + }, + { + "name": "vmnet95", + "type": "ethernet" + }, + { + "name": "vmnet96", + "type": "ethernet" + }, + { + "name": "vmnet97", + "type": "ethernet" + }, + { + "name": "vmnet98", + "type": "ethernet" + }, + { + "name": "vmnet99", + "type": "ethernet" + } + ], + "name": "test", + "node_id": "11800c81-28cb-419d-869e-4c1cec9738fe", + "ports": [], + "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", + "status": "started" +} diff --git a/docs/api/examples/compute_put_projectsprojectiddockernodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectiddockernodesnodeid.txt index ba16188f..cec727e9 100644 --- a/docs/api/examples/compute_put_projectsprojectiddockernodesnodeid.txt +++ b/docs/api/examples/compute_put_projectsprojectiddockernodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/aca4e44c-9642-4662-826e-f88af1989002' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}' +curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/42a35b9a-6b07-4cf3-9030-fc93c5cb588a' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/aca4e44c-9642-4662-826e-f88af1989002 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/42a35b9a-6b07-4cf3-9030-fc93c5cb588a HTTP/1.1 { "console": 5713, "environment": "GNS3=1\nGNS4=0", @@ -10,7 +10,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/aca4e HTTP/1.1 200 -CONTENT-LENGTH: 654 +CONTENT-LENGTH: 653 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -28,8 +28,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id} "environment": "GNS3=1\nGNS4=0", "image": "nginx:latest", "name": "test", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/docker/aca4e44c-9642-4662-826e-f88af1989002", - "node_id": "aca4e44c-9642-4662-826e-f88af1989002", + "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/docker/42a35b9a-6b07-4cf3-9030-fc93c5cb588a", + "node_id": "42a35b9a-6b07-4cf3-9030-fc93c5cb588a", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "start_command": "yes", "status": "stopped" diff --git a/docs/api/examples/compute_put_projectsprojectidiounodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidiounodesnodeid.txt index eefdc757..b8a9c17f 100644 --- a/docs/api/examples/compute_put_projectsprojectidiounodesnodeid.txt +++ b/docs/api/examples/compute_put_projectsprojectidiounodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a92f74-b721-4346-9f8d-11bc7f651f62' -d '{"console": 5712, "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:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0544cde0-2d2a-4488-8970-49f87b463674' -d '{"console": 5712, "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/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a92f74-b721-4346-9f8d-11bc7f651f62 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0544cde0-2d2a-4488-8970-49f87b463674 HTTP/1.1 { "console": 5712, "ethernet_adapters": 4, @@ -16,7 +16,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a92f74 HTTP/1.1 200 -CONTENT-LENGTH: 796 +CONTENT-LENGTH: 707 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -27,12 +27,11 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id} "console": 5712, "console_type": "telnet", "ethernet_adapters": 4, - "iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3osvg462/iourc", "l1_keepalives": true, "md5sum": "e573e8f5c93c6c00783f20c7a170aa6c", "name": "test", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/50a92f74-b721-4346-9f8d-11bc7f651f62", - "node_id": "50a92f74-b721-4346-9f8d-11bc7f651f62", + "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/0544cde0-2d2a-4488-8970-49f87b463674", + "node_id": "0544cde0-2d2a-4488-8970-49f87b463674", "nvram": 2048, "path": "iou.bin", "private_config": null, diff --git a/docs/api/examples/compute_put_projectsprojectidnatnodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidnatnodesnodeid.txt new file mode 100644 index 00000000..350e61ce --- /dev/null +++ b/docs/api/examples/compute_put_projectsprojectidnatnodesnodeid.txt @@ -0,0 +1,29 @@ +curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/6bfb85ec-15bc-4c41-a4c0-a1ac3564b662' -d '{"name": "test"}' + +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/6bfb85ec-15bc-4c41-a4c0-a1ac3564b662 HTTP/1.1 +{ + "name": "test" +} + + +HTTP/1.1 200 +CONTENT-LENGTH: 324 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id} + +{ + "name": "test", + "node_id": "6bfb85ec-15bc-4c41-a4c0-a1ac3564b662", + "ports": [ + { + "interface": "eth1", + "name": "nat0", + "port_number": 1, + "type": "ethernet" + } + ], + "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", + "status": "started" +} diff --git a/docs/api/examples/compute_put_projectsprojectidqemunodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidqemunodesnodeid.txt index 2a26bd75..0a0be8ae 100644 --- a/docs/api/examples/compute_put_projectsprojectidqemunodesnodeid.txt +++ b/docs/api/examples/compute_put_projectsprojectidqemunodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/91996aa5-a205-42b0-80df-9a86685a8563' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}' +curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/11db191a-9c2d-4e40-a086-413aaccceaff' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/91996aa5-a205-42b0-80df-9a86685a8563 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/11db191a-9c2d-4e40-a086-413aaccceaff HTTP/1.1 { "console": 5712, "hdb_disk_image": "linux\u8f7d.img", @@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id} "kernel_image": "", "kernel_image_md5sum": null, "legacy_networking": false, - "mac_address": "00:dd:80:85:63:00", + "mac_address": "00:dd:80:ea:ff:00", "name": "test", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/91996aa5-a205-42b0-80df-9a86685a8563", - "node_id": "91996aa5-a205-42b0-80df-9a86685a8563", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/11db191a-9c2d-4e40-a086-413aaccceaff", + "node_id": "11db191a-9c2d-4e40-a086-413aaccceaff", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 1024, "status": "stopped", "usage": "" diff --git a/docs/api/examples/compute_put_projectsprojectidvirtualboxnodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidvirtualboxnodesnodeid.txt index 435293c0..83cb35f5 100644 --- a/docs/api/examples/compute_put_projectsprojectidvirtualboxnodesnodeid.txt +++ b/docs/api/examples/compute_put_projectsprojectidvirtualboxnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5e581f48-254f-413c-994f-ff03a349d386' -d '{"console": 5721, "name": "test"}' +curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0981ed02-441a-4eab-a04a-5f5d686a79ee' -d '{"console": 5721, "name": "test"}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5e581f48-254f-413c-994f-ff03a349d386 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0981ed02-441a-4eab-a04a-5f5d686a79ee HTTP/1.1 { "console": 5721, "name": "test" @@ -24,7 +24,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id} "linked_clone": false, "name": "test", "node_directory": null, - "node_id": "5e581f48-254f-413c-994f-ff03a349d386", + "node_id": "0981ed02-441a-4eab-a04a-5f5d686a79ee", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "ram": 0, "status": "stopped", diff --git a/docs/api/examples/compute_put_projectsprojectidvpcsnodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidvpcsnodesnodeid.txt index 3fadd3de..3767ccf7 100644 --- a/docs/api/examples/compute_put_projectsprojectidvpcsnodesnodeid.txt +++ b/docs/api/examples/compute_put_projectsprojectidvpcsnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e27400b3-bf43-4ba1-95e5-7784db5b8d05' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}' +curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/515dde30-c071-4b00-9bd3-4c9670894a7b' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e27400b3-bf43-4ba1-95e5-7784db5b8d05 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/515dde30-c071-4b00-9bd3-4c9670894a7b HTTP/1.1 { "console": 5722, "name": "test", @@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id} "console": 5722, "console_type": "telnet", "name": "test", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e27400b3-bf43-4ba1-95e5-7784db5b8d05", - "node_id": "e27400b3-bf43-4ba1-95e5-7784db5b8d05", + "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/515dde30-c071-4b00-9bd3-4c9670894a7b", + "node_id": "515dde30-c071-4b00-9bd3-4c9670894a7b", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "startup_script": "ip 192.168.1.1", "startup_script_path": "startup.vpc", diff --git a/docs/api/examples/controller_delete_projectsprojectid.txt b/docs/api/examples/controller_delete_projectsprojectid.txt index c7ee7568..40c8f13b 100644 --- a/docs/api/examples/controller_delete_projectsprojectid.txt +++ b/docs/api/examples/controller_delete_projectsprojectid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/projects/7074992f-14e6-46f8-bd00-e0ebe49ba6bb' +curl -i -X DELETE 'http://localhost:3080/v2/projects/62332e68-a255-4526-9af5-302b6670256f' -DELETE /v2/projects/7074992f-14e6-46f8-bd00-e0ebe49ba6bb HTTP/1.1 +DELETE /v2/projects/62332e68-a255-4526-9af5-302b6670256f HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectiddrawingsdrawingid.txt b/docs/api/examples/controller_delete_projectsprojectiddrawingsdrawingid.txt index 59a4d6e7..5cda087c 100644 --- a/docs/api/examples/controller_delete_projectsprojectiddrawingsdrawingid.txt +++ b/docs/api/examples/controller_delete_projectsprojectiddrawingsdrawingid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/projects/8f835819-7610-431f-ac63-f7aac942da0f/drawings/751256c7-86de-4bca-a224-cd46bdc0a289' +curl -i -X DELETE 'http://localhost:3080/v2/projects/edad99ed-f0b9-4019-b9f9-9351f97710f0/drawings/0f396900-1e78-4350-ab98-c07cec24239a' -DELETE /v2/projects/8f835819-7610-431f-ac63-f7aac942da0f/drawings/751256c7-86de-4bca-a224-cd46bdc0a289 HTTP/1.1 +DELETE /v2/projects/edad99ed-f0b9-4019-b9f9-9351f97710f0/drawings/0f396900-1e78-4350-ab98-c07cec24239a HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectidlinkslinkid.txt b/docs/api/examples/controller_delete_projectsprojectidlinkslinkid.txt index 6e00b8d9..f0496451 100644 --- a/docs/api/examples/controller_delete_projectsprojectidlinkslinkid.txt +++ b/docs/api/examples/controller_delete_projectsprojectidlinkslinkid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/projects/15ec7567-33b4-4648-876a-b7128c33cb07/links/cbca8122-7162-4ce0-a2ad-82075775bada' +curl -i -X DELETE 'http://localhost:3080/v2/projects/e7967118-9e5f-41d2-922e-e35053b5e5a7/links/701e9502-119d-4aec-8a66-c13f7c8013d5' -DELETE /v2/projects/15ec7567-33b4-4648-876a-b7128c33cb07/links/cbca8122-7162-4ce0-a2ad-82075775bada HTTP/1.1 +DELETE /v2/projects/e7967118-9e5f-41d2-922e-e35053b5e5a7/links/701e9502-119d-4aec-8a66-c13f7c8013d5 HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectidnodesnodeid.txt b/docs/api/examples/controller_delete_projectsprojectidnodesnodeid.txt index fbbd0a77..aa5ca162 100644 --- a/docs/api/examples/controller_delete_projectsprojectidnodesnodeid.txt +++ b/docs/api/examples/controller_delete_projectsprojectidnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/projects/3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1/nodes/fa1fc0e2-c4bd-4f0e-ad65-36a71111f381' +curl -i -X DELETE 'http://localhost:3080/v2/projects/6659771c-4fe9-4ffc-8c19-dfd672f26b76/nodes/97aa684f-b23c-4bfb-81bf-05df5d187b3f' -DELETE /v2/projects/3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1/nodes/fa1fc0e2-c4bd-4f0e-ad65-36a71111f381 HTTP/1.1 +DELETE /v2/projects/6659771c-4fe9-4ffc-8c19-dfd672f26b76/nodes/97aa684f-b23c-4bfb-81bf-05df5d187b3f HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectidsnapshotssnapshotid.txt b/docs/api/examples/controller_delete_projectsprojectidsnapshotssnapshotid.txt index 638e3b8b..8932438e 100644 --- a/docs/api/examples/controller_delete_projectsprojectidsnapshotssnapshotid.txt +++ b/docs/api/examples/controller_delete_projectsprojectidsnapshotssnapshotid.txt @@ -1,6 +1,6 @@ -curl -i -X DELETE 'http://localhost:3080/v2/projects/b220fd00-88c0-4ae4-a457-9e06ece8243e/snapshots/61eeff3d-750f-4c73-beff-29757c862e1a' +curl -i -X DELETE 'http://localhost:3080/v2/projects/f432c246-be05-43e2-b60a-05d924ac89ff/snapshots/9a2f99d4-2248-4f49-98fc-a0513cb5248d' -DELETE /v2/projects/b220fd00-88c0-4ae4-a457-9e06ece8243e/snapshots/61eeff3d-750f-4c73-beff-29757c862e1a HTTP/1.1 +DELETE /v2/projects/f432c246-be05-43e2-b60a-05d924ac89ff/snapshots/9a2f99d4-2248-4f49-98fc-a0513cb5248d HTTP/1.1 diff --git a/docs/api/examples/controller_get_gns3vm.txt b/docs/api/examples/controller_get_gns3vm.txt new file mode 100644 index 00000000..bcfbd6fd --- /dev/null +++ b/docs/api/examples/controller_get_gns3vm.txt @@ -0,0 +1,20 @@ +curl -i -X GET 'http://localhost:3080/v2/gns3vm' + +GET /v2/gns3vm HTTP/1.1 + + + +HTTP/1.1 200 +CONTENT-LENGTH: 113 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/gns3vm + +{ + "auto_stop": true, + "enable": false, + "engine": "vmware", + "headless": false, + "vmname": null +} diff --git a/docs/api/examples/controller_get_gns3vmengines.txt b/docs/api/examples/controller_get_gns3vmengines.txt new file mode 100644 index 00000000..bc1b3644 --- /dev/null +++ b/docs/api/examples/controller_get_gns3vmengines.txt @@ -0,0 +1,25 @@ +curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines' + +GET /v2/gns3vm/engines HTTP/1.1 + + + +HTTP/1.1 200 +CONTENT-LENGTH: 366 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/gns3vm/engines + +[ + { + "description": "VMware is the recommended choice for best performances.", + "engine_id": "vmware", + "name": "VMware Fusion" + }, + { + "description": "VirtualBox doesn't support nested virtualization, this means running Qemu based VM could be very slow.", + "engine_id": "virtualbox", + "name": "VirtualBox" + } +] diff --git a/docs/api/examples/controller_get_gns3vmenginesenginevms.txt b/docs/api/examples/controller_get_gns3vmenginesenginevms.txt new file mode 100644 index 00000000..6b29914a --- /dev/null +++ b/docs/api/examples/controller_get_gns3vmenginesenginevms.txt @@ -0,0 +1,18 @@ +curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines/vmware/vms' + +GET /v2/gns3vm/engines/vmware/vms HTTP/1.1 + + + +HTTP/1.1 200 +CONTENT-LENGTH: 40 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/gns3vm/engines/{engine}/vms + +[ + { + "vmname": "test" + } +] diff --git a/docs/api/examples/controller_get_projects.txt b/docs/api/examples/controller_get_projects.txt index 10bde191..90bed6f7 100644 --- a/docs/api/examples/controller_get_projects.txt +++ b/docs/api/examples/controller_get_projects.txt @@ -5,7 +5,7 @@ GET /v2/projects HTTP/1.1 HTTP/1.1 200 -CONTENT-LENGTH: 285 +CONTENT-LENGTH: 369 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -13,9 +13,12 @@ X-ROUTE: /v2/projects [ { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_list_projects1", + "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_list_projects1", "project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f", "status": "opened" } diff --git a/docs/api/examples/controller_get_projectsprojectid.txt b/docs/api/examples/controller_get_projectsprojectid.txt index 33de3561..56aa5e43 100644 --- a/docs/api/examples/controller_get_projectsprojectid.txt +++ b/docs/api/examples/controller_get_projectsprojectid.txt @@ -1,20 +1,23 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf' +curl -i -X GET 'http://localhost:3080/v2/projects/d839c8ca-3daa-423c-8818-48bd419981a3' -GET /v2/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf HTTP/1.1 +GET /v2/projects/d839c8ca-3daa-423c-8818-48bd419981a3 HTTP/1.1 HTTP/1.1 200 -CONTENT-LENGTH: 255 +CONTENT-LENGTH: 328 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id} { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmplesu6g2y/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf", - "project_id": "752e3ddf-bcad-4feb-b72c-6498a74bfabf", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfu9wtq18/projects/d839c8ca-3daa-423c-8818-48bd419981a3", + "project_id": "d839c8ca-3daa-423c-8818-48bd419981a3", "status": "opened" } diff --git a/docs/api/examples/controller_get_projectsprojectiddrawings.txt b/docs/api/examples/controller_get_projectsprojectiddrawings.txt index f4333d18..04c40353 100644 --- a/docs/api/examples/controller_get_projectsprojectiddrawings.txt +++ b/docs/api/examples/controller_get_projectsprojectiddrawings.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4/drawings' +curl -i -X GET 'http://localhost:3080/v2/projects/477f33f8-ee23-4c5e-a344-f3ca66ac7e21/drawings' -GET /v2/projects/21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4/drawings HTTP/1.1 +GET /v2/projects/477f33f8-ee23-4c5e-a344-f3ca66ac7e21/drawings HTTP/1.1 @@ -13,8 +13,8 @@ X-ROUTE: /v2/projects/{project_id}/drawings [ { - "drawing_id": "9fcf65e4-ffd7-47ad-af23-f161d5bbfa11", - "project_id": "21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4", + "drawing_id": "799b4ac6-9b05-4e77-9b3f-21af71106e8b", + "project_id": "477f33f8-ee23-4c5e-a344-f3ca66ac7e21", "rotation": 0, "svg": "", "x": 10, diff --git a/docs/api/examples/controller_get_projectsprojectidlinks.txt b/docs/api/examples/controller_get_projectsprojectidlinks.txt index d32f5c73..162cd974 100644 --- a/docs/api/examples/controller_get_projectsprojectidlinks.txt +++ b/docs/api/examples/controller_get_projectsprojectidlinks.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/3863fae6-89f2-44b8-8440-130c111f5237/links' +curl -i -X GET 'http://localhost:3080/v2/projects/6aa6ab8c-71f5-41d8-a0db-934e797cdbf6/links' -GET /v2/projects/3863fae6-89f2-44b8-8440-130c111f5237/links HTTP/1.1 +GET /v2/projects/6aa6ab8c-71f5-41d8-a0db-934e797cdbf6/links HTTP/1.1 @@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/{project_id}/links "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "99a8611f-f802-4a23-9d6f-3f5c1fdc6efa", + "link_id": "6dd714f1-40e7-4550-bdf2-5166f38d07f3", "nodes": [ { "adapter_number": 0, @@ -27,7 +27,7 @@ X-ROUTE: /v2/projects/{project_id}/links "x": -10, "y": -10 }, - "node_id": "3d057b55-d638-4d38-9d22-a2f6f56d1799", + "node_id": "b719f78c-f29c-49d8-bb20-c0e3f646b9f3", "port_number": 3 }, { @@ -39,10 +39,10 @@ X-ROUTE: /v2/projects/{project_id}/links "x": -10, "y": -10 }, - "node_id": "de315007-d0cf-499e-93b4-cf7ed94a14e6", + "node_id": "dc59e823-fd6f-4adb-9ca3-9f00465224cc", "port_number": 4 } ], - "project_id": "3863fae6-89f2-44b8-8440-130c111f5237" + "project_id": "6aa6ab8c-71f5-41d8-a0db-934e797cdbf6" } ] diff --git a/docs/api/examples/controller_get_projectsprojectidnodes.txt b/docs/api/examples/controller_get_projectsprojectidnodes.txt index e52d3d65..4c6c30b9 100644 --- a/docs/api/examples/controller_get_projectsprojectidnodes.txt +++ b/docs/api/examples/controller_get_projectsprojectidnodes.txt @@ -1,11 +1,11 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/21f741da-fe54-4d8d-ad40-fef06d536dc5/nodes' +curl -i -X GET 'http://localhost:3080/v2/projects/0a89252b-f833-40a8-bd19-0a8536c7e9be/nodes' -GET /v2/projects/21f741da-fe54-4d8d-ad40-fef06d536dc5/nodes HTTP/1.1 +GET /v2/projects/0a89252b-f833-40a8-bd19-0a8536c7e9be/nodes HTTP/1.1 HTTP/1.1 200 -CONTENT-LENGTH: 810 +CONTENT-LENGTH: 811 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -18,25 +18,25 @@ X-ROUTE: /v2/projects/{project_id}/nodes "console": 2048, "console_host": "example.org", "console_type": null, - "height": 70, + "height": 59, "label": { "rotation": 0, "style": "font-size: 10;font-familly: Verdana", "text": "test", - "x": -17, - "y": -25 + "x": null, + "y": -40 }, "name": "test", "node_directory": null, - "node_id": "3797673d-fb0c-40d6-9fa1-c768167c1989", + "node_id": "16d978e0-d0b3-462b-bc47-eec738a200e1", "node_type": "vpcs", - "project_id": "21f741da-fe54-4d8d-ad40-fef06d536dc5", + "project_id": "0a89252b-f833-40a8-bd19-0a8536c7e9be", "properties": { "startup_script": "echo test" }, "status": "stopped", "symbol": ":/symbols/computer.svg", - "width": 70, + "width": 65, "x": 0, "y": 0, "z": 0 diff --git a/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsautoidlepc.txt b/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsautoidlepc.txt index 5636b9f9..74989283 100644 --- a/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsautoidlepc.txt +++ b/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsautoidlepc.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/2e182242-533c-45fa-a997-c4dbfd13f66c/nodes/444057ba-eb3d-4120-8f9d-8e764bab489f/dynamips/auto_idlepc' +curl -i -X GET 'http://localhost:3080/v2/projects/1a1e45df-eb32-4009-a135-b250af5c0168/nodes/986e62dd-3025-4ee8-8ce0-fcd29a08ea5f/dynamips/auto_idlepc' -GET /v2/projects/2e182242-533c-45fa-a997-c4dbfd13f66c/nodes/444057ba-eb3d-4120-8f9d-8e764bab489f/dynamips/auto_idlepc HTTP/1.1 +GET /v2/projects/1a1e45df-eb32-4009-a135-b250af5c0168/nodes/986e62dd-3025-4ee8-8ce0-fcd29a08ea5f/dynamips/auto_idlepc HTTP/1.1 diff --git a/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsidlepcproposals.txt b/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsidlepcproposals.txt index 3840fba9..04f4cb96 100644 --- a/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsidlepcproposals.txt +++ b/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsidlepcproposals.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/086d8799-7ab0-4d3c-a355-da83ab65b8c8/nodes/18a28349-459a-4644-a220-6d3f1c87ba4f/dynamips/idlepc_proposals' +curl -i -X GET 'http://localhost:3080/v2/projects/d4513b9c-1fed-4e89-920a-cb9c1064c4fd/nodes/aa547a4d-b8fa-48f4-ba0b-b085c0942040/dynamips/idlepc_proposals' -GET /v2/projects/086d8799-7ab0-4d3c-a355-da83ab65b8c8/nodes/18a28349-459a-4644-a220-6d3f1c87ba4f/dynamips/idlepc_proposals HTTP/1.1 +GET /v2/projects/d4513b9c-1fed-4e89-920a-cb9c1064c4fd/nodes/aa547a4d-b8fa-48f4-ba0b-b085c0942040/dynamips/idlepc_proposals HTTP/1.1 diff --git a/docs/api/examples/controller_get_projectsprojectidsnapshots.txt b/docs/api/examples/controller_get_projectsprojectidsnapshots.txt index 958fba60..a2429cb0 100644 --- a/docs/api/examples/controller_get_projectsprojectidsnapshots.txt +++ b/docs/api/examples/controller_get_projectsprojectidsnapshots.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/95248748-6c54-4935-a3e1-db0638fa923e/snapshots' +curl -i -X GET 'http://localhost:3080/v2/projects/6abcb53c-71b4-46a1-a8a2-51c38166bb59/snapshots' -GET /v2/projects/95248748-6c54-4935-a3e1-db0638fa923e/snapshots HTTP/1.1 +GET /v2/projects/6abcb53c-71b4-46a1-a8a2-51c38166bb59/snapshots HTTP/1.1 @@ -13,9 +13,9 @@ X-ROUTE: /v2/projects/{project_id}/snapshots [ { - "created_at": 1471275494, + "created_at": 1472128867, "name": "test", - "project_id": "95248748-6c54-4935-a3e1-db0638fa923e", - "snapshot_id": "2da92e42-c175-4d37-b0d4-85433c4a9be5" + "project_id": "6abcb53c-71b4-46a1-a8a2-51c38166bb59", + "snapshot_id": "f8c8bd01-ae51-4444-8e9d-10d631dc0d21" } ] diff --git a/docs/api/examples/controller_post_projects.txt b/docs/api/examples/controller_post_projects.txt index 7240ed11..494495e3 100644 --- a/docs/api/examples/controller_post_projects.txt +++ b/docs/api/examples/controller_post_projects.txt @@ -8,16 +8,19 @@ POST /v2/projects HTTP/1.1 HTTP/1.1 201 -CONTENT-LENGTH: 255 +CONTENT-LENGTH: 328 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9tsioz_l/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpz1kilzjg/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsload.txt b/docs/api/examples/controller_post_projectsload.txt index fd7c2a6e..417f816a 100644 --- a/docs/api/examples/controller_post_projectsload.txt +++ b/docs/api/examples/controller_post_projectsload.txt @@ -7,16 +7,19 @@ POST /v2/projects/load HTTP/1.1 HTTP/1.1 201 -CONTENT-LENGTH: 255 +CONTENT-LENGTH: 328 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/load { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpixvpn8v2/projects/1207c9ba-3f18-4d4c-8adc-271cfaefed03", - "project_id": "1207c9ba-3f18-4d4c-8adc-271cfaefed03", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp2tn0j7vo/projects/11afd4a8-bec3-477b-9462-018af5ec1c52", + "project_id": "11afd4a8-bec3-477b-9462-018af5ec1c52", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsprojectidclose.txt b/docs/api/examples/controller_post_projectsprojectidclose.txt index cc86eb78..66ffb92a 100644 --- a/docs/api/examples/controller_post_projectsprojectidclose.txt +++ b/docs/api/examples/controller_post_projectsprojectidclose.txt @@ -1,20 +1,23 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6/close' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/be87a340-df85-48a2-8b3c-b4c52d34b803/close' -d '{}' -POST /v2/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6/close HTTP/1.1 +POST /v2/projects/be87a340-df85-48a2-8b3c-b4c52d34b803/close HTTP/1.1 {} HTTP/1.1 201 -CONTENT-LENGTH: 255 +CONTENT-LENGTH: 328 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/close { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp2uaousem/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6", - "project_id": "c3ec9d20-749b-4e11-b2a5-922e807209c6", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmptjk4s03z/projects/be87a340-df85-48a2-8b3c-b4c52d34b803", + "project_id": "be87a340-df85-48a2-8b3c-b4c52d34b803", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsprojectiddrawings.txt b/docs/api/examples/controller_post_projectsprojectiddrawings.txt index a6a8085b..cc8ab611 100644 --- a/docs/api/examples/controller_post_projectsprojectiddrawings.txt +++ b/docs/api/examples/controller_post_projectsprojectiddrawings.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/7f91b223-b43b-46d8-9352-f486b561e319/drawings' -d '{"svg": "", "x": 10, "y": 20, "z": 0}' +curl -i -X POST 'http://localhost:3080/v2/projects/2f61fea5-bace-44cc-84ff-e24345fef6c5/drawings' -d '{"svg": "", "x": 10, "y": 20, "z": 0}' -POST /v2/projects/7f91b223-b43b-46d8-9352-f486b561e319/drawings HTTP/1.1 +POST /v2/projects/2f61fea5-bace-44cc-84ff-e24345fef6c5/drawings HTTP/1.1 { "svg": "", "x": 10, @@ -17,8 +17,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/drawings { - "drawing_id": "5a959fe2-7551-44de-b8b9-f143bed44b95", - "project_id": "7f91b223-b43b-46d8-9352-f486b561e319", + "drawing_id": "1da3253e-dcec-4acd-8ee1-0158fa204131", + "project_id": "2f61fea5-bace-44cc-84ff-e24345fef6c5", "rotation": 0, "svg": "", "x": 10, diff --git a/docs/api/examples/controller_post_projectsprojectidduplicate.txt b/docs/api/examples/controller_post_projectsprojectidduplicate.txt index 8e241dc7..1c0fca02 100644 --- a/docs/api/examples/controller_post_projectsprojectidduplicate.txt +++ b/docs/api/examples/controller_post_projectsprojectidduplicate.txt @@ -1,22 +1,25 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/7d5b9b55-cff9-435b-9ee7-45f4f33efe64/duplicate' -d '{"name": "hello"}' +curl -i -X POST 'http://localhost:3080/v2/projects/dfc1c666-6a21-4e08-b5d1-00bd2aa3e1dc/duplicate' -d '{"name": "hello"}' -POST /v2/projects/7d5b9b55-cff9-435b-9ee7-45f4f33efe64/duplicate HTTP/1.1 +POST /v2/projects/dfc1c666-6a21-4e08-b5d1-00bd2aa3e1dc/duplicate HTTP/1.1 { "name": "hello" } HTTP/1.1 201 -CONTENT-LENGTH: 226 +CONTENT-LENGTH: 299 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/duplicate { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "hello.gns3", "name": "hello", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp5dv92n90/projects/hello", - "project_id": "a8dc4a17-ae16-4b8b-8f2b-a3fa6a8c4556", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm7_ll93m/projects/hello", + "project_id": "d623e4a8-ee78-4da6-aee7-1613b1e4a6d3", "status": "closed" } diff --git a/docs/api/examples/controller_post_projectsprojectidlinks.txt b/docs/api/examples/controller_post_projectsprojectidlinks.txt index 7e89a054..4ca93db8 100644 --- a/docs/api/examples/controller_post_projectsprojectidlinks.txt +++ b/docs/api/examples/controller_post_projectsprojectidlinks.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/6fbfc705-c539-4013-a025-a5c76f7e1c8e/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "450a918f-d477-459e-bdab-26f32ab4de4e", "port_number": 3}, {"adapter_number": 2, "node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5", "port_number": 4}]}' +curl -i -X POST 'http://localhost:3080/v2/projects/3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "49b39d66-11d1-4155-89c4-99265417991b", "port_number": 3}, {"adapter_number": 2, "node_id": "71b97329-fbf9-41c6-a138-c8829a63050a", "port_number": 4}]}' -POST /v2/projects/6fbfc705-c539-4013-a025-a5c76f7e1c8e/links HTTP/1.1 +POST /v2/projects/3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33/links HTTP/1.1 { "nodes": [ { @@ -10,12 +10,12 @@ POST /v2/projects/6fbfc705-c539-4013-a025-a5c76f7e1c8e/links HTTP/1.1 "x": 42, "y": 0 }, - "node_id": "450a918f-d477-459e-bdab-26f32ab4de4e", + "node_id": "49b39d66-11d1-4155-89c4-99265417991b", "port_number": 3 }, { "adapter_number": 2, - "node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5", + "node_id": "71b97329-fbf9-41c6-a138-c8829a63050a", "port_number": 4 } ] @@ -33,7 +33,7 @@ X-ROUTE: /v2/projects/{project_id}/links "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "690b280c-0e37-41c7-a771-6665af22a542", + "link_id": "1812c97d-3993-46f9-8bb6-65a36389f005", "nodes": [ { "adapter_number": 0, @@ -42,7 +42,7 @@ X-ROUTE: /v2/projects/{project_id}/links "x": 42, "y": 0 }, - "node_id": "450a918f-d477-459e-bdab-26f32ab4de4e", + "node_id": "49b39d66-11d1-4155-89c4-99265417991b", "port_number": 3 }, { @@ -54,9 +54,9 @@ X-ROUTE: /v2/projects/{project_id}/links "x": -10, "y": -10 }, - "node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5", + "node_id": "71b97329-fbf9-41c6-a138-c8829a63050a", "port_number": 4 } ], - "project_id": "6fbfc705-c539-4013-a025-a5c76f7e1c8e" + "project_id": "3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33" } diff --git a/docs/api/examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt b/docs/api/examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt index f9c879f3..9fd24a73 100644 --- a/docs/api/examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt +++ b/docs/api/examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/1e55b8ee-8ed3-4295-8d51-3f09e3f705b1/links/cbb6ee48-d041-4962-992a-0375735707a1/start_capture' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/3577db33-a30c-46d2-a4ab-1c9012e8c395/links/a4060582-5d49-412d-96b9-51fa6f0a60f2/start_capture' -d '{}' -POST /v2/projects/1e55b8ee-8ed3-4295-8d51-3f09e3f705b1/links/cbb6ee48-d041-4962-992a-0375735707a1/start_capture HTTP/1.1 +POST /v2/projects/3577db33-a30c-46d2-a4ab-1c9012e8c395/links/a4060582-5d49-412d-96b9-51fa6f0a60f2/start_capture HTTP/1.1 {} @@ -15,7 +15,7 @@ X-ROUTE: /v2/projects/{project_id}/links/{link_id}/start_capture "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "cbb6ee48-d041-4962-992a-0375735707a1", + "link_id": "a4060582-5d49-412d-96b9-51fa6f0a60f2", "nodes": [], - "project_id": "1e55b8ee-8ed3-4295-8d51-3f09e3f705b1" + "project_id": "3577db33-a30c-46d2-a4ab-1c9012e8c395" } diff --git a/docs/api/examples/controller_post_projectsprojectidlinkslinkidstopcapture.txt b/docs/api/examples/controller_post_projectsprojectidlinkslinkidstopcapture.txt index 4b66a36c..400a1cc4 100644 --- a/docs/api/examples/controller_post_projectsprojectidlinkslinkidstopcapture.txt +++ b/docs/api/examples/controller_post_projectsprojectidlinkslinkidstopcapture.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/34959503-cdb0-420d-b157-57e393f5118d/links/f5d59f5f-b6fc-43d6-886c-417234c123fb/stop_capture' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/92bde20a-0063-43c1-b661-f9058570f657/links/f32eaaad-c223-40da-bd94-a62a51a696fd/stop_capture' -d '{}' -POST /v2/projects/34959503-cdb0-420d-b157-57e393f5118d/links/f5d59f5f-b6fc-43d6-886c-417234c123fb/stop_capture HTTP/1.1 +POST /v2/projects/92bde20a-0063-43c1-b661-f9058570f657/links/f32eaaad-c223-40da-bd94-a62a51a696fd/stop_capture HTTP/1.1 {} @@ -15,7 +15,7 @@ X-ROUTE: /v2/projects/{project_id}/links/{link_id}/stop_capture "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "f5d59f5f-b6fc-43d6-886c-417234c123fb", + "link_id": "f32eaaad-c223-40da-bd94-a62a51a696fd", "nodes": [], - "project_id": "34959503-cdb0-420d-b157-57e393f5118d" + "project_id": "92bde20a-0063-43c1-b661-f9058570f657" } diff --git a/docs/api/examples/controller_post_projectsprojectidnodes.txt b/docs/api/examples/controller_post_projectsprojectidnodes.txt index 1cd971de..369c553d 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodes.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodes.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}' +curl -i -X POST 'http://localhost:3080/v2/projects/af6a3906-9f06-486a-a833-b6d267557daf/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}' -POST /v2/projects/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes HTTP/1.1 +POST /v2/projects/af6a3906-9f06-486a-a833-b6d267557daf/nodes HTTP/1.1 { "compute_id": "example.com", "name": "test", @@ -12,7 +12,7 @@ POST /v2/projects/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes HTTP/1.1 HTTP/1.1 201 -CONTENT-LENGTH: 690 +CONTENT-LENGTH: 691 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -24,25 +24,25 @@ X-ROUTE: /v2/projects/{project_id}/nodes "console": 2048, "console_host": "example.org", "console_type": null, - "height": 70, + "height": 59, "label": { "rotation": 0, "style": "font-size: 10;font-familly: Verdana", "text": "test", - "x": -17, - "y": -25 + "x": null, + "y": -40 }, "name": "test", "node_directory": null, - "node_id": "a414b9fb-f612-4042-8f2a-59206dce9bf5", + "node_id": "23cd9a53-e3c7-4830-9bda-56d547504316", "node_type": "vpcs", - "project_id": "cc0908dc-6ae4-4186-b537-4f6b23c13f0c", + "project_id": "af6a3906-9f06-486a-a833-b6d267557daf", "properties": { "startup_script": "echo test" }, "status": "stopped", "symbol": ":/symbols/computer.svg", - "width": 70, + "width": 65, "x": 0, "y": 0, "z": 0 diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt index c6579ffd..e6b2216f 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt @@ -1,12 +1,40 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/e2c0dd62-7f12-43e5-9296-c38e1145fb14/nodes/52481486-ea78-40ff-ac8b-036031fcaa5b/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/236b8cd6-bae4-4848-b4fe-eb99e0a41d4e/nodes/32e707d3-89c9-4e4a-8b74-a7040bb5d12f/reload' -d '{}' -POST /v2/projects/e2c0dd62-7f12-43e5-9296-c38e1145fb14/nodes/52481486-ea78-40ff-ac8b-036031fcaa5b/reload HTTP/1.1 +POST /v2/projects/236b8cd6-bae4-4848-b4fe-eb99e0a41d4e/nodes/32e707d3-89c9-4e4a-8b74-a7040bb5d12f/reload HTTP/1.1 {} -HTTP/1.1 204 -CONTENT-LENGTH: 0 +HTTP/1.1 201 +CONTENT-LENGTH: 648 +CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/reload +{ + "command_line": null, + "compute_id": "example.com", + "console": null, + "console_host": "example.org", + "console_type": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-size: 10;font-familly: Verdana", + "text": "test", + "x": null, + "y": -40 + }, + "name": "test", + "node_directory": null, + "node_id": "32e707d3-89c9-4e4a-8b74-a7040bb5d12f", + "node_type": "vpcs", + "project_id": "236b8cd6-bae4-4848-b4fe-eb99e0a41d4e", + "properties": {}, + "status": "stopped", + "symbol": ":/symbols/computer.svg", + "width": 65, + "x": 0, + "y": 0, + "z": 0 +} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt index e0f8a89d..676042c5 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt @@ -1,12 +1,40 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/ce2e3571-8926-41a2-9f51-62eaf007f9be/nodes/78ed81ef-3683-4410-be15-b5bc13dd9429/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/1b98b3cf-543e-4d65-b616-1d868bc618ff/nodes/12d632a0-815f-46c2-b49a-7a759e6d2e63/start' -d '{}' -POST /v2/projects/ce2e3571-8926-41a2-9f51-62eaf007f9be/nodes/78ed81ef-3683-4410-be15-b5bc13dd9429/start HTTP/1.1 +POST /v2/projects/1b98b3cf-543e-4d65-b616-1d868bc618ff/nodes/12d632a0-815f-46c2-b49a-7a759e6d2e63/start HTTP/1.1 {} -HTTP/1.1 204 -CONTENT-LENGTH: 0 +HTTP/1.1 201 +CONTENT-LENGTH: 648 +CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/start +{ + "command_line": null, + "compute_id": "example.com", + "console": null, + "console_host": "example.org", + "console_type": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-size: 10;font-familly: Verdana", + "text": "test", + "x": null, + "y": -40 + }, + "name": "test", + "node_directory": null, + "node_id": "12d632a0-815f-46c2-b49a-7a759e6d2e63", + "node_type": "vpcs", + "project_id": "1b98b3cf-543e-4d65-b616-1d868bc618ff", + "properties": {}, + "status": "stopped", + "symbol": ":/symbols/computer.svg", + "width": 65, + "x": 0, + "y": 0, + "z": 0 +} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt index 902f71e5..10e44e7c 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt @@ -1,12 +1,40 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/3e0c6b33-c9ea-4135-8e1a-37f9a7dd3dfb/nodes/d903e05a-7e4b-46ce-9d49-484e1f10cd58/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/da888da8-94d8-42e1-b43e-d04ea2215a94/nodes/bfdd209e-e2bf-4b55-a400-6c8f04c0217f/stop' -d '{}' -POST /v2/projects/3e0c6b33-c9ea-4135-8e1a-37f9a7dd3dfb/nodes/d903e05a-7e4b-46ce-9d49-484e1f10cd58/stop HTTP/1.1 +POST /v2/projects/da888da8-94d8-42e1-b43e-d04ea2215a94/nodes/bfdd209e-e2bf-4b55-a400-6c8f04c0217f/stop HTTP/1.1 {} -HTTP/1.1 204 -CONTENT-LENGTH: 0 +HTTP/1.1 201 +CONTENT-LENGTH: 648 +CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/stop +{ + "command_line": null, + "compute_id": "example.com", + "console": null, + "console_host": "example.org", + "console_type": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-size: 10;font-familly: Verdana", + "text": "test", + "x": null, + "y": -40 + }, + "name": "test", + "node_directory": null, + "node_id": "bfdd209e-e2bf-4b55-a400-6c8f04c0217f", + "node_type": "vpcs", + "project_id": "da888da8-94d8-42e1-b43e-d04ea2215a94", + "properties": {}, + "status": "stopped", + "symbol": ":/symbols/computer.svg", + "width": 65, + "x": 0, + "y": 0, + "z": 0 +} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt index b1006ad7..03085c3e 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt @@ -1,12 +1,40 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/6bf667a1-aac0-4668-bc80-c664d0d9dfe9/nodes/622d2b21-0306-4c9d-8466-ac0a5274e6f9/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/f51e5708-278b-43bc-92ec-ef439b5c88c4/nodes/9251ff6b-9c38-449f-8010-60abbd442ec4/suspend' -d '{}' -POST /v2/projects/6bf667a1-aac0-4668-bc80-c664d0d9dfe9/nodes/622d2b21-0306-4c9d-8466-ac0a5274e6f9/suspend HTTP/1.1 +POST /v2/projects/f51e5708-278b-43bc-92ec-ef439b5c88c4/nodes/9251ff6b-9c38-449f-8010-60abbd442ec4/suspend HTTP/1.1 {} -HTTP/1.1 204 -CONTENT-LENGTH: 0 +HTTP/1.1 201 +CONTENT-LENGTH: 648 +CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/suspend +{ + "command_line": null, + "compute_id": "example.com", + "console": null, + "console_host": "example.org", + "console_type": null, + "height": 59, + "label": { + "rotation": 0, + "style": "font-size: 10;font-familly: Verdana", + "text": "test", + "x": null, + "y": -40 + }, + "name": "test", + "node_directory": null, + "node_id": "9251ff6b-9c38-449f-8010-60abbd442ec4", + "node_type": "vpcs", + "project_id": "f51e5708-278b-43bc-92ec-ef439b5c88c4", + "properties": {}, + "status": "stopped", + "symbol": ":/symbols/computer.svg", + "width": 65, + "x": 0, + "y": 0, + "z": 0 +} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesreload.txt b/docs/api/examples/controller_post_projectsprojectidnodesreload.txt index 3b737e3a..1958b907 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesreload.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesreload.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/1ed78eb2-bc11-4a1f-b91a-8778c18dcf28/nodes/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/81959e6d-f388-4889-90e2-8482a6ece7d0/nodes/reload' -d '{}' -POST /v2/projects/1ed78eb2-bc11-4a1f-b91a-8778c18dcf28/nodes/reload HTTP/1.1 +POST /v2/projects/81959e6d-f388-4889-90e2-8482a6ece7d0/nodes/reload HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesstart.txt b/docs/api/examples/controller_post_projectsprojectidnodesstart.txt index 097dd513..e690d65d 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesstart.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesstart.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/2ebf6f80-977c-4f82-ab8d-ec6de00f676e/nodes/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/b10ea154-7fb6-463d-8dfe-34b213ebc669/nodes/start' -d '{}' -POST /v2/projects/2ebf6f80-977c-4f82-ab8d-ec6de00f676e/nodes/start HTTP/1.1 +POST /v2/projects/b10ea154-7fb6-463d-8dfe-34b213ebc669/nodes/start HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesstop.txt b/docs/api/examples/controller_post_projectsprojectidnodesstop.txt index d63e0e72..a15a5ee4 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesstop.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesstop.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/a2ad1b32-c750-448f-83b5-f0b7f8807bd0/nodes/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/07c6f30e-3449-4861-a4ca-89b13ec1d379/nodes/stop' -d '{}' -POST /v2/projects/a2ad1b32-c750-448f-83b5-f0b7f8807bd0/nodes/stop HTTP/1.1 +POST /v2/projects/07c6f30e-3449-4861-a4ca-89b13ec1d379/nodes/stop HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodessuspend.txt b/docs/api/examples/controller_post_projectsprojectidnodessuspend.txt index 6b767541..28382b4d 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodessuspend.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodessuspend.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/465579b6-39ec-4200-8f30-18e3b626a251/nodes/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/dfc836bf-fb62-4689-be01-31d10435651c/nodes/suspend' -d '{}' -POST /v2/projects/465579b6-39ec-4200-8f30-18e3b626a251/nodes/suspend HTTP/1.1 +POST /v2/projects/dfc836bf-fb62-4689-be01-31d10435651c/nodes/suspend HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidopen.txt b/docs/api/examples/controller_post_projectsprojectidopen.txt index 20e3c873..a55683cd 100644 --- a/docs/api/examples/controller_post_projectsprojectidopen.txt +++ b/docs/api/examples/controller_post_projectsprojectidopen.txt @@ -1,20 +1,23 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0/open' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/da7d2398-58ca-49a2-a298-d50e0186948b/open' -d '{}' -POST /v2/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0/open HTTP/1.1 +POST /v2/projects/da7d2398-58ca-49a2-a298-d50e0186948b/open HTTP/1.1 {} HTTP/1.1 201 -CONTENT-LENGTH: 255 +CONTENT-LENGTH: 328 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/open { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7ego61b6/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0", - "project_id": "3d5c3c10-0934-4005-a3b6-4b75c53eb4a0", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1a1i8jm0/projects/da7d2398-58ca-49a2-a298-d50e0186948b", + "project_id": "da7d2398-58ca-49a2-a298-d50e0186948b", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsprojectidsnapshots.txt b/docs/api/examples/controller_post_projectsprojectidsnapshots.txt index ed0d9ed9..5c1897ef 100644 --- a/docs/api/examples/controller_post_projectsprojectidsnapshots.txt +++ b/docs/api/examples/controller_post_projectsprojectidsnapshots.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/90cf6f4c-635d-470a-a4bd-7f098cac153b/snapshots' -d '{"name": "snap1"}' +curl -i -X POST 'http://localhost:3080/v2/projects/3f70d171-a7c7-483c-b0c3-031de0f52d2e/snapshots' -d '{"name": "snap1"}' -POST /v2/projects/90cf6f4c-635d-470a-a4bd-7f098cac153b/snapshots HTTP/1.1 +POST /v2/projects/3f70d171-a7c7-483c-b0c3-031de0f52d2e/snapshots HTTP/1.1 { "name": "snap1" } @@ -14,8 +14,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/snapshots { - "created_at": 1471275495, + "created_at": 1472128867, "name": "snap1", - "project_id": "90cf6f4c-635d-470a-a4bd-7f098cac153b", - "snapshot_id": "5ef71f28-7a2f-4f9d-bc74-809ac51ee7c4" + "project_id": "3f70d171-a7c7-483c-b0c3-031de0f52d2e", + "snapshot_id": "2ffacd88-e742-4fe2-a1a3-5c64a74132e2" } diff --git a/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt b/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt index a35288bf..31eba3d0 100644 --- a/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt +++ b/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt @@ -1,20 +1,23 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a/snapshots/dc1e014a-75e8-4884-b522-c6ad59ea94bf/restore' -d '{}' -POST /v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore HTTP/1.1 +POST /v2/projects/ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a/snapshots/dc1e014a-75e8-4884-b522-c6ad59ea94bf/restore HTTP/1.1 {} HTTP/1.1 201 -CONTENT-LENGTH: 255 +CONTENT-LENGTH: 328 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/snapshots/{snapshot_id}/restore { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo86kamvs/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f", - "project_id": "130d7a29-9b49-4688-8cf2-074a0434eb7f", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9rl3b2qi/projects/ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a", + "project_id": "ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a", "status": "opened" } diff --git a/docs/api/examples/controller_put_gns3vm.txt b/docs/api/examples/controller_put_gns3vm.txt new file mode 100644 index 00000000..cb2c5679 --- /dev/null +++ b/docs/api/examples/controller_put_gns3vm.txt @@ -0,0 +1,22 @@ +curl -i -X PUT 'http://localhost:3080/v2/gns3vm' -d '{"vmname": "TEST VM"}' + +PUT /v2/gns3vm HTTP/1.1 +{ + "vmname": "TEST VM" +} + + +HTTP/1.1 201 +CONTENT-LENGTH: 118 +CONTENT-TYPE: application/json +DATE: Thu, 08 Jan 2015 16:09:15 GMT +SERVER: Python/3.5 GNS3/2.0.0dev1 +X-ROUTE: /v2/gns3vm + +{ + "auto_stop": true, + "enable": false, + "engine": "vmware", + "headless": false, + "vmname": "TEST VM" +} diff --git a/docs/api/examples/controller_put_projectsprojectid.txt b/docs/api/examples/controller_put_projectsprojectid.txt index 199165b5..f84d8dfb 100644 --- a/docs/api/examples/controller_put_projectsprojectid.txt +++ b/docs/api/examples/controller_put_projectsprojectid.txt @@ -7,16 +7,19 @@ PUT /v2/projects/10010203-0405-0607-0809-0a0b0c0d0e0f HTTP/1.1 HTTP/1.1 200 -CONTENT-LENGTH: 256 +CONTENT-LENGTH: 329 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id} { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test2", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphkjv57k4/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9mjl0ygs/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f", "status": "opened" } diff --git a/docs/api/examples/controller_put_projectsprojectiddrawingsdrawingid.txt b/docs/api/examples/controller_put_projectsprojectiddrawingsdrawingid.txt index 8f45faa2..aac4c6a5 100644 --- a/docs/api/examples/controller_put_projectsprojectiddrawingsdrawingid.txt +++ b/docs/api/examples/controller_put_projectsprojectiddrawingsdrawingid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/projects/9f19ae38-fc03-43d0-97a4-99f3780c27a4/drawings/29de97b8-f1c9-4af3-9e39-1eade9566912' -d '{"x": 42}' +curl -i -X PUT 'http://localhost:3080/v2/projects/4bcd1c2a-6140-42e1-8f13-6f8447821a7c/drawings/9209ac20-d18f-43a4-ac57-75c4d287f726' -d '{"x": 42}' -PUT /v2/projects/9f19ae38-fc03-43d0-97a4-99f3780c27a4/drawings/29de97b8-f1c9-4af3-9e39-1eade9566912 HTTP/1.1 +PUT /v2/projects/4bcd1c2a-6140-42e1-8f13-6f8447821a7c/drawings/9209ac20-d18f-43a4-ac57-75c4d287f726 HTTP/1.1 { "x": 42 } @@ -14,8 +14,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1 X-ROUTE: /v2/projects/{project_id}/drawings/{drawing_id} { - "drawing_id": "29de97b8-f1c9-4af3-9e39-1eade9566912", - "project_id": "9f19ae38-fc03-43d0-97a4-99f3780c27a4", + "drawing_id": "9209ac20-d18f-43a4-ac57-75c4d287f726", + "project_id": "4bcd1c2a-6140-42e1-8f13-6f8447821a7c", "rotation": 0, "svg": "", "x": 42, diff --git a/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt b/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt index d869b956..2cce7a91 100644 --- a/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt +++ b/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt @@ -1,6 +1,6 @@ -curl -i -X PUT 'http://localhost:3080/v2/projects/bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b/nodes/886d119e-2966-4f46-8f8a-05bcff37154a' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}' +curl -i -X PUT 'http://localhost:3080/v2/projects/146e5310-7dea-4b4b-b924-bcafd28d0a68/nodes/e1268e65-65ca-4fee-8602-31dfa07f5d94' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}' -PUT /v2/projects/bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b/nodes/886d119e-2966-4f46-8f8a-05bcff37154a HTTP/1.1 +PUT /v2/projects/146e5310-7dea-4b4b-b924-bcafd28d0a68/nodes/e1268e65-65ca-4fee-8602-31dfa07f5d94 HTTP/1.1 { "compute_id": "example.com", "name": "test", @@ -12,7 +12,7 @@ PUT /v2/projects/bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b/nodes/886d119e-2966-4f46-8 HTTP/1.1 200 -CONTENT-LENGTH: 647 +CONTENT-LENGTH: 648 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -24,23 +24,23 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id} "console": 2048, "console_host": "example.org", "console_type": null, - "height": 70, + "height": 59, "label": { "rotation": 0, "style": "font-size: 10;font-familly: Verdana", "text": "test", - "x": -17, - "y": -25 + "x": null, + "y": -40 }, "name": "test", "node_directory": null, - "node_id": "886d119e-2966-4f46-8f8a-05bcff37154a", + "node_id": "e1268e65-65ca-4fee-8602-31dfa07f5d94", "node_type": "vpcs", - "project_id": "bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b", + "project_id": "146e5310-7dea-4b4b-b924-bcafd28d0a68", "properties": {}, "status": "stopped", "symbol": ":/symbols/computer.svg", - "width": 70, + "width": 65, "x": 0, "y": 0, "z": 0 diff --git a/docs/api/notifications/drawing.created.json b/docs/api/notifications/drawing.created.json index 4b443402..96d74496 100644 --- a/docs/api/notifications/drawing.created.json +++ b/docs/api/notifications/drawing.created.json @@ -1,6 +1,6 @@ { - "drawing_id": "9fcf65e4-ffd7-47ad-af23-f161d5bbfa11", - "project_id": "21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4", + "drawing_id": "799b4ac6-9b05-4e77-9b3f-21af71106e8b", + "project_id": "477f33f8-ee23-4c5e-a344-f3ca66ac7e21", "rotation": 0, "svg": "", "x": 10, diff --git a/docs/api/notifications/drawing.deleted.json b/docs/api/notifications/drawing.deleted.json index b9b0569f..ae1df3ae 100644 --- a/docs/api/notifications/drawing.deleted.json +++ b/docs/api/notifications/drawing.deleted.json @@ -1,6 +1,6 @@ { - "drawing_id": "751256c7-86de-4bca-a224-cd46bdc0a289", - "project_id": "8f835819-7610-431f-ac63-f7aac942da0f", + "drawing_id": "0f396900-1e78-4350-ab98-c07cec24239a", + "project_id": "edad99ed-f0b9-4019-b9f9-9351f97710f0", "rotation": 0, "svg": "", "x": 0, diff --git a/docs/api/notifications/drawing.updated.json b/docs/api/notifications/drawing.updated.json index eba69855..d8acb2c8 100644 --- a/docs/api/notifications/drawing.updated.json +++ b/docs/api/notifications/drawing.updated.json @@ -1,6 +1,6 @@ { - "drawing_id": "29de97b8-f1c9-4af3-9e39-1eade9566912", - "project_id": "9f19ae38-fc03-43d0-97a4-99f3780c27a4", + "drawing_id": "9209ac20-d18f-43a4-ac57-75c4d287f726", + "project_id": "4bcd1c2a-6140-42e1-8f13-6f8447821a7c", "rotation": 0, "x": 42, "y": 20, diff --git a/docs/api/notifications/link.created.json b/docs/api/notifications/link.created.json index 4527aa93..5f2bdd5f 100644 --- a/docs/api/notifications/link.created.json +++ b/docs/api/notifications/link.created.json @@ -2,7 +2,7 @@ "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "99a8611f-f802-4a23-9d6f-3f5c1fdc6efa", + "link_id": "6dd714f1-40e7-4550-bdf2-5166f38d07f3", "nodes": [ { "adapter_number": 0, @@ -13,7 +13,7 @@ "x": -10, "y": -10 }, - "node_id": "3d057b55-d638-4d38-9d22-a2f6f56d1799", + "node_id": "b719f78c-f29c-49d8-bb20-c0e3f646b9f3", "port_number": 3 }, { @@ -25,9 +25,9 @@ "x": -10, "y": -10 }, - "node_id": "de315007-d0cf-499e-93b4-cf7ed94a14e6", + "node_id": "dc59e823-fd6f-4adb-9ca3-9f00465224cc", "port_number": 4 } ], - "project_id": "3863fae6-89f2-44b8-8440-130c111f5237" + "project_id": "6aa6ab8c-71f5-41d8-a0db-934e797cdbf6" } \ No newline at end of file diff --git a/docs/api/notifications/link.deleted.json b/docs/api/notifications/link.deleted.json index fd63ec75..4ee42ea1 100644 --- a/docs/api/notifications/link.deleted.json +++ b/docs/api/notifications/link.deleted.json @@ -2,7 +2,7 @@ "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "cbca8122-7162-4ce0-a2ad-82075775bada", + "link_id": "701e9502-119d-4aec-8a66-c13f7c8013d5", "nodes": [], - "project_id": "15ec7567-33b4-4648-876a-b7128c33cb07" + "project_id": "e7967118-9e5f-41d2-922e-e35053b5e5a7" } \ No newline at end of file diff --git a/docs/api/notifications/link.updated.json b/docs/api/notifications/link.updated.json index 9101b495..dc69244a 100644 --- a/docs/api/notifications/link.updated.json +++ b/docs/api/notifications/link.updated.json @@ -2,7 +2,7 @@ "capture_file_name": null, "capture_file_path": null, "capturing": false, - "link_id": "31e0db7c-41ab-4e05-856e-423b1e8a0446", + "link_id": "213e796a-e1c3-468b-a4e3-4cdee53282cf", "nodes": [ { "adapter_number": 0, @@ -11,7 +11,7 @@ "x": 64, "y": 0 }, - "node_id": "d4ff8824-cdd7-42dd-b2ca-e036cf1c0c75", + "node_id": "6523ecf2-8813-4168-87eb-2b3e171bc714", "port_number": 3 }, { @@ -23,9 +23,9 @@ "x": -10, "y": -10 }, - "node_id": "716ea0af-7552-4d48-af8c-6c15db93138f", + "node_id": "e469818c-a722-4924-a3bb-8ded69ec2040", "port_number": 4 } ], - "project_id": "2d2b17e8-6934-419a-93e6-096c08464b82" + "project_id": "64244994-fa59-491d-a00d-0aa5406a0a78" } \ No newline at end of file diff --git a/docs/api/notifications/node.deleted.json b/docs/api/notifications/node.deleted.json index 6cab182c..d5f7667a 100644 --- a/docs/api/notifications/node.deleted.json +++ b/docs/api/notifications/node.deleted.json @@ -4,23 +4,23 @@ "console": null, "console_host": "example.org", "console_type": null, - "height": 70, + "height": 59, "label": { "rotation": 0, "style": "font-size: 10;font-familly: Verdana", "text": "test", - "x": -17, - "y": -25 + "x": null, + "y": -40 }, "name": "test", "node_directory": null, - "node_id": "fa1fc0e2-c4bd-4f0e-ad65-36a71111f381", + "node_id": "97aa684f-b23c-4bfb-81bf-05df5d187b3f", "node_type": "vpcs", - "project_id": "3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1", + "project_id": "6659771c-4fe9-4ffc-8c19-dfd672f26b76", "properties": {}, "status": "stopped", "symbol": ":/symbols/computer.svg", - "width": 70, + "width": 65, "x": 0, "y": 0, "z": 0 diff --git a/docs/api/notifications/node.updated.json b/docs/api/notifications/node.updated.json index ed35e7b2..7e578d7b 100644 --- a/docs/api/notifications/node.updated.json +++ b/docs/api/notifications/node.updated.json @@ -4,25 +4,25 @@ "console": 2048, "console_host": "example.org", "console_type": null, - "height": 70, + "height": 59, "label": { "rotation": 0, "style": "font-size: 10;font-familly: Verdana", "text": "test", - "x": -17, - "y": -25 + "x": null, + "y": -40 }, "name": "test", "node_directory": null, - "node_id": "92be25c6-878a-487a-86e3-80591c20780e", + "node_id": "f3349f17-0b33-44d4-8b0e-4cce743368eb", "node_type": "vpcs", - "project_id": "aa6eca4a-1d69-4fb0-aa10-3bb3f5d24ca0", + "project_id": "66748b95-38cf-4a58-9b8a-58a2373fd013", "properties": { "startup_config": "test.cfg" }, "status": "stopped", "symbol": ":/symbols/computer.svg", - "width": 70, + "width": 65, "x": 0, "y": 0, "z": 0 diff --git a/docs/api/notifications/project.closed.json b/docs/api/notifications/project.closed.json index 95520530..b5db4e58 100644 --- a/docs/api/notifications/project.closed.json +++ b/docs/api/notifications/project.closed.json @@ -1,7 +1,10 @@ { - "filename": "Test.gns3", - "name": "Test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpolyetet3/projects/dfe0d81a-4b32-47ef-92df-aa1c61f9d882", - "project_id": "dfe0d81a-4b32-47ef-92df-aa1c61f9d882", + "auto_close": true, + "auto_open": false, + "auto_start": false, + "filename": "test.gns3", + "name": "test", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb1t1sx5a/projects/29c09f61-d5fd-4f7e-9825-0fe847c1c35c", + "project_id": "29c09f61-d5fd-4f7e-9825-0fe847c1c35c", "status": "closed" } \ No newline at end of file diff --git a/docs/api/notifications/project.updated.json b/docs/api/notifications/project.updated.json index 75f333f9..6ae03c06 100644 --- a/docs/api/notifications/project.updated.json +++ b/docs/api/notifications/project.updated.json @@ -1,7 +1,10 @@ { + "auto_close": true, + "auto_open": false, + "auto_start": false, "filename": "test.gns3", "name": "test2", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphkjv57k4/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9mjl0ygs/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f", "status": "opened" } \ No newline at end of file diff --git a/docs/api/notifications/snapshot.restored.json b/docs/api/notifications/snapshot.restored.json new file mode 100644 index 00000000..5d80a7b3 --- /dev/null +++ b/docs/api/notifications/snapshot.restored.json @@ -0,0 +1,6 @@ +{ + "created_at": 1472128867, + "name": "test", + "project_id": "ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a", + "snapshot_id": "dc1e014a-75e8-4884-b522-c6ad59ea94bf" +} \ No newline at end of file diff --git a/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 87c60be0..8de62335 100644 --- a/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on an ATM switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index dfff681b..bcdfffd4 100644 --- a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to an ATM switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** @@ -27,10 +27,10 @@ Remove a NIO from an ATM switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 4ed374af..924734ba 100644 --- a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on an ATM switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodes.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodes.rst index 5b1eba6f..688fe99e 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodes.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodes.rst @@ -21,20 +21,6 @@ Input ******* Types +++++++++ -EthernetInterfacePort -^^^^^^^^^^^^^^^^^^^^^^ -Ethernet interface port - -.. raw:: html - - - - - - - -
Name Mandatory Type Description
interface string Ethernet interface name e.g. eth0
name string Port name
port_number integer Port number
type enum Possible values: ethernet
- HostInterfaces ^^^^^^^^^^^^^^^^^^^^^^ Interfaces on this host @@ -44,37 +30,7 @@ Interfaces on this host - -
Name Mandatory Type Description
name string Interface name
type enum Possible values: Ethernet, TAP
- -TAPInterfacePort -^^^^^^^^^^^^^^^^^^^^^^ -TAP interface port - -.. raw:: html - - - - - - - -
Name Mandatory Type Description
interface string TAP interface name e.g. tap0
name string Port name
port_number integer Port number
type enum Possible values: tap
- -UDPTunnelPort -^^^^^^^^^^^^^^^^^^^^^^ -UDP tunnel port - -.. raw:: html - - - - - - - - - +
Name Mandatory Type Description
lport integer Local UDP tunnel port
name string Port name
port_number integer Port number
rhost string Remote UDP tunnel host
rport integer Remote UDP tunnel port
type enum Possible values: udp
type enum Possible values: ethernet, tap
Body @@ -103,3 +59,9 @@ Output status enum Possible values: started, stopped, suspended +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_post_projectsprojectidcloudnodes.txt + diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeid.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeid.rst index 40992d7c..e42a19ea 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeid.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeid.rst @@ -32,6 +32,12 @@ Output status enum Possible values: started, stopped, suspended +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_get_projectsprojectidcloudnodesnodeid.txt + PUT /v2/compute/projects/**{project_id}**/cloud/nodes/**{node_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -53,20 +59,6 @@ Input ******* Types +++++++++ -EthernetInterfacePort -^^^^^^^^^^^^^^^^^^^^^^ -Ethernet interface port - -.. raw:: html - - - - - - - -
Name Mandatory Type Description
interface string Ethernet interface name e.g. eth0
name string Port name
port_number integer Port number
type enum Possible values: ethernet
- HostInterfaces ^^^^^^^^^^^^^^^^^^^^^^ Interfaces on this host @@ -79,36 +71,6 @@ Interfaces on this host type ✔ enum Possible values: ethernet, tap -TAPInterfacePort -^^^^^^^^^^^^^^^^^^^^^^ -TAP interface port - -.. raw:: html - - - - - - - -
Name Mandatory Type Description
interface string TAP interface name e.g. tap0
name string Port name
port_number integer Port number
type enum Possible values: tap
- -UDPTunnelPort -^^^^^^^^^^^^^^^^^^^^^^ -UDP tunnel port - -.. raw:: html - - - - - - - - - -
Name Mandatory Type Description
lport integer Local UDP tunnel port
name string Port name
port_number integer Port number
rhost string Remote UDP tunnel host
rport integer Remote UDP tunnel port
type enum Possible values: udp
- Body +++++++++ .. raw:: html @@ -137,6 +99,12 @@ Output status enum Possible values: started, stopped, suspended +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_put_projectsprojectidcloudnodesnodeid.txt + DELETE /v2/compute/projects/**{project_id}**/cloud/nodes/**{node_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -153,3 +121,9 @@ Response status codes - **404**: Instance doesn't exist - **204**: Instance deleted +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_delete_projectsprojectidcloudnodesnodeid.txt + diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 5649d9bb..d8fd8c8e 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a cloud instance Parameters ********** -- **adapter_number**: Adapter on the cloud (always 0) -- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud Response status codes ********************** @@ -20,6 +20,12 @@ Response status codes - **201**: NIO created - **404**: Instance doesn't exist +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_post_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt + DELETE /v2/compute/projects/**{project_id}**/cloud/nodes/**{node_id}**/adapters/**{adapter_number:\d+}**/ports/**{port_number:\d+}**/nio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -27,10 +33,10 @@ Remove a NIO from a cloud instance Parameters ********** -- **adapter_number**: Adapter on the cloud (always 0) -- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud Response status codes ********************** @@ -38,3 +44,9 @@ Response status codes - **404**: Instance doesn't exist - **204**: NIO deleted +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_delete_projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.txt + diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 1aa9be85..6608ed83 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a cloud instance Parameters ********** -- **adapter_number**: Adapter on the cloud (always 0) -- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud Response status codes ********************** diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 5752f8f9..44df309c 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a cloud instance Parameters ********** -- **adapter_number**: Adapter on the cloud (always 0) -- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud Response status codes ********************** diff --git a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst index f6a83c2e..69233710 100644 --- a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a Docker container Parameters ********** -- **adapter_number**: Adapter where the nio should be added -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter Response status codes ********************** @@ -33,10 +33,10 @@ Remove a NIO from a Docker container Parameters ********** -- **adapter_number**: Adapter where the nio should be added -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 4b5a0ddc..825f865e 100644 --- a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a Docker container instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 13b3de14..a2312913 100644 --- a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a Docker container instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index ef29e1dd..55d152ae 100644 --- a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a Dynamips VM instance Parameters ********** -- **adapter_number**: Adapter where the nio should be added -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter Response status codes ********************** @@ -27,10 +27,10 @@ Remove a NIO from a Dynamips VM instance Parameters ********** -- **adapter_number**: Adapter from where the nio should be removed -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter from where the nio should be removed +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index a10a390a..fa6ab732 100644 --- a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a Dynamips VM instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 7cbed296..80183749 100644 --- a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a Dynamips VM instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index d08d0df7..5d256ba7 100644 --- a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to an Ethernet hub instance Parameters ********** -- **adapter_number**: Adapter on the hub (always 0) -- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub Response status codes ********************** @@ -27,10 +27,10 @@ Remove a NIO from an Ethernet hub instance Parameters ********** -- **adapter_number**: Adapter on the hub (always 0) -- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub Response status codes ********************** diff --git a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index b137f971..10a7dbf9 100644 --- a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on an Ethernet hub instance Parameters ********** -- **adapter_number**: Adapter on the hub (always 0) -- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub Response status codes ********************** diff --git a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 542a126f..a4894f62 100644 --- a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on an Ethernet hub instance Parameters ********** -- **adapter_number**: Adapter on the hub (always 0) -- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub Response status codes ********************** diff --git a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 9855a5e7..99e5d2c5 100644 --- a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to an Ethernet switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** @@ -27,10 +27,10 @@ Remove a NIO from an Ethernet switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 5418ac97..e8fb7b08 100644 --- a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on an Ethernet switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 84d6ab1d..81e377e7 100644 --- a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on an Ethernet switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 39480104..eb3ef71c 100644 --- a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a Frame Relay switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** @@ -27,10 +27,10 @@ Remove a NIO from a Frame Relay switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 5032be66..fdd958b3 100644 --- a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a Frame Relay switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index b79a1bb9..c8edd0b4 100644 --- a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a Frame Relay switch instance Parameters ********** -- **adapter_number**: Adapter on the switch (always 0) -- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch Response status codes ********************** diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodes.rst b/docs/api/v2/compute/iou/projectsprojectidiounodes.rst index 103b5930..8c837d6a 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodes.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodes.rst @@ -53,7 +53,6 @@ Output console_type enum Possible values: telnet ethernet_adapters integer How many ethernet adapters are connected to the IOU iourc_content ['string', 'null'] Content of the iourc file. Ignored if Null - iourc_path ['string', 'null'] Path of the iourc file used by remote servers l1_keepalives boolean Always up ethernet interface md5sum ['string', 'null'] Checksum of iou binary name string IOU VM name diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeid.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeid.rst index e939e427..3f94ca76 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeid.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeid.rst @@ -29,7 +29,6 @@ Output console_type enum Possible values: telnet ethernet_adapters integer How many ethernet adapters are connected to the IOU iourc_content ['string', 'null'] Content of the iourc file. Ignored if Null - iourc_path ['string', 'null'] Path of the iourc file used by remote servers l1_keepalives boolean Always up ethernet interface md5sum ['string', 'null'] Checksum of iou binary name string IOU VM name @@ -82,7 +81,6 @@ Input console_type enum Possible values: telnet ethernet_adapters integer How many ethernet adapters are connected to the IOU iourc_content ['string', 'null'] Content of the iourc file. Ignored if Null - iourc_path ['string', 'null'] Path of the iourc file used by remote servers l1_keepalives boolean Always up ethernet interface md5sum ['string', 'null'] Checksum of iou binary name string IOU VM name @@ -112,7 +110,6 @@ Output console_type enum Possible values: telnet ethernet_adapters integer How many ethernet adapters are connected to the IOU iourc_content ['string', 'null'] Content of the iourc file. Ignored if Null - iourc_path ['string', 'null'] Path of the iourc file used by remote servers l1_keepalives boolean Always up ethernet interface md5sum ['string', 'null'] Checksum of iou binary name string IOU VM name diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 2b136374..c2d51193 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a IOU instance Parameters ********** -- **adapter_number**: Network adapter where the nio is located -- **port_number**: Port where the nio should be added - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Network adapter where the nio is located +- **port_number**: Port where the nio should be added Response status codes ********************** @@ -33,10 +33,10 @@ Remove a NIO from a IOU instance Parameters ********** -- **adapter_number**: Network adapter where the nio is located -- **port_number**: Port from where the nio should be removed - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Network adapter where the nio is located +- **port_number**: Port from where the nio should be removed Response status codes ********************** diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 254369fd..a1399c90 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on an IOU VM instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 8eb1ee77..4f09f9d4 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on an IOU VM instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidstart.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidstart.rst index 57defba5..3df8062a 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidstart.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidstart.rst @@ -38,7 +38,6 @@ Output console_type enum Possible values: telnet ethernet_adapters integer How many ethernet adapters are connected to the IOU iourc_content ['string', 'null'] Content of the iourc file. Ignored if Null - iourc_path ['string', 'null'] Path of the iourc file used by remote servers l1_keepalives boolean Always up ethernet interface md5sum ['string', 'null'] Checksum of iou binary name string IOU VM name diff --git a/docs/api/v2/compute/nat.rst b/docs/api/v2/compute/nat.rst new file mode 100644 index 00000000..30657bd8 --- /dev/null +++ b/docs/api/v2/compute/nat.rst @@ -0,0 +1,8 @@ +Nat +----------------------------- + +.. toctree:: + :glob: + :maxdepth: 2 + + nat/* diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodes.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodes.rst new file mode 100644 index 00000000..dc19b8e3 --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodes.rst @@ -0,0 +1,51 @@ +/v2/compute/projects/{project_id}/nat/nodes +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/nat/nodes +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Create a new nat instance + +Parameters +********** +- **project_id**: Project UUID + +Response status codes +********************** +- **400**: Invalid request +- **201**: Instance created +- **409**: Conflict + +Input +******* +.. raw:: html + + + + + + + + +
Name Mandatory Type Description
name string Nat name
node_id string Node UUID
ports array
project_id string Project UUID
status enum Possible values: started, stopped, suspended
+ +Output +******* +.. raw:: html + + + + + + + + +
Name Mandatory Type Description
name string Nat name
node_id string Node UUID
ports array
project_id string Project UUID
status enum Possible values: started, stopped, suspended
+ +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_post_projectsprojectidnatnodes.txt + diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeid.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeid.rst new file mode 100644 index 00000000..0704ceb0 --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeid.rst @@ -0,0 +1,110 @@ +/v2/compute/projects/{project_id}/nat/nodes/{node_id} +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +GET /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}** +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Get a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **200**: Success +- **400**: Invalid request +- **404**: Instance doesn't exist + +Output +******* +.. raw:: html + + + + + + + + +
Name Mandatory Type Description
name string Nat name
node_id string Node UUID
ports array
project_id string Project UUID
status enum Possible values: started, stopped, suspended
+ +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_get_projectsprojectidnatnodesnodeid.txt + + +PUT /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}** +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Update a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **200**: Instance updated +- **400**: Invalid request +- **404**: Instance doesn't exist +- **409**: Conflict + +Input +******* +.. raw:: html + + + + + + + + +
Name Mandatory Type Description
name string Nat name
node_id string Node UUID
ports array
project_id string Project UUID
status enum Possible values: started, stopped, suspended
+ +Output +******* +.. raw:: html + + + + + + + + +
Name Mandatory Type Description
name string Nat name
node_id string Node UUID
ports array
project_id string Project UUID
status enum Possible values: started, stopped, suspended
+ +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_put_projectsprojectidnatnodesnodeid.txt + + +DELETE /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}** +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Delete a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **400**: Invalid request +- **404**: Instance doesn't exist +- **204**: Instance deleted + +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_delete_projectsprojectidnatnodesnodeid.txt + diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.rst new file mode 100644 index 00000000..a218451d --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -0,0 +1,52 @@ +/v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/adapters/**{adapter_number:\d+}**/ports/**{port_number:\d+}**/nio +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Add a NIO to a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID +- **adapter_number**: Adapter on the nat (always 0) +- **port_number**: Port on the nat + +Response status codes +********************** +- **400**: Invalid request +- **201**: NIO created +- **404**: Instance doesn't exist + +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_post_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt + + +DELETE /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/adapters/**{adapter_number:\d+}**/ports/**{port_number:\d+}**/nio +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Remove a NIO from a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID +- **adapter_number**: Adapter on the nat (always 0) +- **port_number**: Port on the nat + +Response status codes +********************** +- **400**: Invalid request +- **404**: Instance doesn't exist +- **204**: NIO deleted + +Sample session +*************** + + +.. literalinclude:: ../../../examples/compute_delete_projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdnio.txt + diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst new file mode 100644 index 00000000..ad7fb800 --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -0,0 +1,32 @@ +/v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/adapters/**{adapter_number:\d+}**/ports/**{port_number:\d+}**/start_capture +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Start a packet capture on a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID +- **adapter_number**: Adapter on the nat (always 0) +- **port_number**: Port on the nat + +Response status codes +********************** +- **200**: Capture started +- **400**: Invalid request +- **404**: Instance doesn't exist + +Input +******* +.. raw:: html + + + + + +
Name Mandatory Type Description
capture_file_name string Capture file name
data_link_type enum Possible values: DLT_ATM_RFC1483, DLT_EN10MB, DLT_FRELAY, DLT_C_HDLC
+ diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst new file mode 100644 index 00000000..009a48b5 --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -0,0 +1,22 @@ +/v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/adapters/**{adapter_number:\d+}**/ports/**{port_number:\d+}**/stop_capture +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Stop a packet capture on a nat instance + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID +- **adapter_number**: Adapter on the nat (always 0) +- **port_number**: Port on the nat + +Response status codes +********************** +- **400**: Invalid request +- **404**: Instance doesn't exist +- **204**: Capture stopped + diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidstart.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidstart.rst new file mode 100644 index 00000000..2da40ba2 --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidstart.rst @@ -0,0 +1,20 @@ +/v2/compute/projects/{project_id}/nat/nodes/{node_id}/start +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/start +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Start a nat + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **400**: Invalid request +- **404**: Instance doesn't exist +- **204**: Instance started + diff --git a/docs/api/v2/controller/gns3_vm/gns3vmstop.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidstop.rst similarity index 61% rename from docs/api/v2/controller/gns3_vm/gns3vmstop.rst rename to docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidstop.rst index fd9cc4bb..ea9d3b10 100644 --- a/docs/api/v2/controller/gns3_vm/gns3vmstop.rst +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidstop.rst @@ -1,14 +1,20 @@ -/v2/gns3vm/stop +/v2/compute/projects/{project_id}/nat/nodes/{node_id}/stop ------------------------------------------------------------------------------------------------------------------------------------------ .. contents:: -POST /v2/gns3vm/stop +POST /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/stop ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Stop the GNS3 VM +Stop a nat + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID Response status codes ********************** - **400**: Invalid request +- **404**: Instance doesn't exist - **204**: Instance stopped diff --git a/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidsuspend.rst b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidsuspend.rst new file mode 100644 index 00000000..600330b5 --- /dev/null +++ b/docs/api/v2/compute/nat/projectsprojectidnatnodesnodeidsuspend.rst @@ -0,0 +1,20 @@ +/v2/compute/projects/{project_id}/nat/nodes/{node_id}/suspend +------------------------------------------------------------------------------------------------------------------------------------------ + +.. contents:: + +POST /v2/compute/projects/**{project_id}**/nat/nodes/**{node_id}**/suspend +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Suspend a nat + +Parameters +********** +- **project_id**: Project UUID +- **node_id**: Node UUID + +Response status codes +********************** +- **400**: Invalid request +- **404**: Instance doesn't exist +- **204**: Instance suspended + diff --git a/docs/api/v2/compute/project/projects.rst b/docs/api/v2/compute/project/projects.rst index a71498f1..2dac781a 100644 --- a/docs/api/v2/compute/project/projects.rst +++ b/docs/api/v2/compute/project/projects.rst @@ -34,6 +34,7 @@ Input + @@ -45,6 +46,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
project_id ['string', 'null'] Project UUID
+ + + diff --git a/docs/api/v2/compute/project/projectsprojectid.rst b/docs/api/v2/compute/project/projectsprojectid.rst index 13d31999..560f7007 100644 --- a/docs/api/v2/compute/project/projectsprojectid.rst +++ b/docs/api/v2/compute/project/projectsprojectid.rst @@ -22,6 +22,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/api/v2/compute/project/projectsprojectidimport.rst b/docs/api/v2/compute/project/projectsprojectidimport.rst index 78607589..313aebbf 100644 --- a/docs/api/v2/compute/project/projectsprojectidimport.rst +++ b/docs/api/v2/compute/project/projectsprojectidimport.rst @@ -22,6 +22,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 6cb940bd..4f35c78f 100644 --- a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a Qemu VM instance Parameters ********** -- **adapter_number**: Network adapter where the nio is located -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Network adapter where the nio is located +- **port_number**: Port on the adapter (always 0) Response status codes ********************** @@ -33,10 +33,10 @@ Remove a NIO from a Qemu VM instance Parameters ********** -- **adapter_number**: Network adapter where the nio is located -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Network adapter where the nio is located +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index a4a668e9..5067b8ed 100644 --- a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a Qemu VM instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 98c07b95..89f8fe7f 100644 --- a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a Qemu VM instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index e1e4d187..f2e41ecf 100644 --- a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a VirtualBox VM instance Parameters ********** -- **adapter_number**: Adapter where the nio should be added -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter (always 0) Response status codes ********************** @@ -33,10 +33,10 @@ Remove a NIO from a VirtualBox VM instance Parameters ********** -- **adapter_number**: Adapter from where the nio should be removed -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter from where the nio should be removed +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 4cd31e4b..7775400b 100644 --- a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a VirtualBox VM instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 59f935e0..2c443071 100644 --- a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a VirtualBox VM instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst index ff777a36..c0eb4dac 100644 --- a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a VMware VM instance Parameters ********** -- **adapter_number**: Adapter where the nio should be added -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter (always 0) Response status codes ********************** @@ -27,10 +27,10 @@ Remove a NIO from a VMware VM instance Parameters ********** -- **adapter_number**: Adapter from where the nio should be removed -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter from where the nio should be removed +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index c5f206e8..d0493c8c 100644 --- a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a VMware VM instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 477ac367..66b185c5 100644 --- a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a VMware VM instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) Response status codes ********************** diff --git a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index b97de8cf..2d0bcf08 100644 --- a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,10 +9,10 @@ Add a NIO to a VPCS instance Parameters ********** -- **adapter_number**: Network adapter where the nio is located -- **port_number**: Port where the nio should be added - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Network adapter where the nio is located +- **port_number**: Port where the nio should be added Response status codes ********************** @@ -33,10 +33,10 @@ Remove a NIO from a VPCS instance Parameters ********** -- **adapter_number**: Network adapter where the nio is located -- **port_number**: Port from where the nio should be removed - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Network adapter where the nio is located +- **port_number**: Port from where the nio should be removed Response status codes ********************** diff --git a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 51a95a1f..75873898 100644 --- a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,10 +9,10 @@ Start a packet capture on a VPCS instance Parameters ********** -- **adapter_number**: Adapter to start a packet capture -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 16eb1007..c76d70a9 100644 --- a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,10 +9,10 @@ Stop a packet capture on a VPCS instance Parameters ********** -- **adapter_number**: Adapter to stop a packet capture -- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID +- **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter Response status codes ********************** diff --git a/docs/api/v2/controller/gns3_vm/gns3vm.rst b/docs/api/v2/controller/gns3_vm/gns3vm.rst index a684b2a1..423ff461 100644 --- a/docs/api/v2/controller/gns3_vm/gns3vm.rst +++ b/docs/api/v2/controller/gns3_vm/gns3vm.rst @@ -11,6 +11,12 @@ Response status codes ********************** - **200**: GNS3 VM settings returned +Sample session +*************** + + +.. literalinclude:: ../../../examples/controller_get_gns3vm.txt + PUT /v2/gns3vm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -18,5 +24,11 @@ Update GNS3 VM settings Response status codes ********************** -- **200**: GNS3 VM updated +- **201**: GNS3 VM updated + +Sample session +*************** + + +.. literalinclude:: ../../../examples/controller_put_gns3vm.txt diff --git a/docs/api/v2/controller/gns3_vm/gns3vmstart.rst b/docs/api/v2/controller/gns3_vm/gns3vmengines.rst similarity index 62% rename from docs/api/v2/controller/gns3_vm/gns3vmstart.rst rename to docs/api/v2/controller/gns3_vm/gns3vmengines.rst index f9635934..1c9f5c29 100644 --- a/docs/api/v2/controller/gns3_vm/gns3vmstart.rst +++ b/docs/api/v2/controller/gns3_vm/gns3vmengines.rst @@ -1,14 +1,19 @@ -/v2/gns3vm/start +/v2/gns3vm/engines ------------------------------------------------------------------------------------------------------------------------------------------ .. contents:: -POST /v2/gns3vm/start +GET /v2/gns3vm/engines ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Start the GNS3 VM +Return the list of engines supported for the GNS3VM Response status codes ********************** -- **200**: Instance started -- **400**: Invalid request +- **200**: OK + +Sample session +*************** + + +.. literalinclude:: ../../../examples/controller_get_gns3vmengines.txt diff --git a/docs/api/v2/controller/gns3_vm/gns3vmenginevms.rst b/docs/api/v2/controller/gns3_vm/gns3vmenginesenginevms.rst similarity index 74% rename from docs/api/v2/controller/gns3_vm/gns3vmenginevms.rst rename to docs/api/v2/controller/gns3_vm/gns3vmenginesenginevms.rst index dda48c49..4b5cc690 100644 --- a/docs/api/v2/controller/gns3_vm/gns3vmenginevms.rst +++ b/docs/api/v2/controller/gns3_vm/gns3vmenginesenginevms.rst @@ -1,9 +1,9 @@ -/v2/gns3vm/{engine}/vms +/v2/gns3vm/engines/{engine}/vms ------------------------------------------------------------------------------------------------------------------------------------------ .. contents:: -GET /v2/gns3vm/**{engine}**/vms +GET /v2/gns3vm/engines/**{engine}**/vms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Get all the available VMs for a specific virtualization engine @@ -16,3 +16,9 @@ Response status codes - **200**: Success - **400**: Invalid request +Sample session +*************** + + +.. literalinclude:: ../../../examples/controller_get_gns3vmenginesenginevms.txt + diff --git a/docs/api/v2/controller/link/projectsprojectidlinkslinkid.rst b/docs/api/v2/controller/link/projectsprojectidlinkslinkid.rst index db905435..0d62948b 100644 --- a/docs/api/v2/controller/link/projectsprojectidlinkslinkid.rst +++ b/docs/api/v2/controller/link/projectsprojectidlinkslinkid.rst @@ -9,8 +9,8 @@ Update a link instance Parameters ********** -- **link_id**: Link UUID - **project_id**: Project UUID +- **link_id**: Link UUID Response status codes ********************** @@ -52,8 +52,8 @@ Delete a link instance Parameters ********** -- **link_id**: Link UUID - **project_id**: Project UUID +- **link_id**: Link UUID Response status codes ********************** diff --git a/docs/api/v2/controller/link/projectsprojectidlinkslinkidpcap.rst b/docs/api/v2/controller/link/projectsprojectidlinkslinkidpcap.rst index 45885529..b40eba31 100644 --- a/docs/api/v2/controller/link/projectsprojectidlinkslinkidpcap.rst +++ b/docs/api/v2/controller/link/projectsprojectidlinkslinkidpcap.rst @@ -9,8 +9,8 @@ Steam the pcap capture file Parameters ********** -- **link_id**: Link UUID - **project_id**: Project UUID +- **link_id**: Link UUID Response status codes ********************** diff --git a/docs/api/v2/controller/link/projectsprojectidlinkslinkidstartcapture.rst b/docs/api/v2/controller/link/projectsprojectidlinkslinkidstartcapture.rst index 0bcdbfc5..9e57489f 100644 --- a/docs/api/v2/controller/link/projectsprojectidlinkslinkidstartcapture.rst +++ b/docs/api/v2/controller/link/projectsprojectidlinkslinkidstartcapture.rst @@ -9,8 +9,8 @@ Start capture on a link instance. By default we consider it as an Ethernet link Parameters ********** -- **link_id**: Link UUID - **project_id**: Project UUID +- **link_id**: Link UUID Response status codes ********************** diff --git a/docs/api/v2/controller/link/projectsprojectidlinkslinkidstopcapture.rst b/docs/api/v2/controller/link/projectsprojectidlinkslinkidstopcapture.rst index 53c97524..da2bcb29 100644 --- a/docs/api/v2/controller/link/projectsprojectidlinkslinkidstopcapture.rst +++ b/docs/api/v2/controller/link/projectsprojectidlinkslinkidstopcapture.rst @@ -9,8 +9,8 @@ Stop capture on a link instance Parameters ********** -- **link_id**: Link UUID - **project_id**: Project UUID +- **link_id**: Link UUID Response status codes ********************** diff --git a/docs/api/v2/controller/node/projectsprojectidnodes.rst b/docs/api/v2/controller/node/projectsprojectidnodes.rst index a05f8dc9..31d1862c 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodes.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodes.rst @@ -27,17 +27,17 @@ Input - + - + - + @@ -54,17 +54,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesnodeid.rst b/docs/api/v2/controller/node/projectsprojectidnodesnodeid.rst index 6bbb3d13..9c8c4a09 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesnodeid.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesnodeid.rst @@ -24,17 +24,17 @@ Input - + - + - + @@ -51,17 +51,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesnodeidreload.rst b/docs/api/v2/controller/node/projectsprojectidnodesnodeidreload.rst index f6042bb2..c2e6de98 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesnodeidreload.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesnodeidreload.rst @@ -29,17 +29,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesnodeidstart.rst b/docs/api/v2/controller/node/projectsprojectidnodesnodeidstart.rst index a43ed2cd..d0147ce0 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesnodeidstart.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesnodeidstart.rst @@ -29,17 +29,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesnodeidstop.rst b/docs/api/v2/controller/node/projectsprojectidnodesnodeidstop.rst index 11b00841..759048a1 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesnodeidstop.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesnodeidstop.rst @@ -29,17 +29,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesnodeidsuspend.rst b/docs/api/v2/controller/node/projectsprojectidnodesnodeidsuspend.rst index 7d9e0b6e..be01b8ea 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesnodeidsuspend.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesnodeidsuspend.rst @@ -29,17 +29,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesreload.rst b/docs/api/v2/controller/node/projectsprojectidnodesreload.rst index 4c8d01b9..13109e7a 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesreload.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesreload.rst @@ -28,17 +28,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesstart.rst b/docs/api/v2/controller/node/projectsprojectidnodesstart.rst index 06f6910b..70a0670a 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesstart.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesstart.rst @@ -28,17 +28,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodesstop.rst b/docs/api/v2/controller/node/projectsprojectidnodesstop.rst index 017f6075..393b313f 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodesstop.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodesstop.rst @@ -28,17 +28,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/node/projectsprojectidnodessuspend.rst b/docs/api/v2/controller/node/projectsprojectidnodessuspend.rst index 25828eb4..ccb44300 100644 --- a/docs/api/v2/controller/node/projectsprojectidnodessuspend.rst +++ b/docs/api/v2/controller/node/projectsprojectidnodessuspend.rst @@ -28,17 +28,17 @@ Output - + - + - + diff --git a/docs/api/v2/controller/project/projects.rst b/docs/api/v2/controller/project/projects.rst index bd9e2aa7..38dbcaf1 100644 --- a/docs/api/v2/controller/project/projects.rst +++ b/docs/api/v2/controller/project/projects.rst @@ -18,6 +18,7 @@ Input
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
console ['integer', 'null'] Console TCP port
console_host string Console host
console_type enum Possible values: serial, vnc, telnet, null
height integer Height of the node
height integer Height of the node (Read only)
label object
name string Node name
node_directory ['null', 'string'] Working directory of the node. Read only
node_id string Node UUID
node_type enum Possible values: cloud, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
node_type enum Possible values: cloud, nat, ethernet_hub, ethernet_switch, frame_relay_switch, atm_switch, docker, dynamips, vpcs, virtualbox, vmware, iou, qemu
project_id string Project UUID
properties object Properties specific to an emulator
status enum Possible values: stopped, started, suspended
symbol string Symbol of the node
width integer Width of the node
width integer Width of the node (Read only)
x integer X position of the node
y integer Y position of the node
z integer Z position of the node
+ @@ -29,6 +30,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
project_id ['string', 'null'] Project UUID
+ + + diff --git a/docs/api/v2/controller/project/projectsload.rst b/docs/api/v2/controller/project/projectsload.rst index 3bdba361..f27ca234 100644 --- a/docs/api/v2/controller/project/projectsload.rst +++ b/docs/api/v2/controller/project/projectsload.rst @@ -31,6 +31,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/api/v2/controller/project/projectsprojectid.rst b/docs/api/v2/controller/project/projectsprojectid.rst index f80978d4..616f4b2f 100644 --- a/docs/api/v2/controller/project/projectsprojectid.rst +++ b/docs/api/v2/controller/project/projectsprojectid.rst @@ -39,6 +39,9 @@ Input
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + +
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
name ['string', 'null'] Project name
path ['string', 'null'] Path of the project on the server (work only with --local)
@@ -49,6 +52,9 @@ Output + + + diff --git a/docs/api/v2/controller/project/projectsprojectidclose.rst b/docs/api/v2/controller/project/projectsprojectidclose.rst index 917b628e..27fe562b 100644 --- a/docs/api/v2/controller/project/projectsprojectidclose.rst +++ b/docs/api/v2/controller/project/projectsprojectidclose.rst @@ -22,6 +22,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/api/v2/controller/project/projectsprojectidduplicate.rst b/docs/api/v2/controller/project/projectsprojectidduplicate.rst index 9834924d..a4e67f89 100644 --- a/docs/api/v2/controller/project/projectsprojectidduplicate.rst +++ b/docs/api/v2/controller/project/projectsprojectidduplicate.rst @@ -23,6 +23,7 @@ Input
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ @@ -34,6 +35,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
project_id ['string', 'null'] Project UUID
+ + + diff --git a/docs/api/v2/controller/project/projectsprojectidimport.rst b/docs/api/v2/controller/project/projectsprojectidimport.rst index edc55af0..8e5d1713 100644 --- a/docs/api/v2/controller/project/projectsprojectidimport.rst +++ b/docs/api/v2/controller/project/projectsprojectidimport.rst @@ -22,6 +22,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/api/v2/controller/project/projectsprojectidopen.rst b/docs/api/v2/controller/project/projectsprojectidopen.rst index 17704157..718f24a1 100644 --- a/docs/api/v2/controller/project/projectsprojectidopen.rst +++ b/docs/api/v2/controller/project/projectsprojectidopen.rst @@ -22,6 +22,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst b/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst index de14bcc1..45c08227 100644 --- a/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst +++ b/docs/api/v2/controller/snapshot/projectsprojectidsnapshotssnapshotidrestore.rst @@ -23,6 +23,9 @@ Output
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
+ + + diff --git a/docs/gns3_file.json b/docs/gns3_file.json index e3e511ae..a2336945 100644 --- a/docs/gns3_file.json +++ b/docs/gns3_file.json @@ -1,7 +1,8 @@ { + "description": "The topology", + "type": "object", "additionalProperties": false, "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", "required": [ "project_id", "type", @@ -11,7 +12,24 @@ "topology" ], "properties": { + "revision": { + "description": "Version of the .gns3 specification.", + "type": "integer" + }, + "project_id": { + "description": "Project UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "auto_close": { + "description": "Close the topology when no client is connected", + "type": "boolean" + }, "topology": { + "description": "The topology content", + "type": "object", "required": [ "nodes", "links", @@ -20,10 +38,13 @@ ], "properties": { "computes": { + "description": "Computes servers", + "type": "array", "items": { + "description": "Request validation to a GNS3 compute object instance", "additionalProperties": false, - "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", + "$schema": "http://json-schema.org/draft-04/schema#", "required": [ "compute_id", "protocol", @@ -32,37 +53,18 @@ "name" ], "properties": { - "protocol": { - "enum": [ - "http", - "https" - ], - "description": "Server protocol" - }, - "port": { - "description": "Server port", - "type": "integer" - }, - "compute_id": { - "description": "Server identifier", + "host": { + "description": "Server host", "type": "string" }, "memory_usage_percent": { - "minimum": 0, - "maximum": 100, "description": "RAM usage of the compute. Read only", "type": [ "number", "null" - ] - }, - "connected": { - "description": "Whether the controller is connected to the compute server or not", - "type": "boolean" - }, - "name": { - "description": "Server name", - "type": "string" + ], + "minimum": 0, + "maximum": 100 }, "version": { "description": "Version of the GNS3 remote compute server", @@ -71,6 +73,14 @@ "null" ] }, + "name": { + "description": "Server name", + "type": "string" + }, + "port": { + "description": "Server port", + "type": "integer" + }, "user": { "description": "User for authentication", "type": [ @@ -78,189 +88,143 @@ "null" ] }, + "compute_id": { + "description": "Server identifier", + "type": "string" + }, + "connected": { + "description": "Whether the controller is connected to the compute server or not", + "type": "boolean" + }, "cpu_usage_percent": { - "minimum": 0, - "maximum": 100, "description": "CPU usage of the compute. Read only", "type": [ "number", "null" - ] - }, - "host": { - "description": "Server host", - "type": "string" - } - }, - "description": "Request validation to a GNS3 compute object instance" - }, - "description": "Computes servers", - "type": "array" - }, - "links": { - "items": { - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "required": [ - "nodes" - ], - "properties": { - "capture_file_name": { - "description": "Read only property. The name of the capture file if capture is running", - "type": [ - "string", - "null" - ] - }, - "capturing": { - "description": "Read only property. True if a capture running on the link", - "type": "boolean" - }, - "nodes": { - "items": { - "required": [ - "node_id", - "adapter_number", - "port_number" - ], - "properties": { - "adapter_number": { - "description": "Adapter number", - "type": "integer" - }, - "node_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Node UUID", - "type": "string" - }, - "label": { - "required": [ - "text", - "x", - "y" - ], - "properties": { - "text": { - "type": "string" - }, - "x": { - "description": "Relative X position of the label", - "type": "integer" - }, - "y": { - "description": "Relative Y position of the label", - "type": "integer" - }, - "rotation": { - "description": "Rotation of the label", - "type": "integer" - }, - "style": { - "description": "SVG style attribute", - "type": "string" - } - }, - "additionalProperties": false, - "type": "object" - }, - "port_number": { - "description": "Port number", - "type": "integer" - } - }, - "additionalProperties": false, - "type": "object" - }, - "description": "List of the VMS", - "type": "array" - }, - "capture_file_path": { - "description": "Read only property. The full path of the capture file if capture is running", - "type": [ - "string", - "null" - ] - }, - "link_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Link UUID", - "type": "string" - }, - "project_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Project UUID", - "type": "string" - } - }, - "description": "A link object" - }, - "description": "Link elements", - "type": "array" - }, - "drawings": { - "items": { - "additionalProperties": false, - "properties": { - "svg": { - "description": "SVG content of the drawing", - "type": "string" - }, - "project_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Project UUID", - "type": "string" - }, - "rotation": { + ], "minimum": 0, - "maximum": 360, - "description": "Rotation of the element", + "maximum": 100 + }, + "protocol": { + "description": "Server protocol", + "enum": [ + "http", + "https" + ] + } + } + } + }, + "nodes": { + "description": "Nodes elements", + "type": "array", + "items": { + "description": "A node object", + "additionalProperties": false, + "type": "object", + "$schema": "http://json-schema.org/draft-04/schema#", + "properties": { + "project_id": { + "description": "Project UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "node_id": { + "description": "Node UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "node_directory": { + "description": "Working directory of the node. Read only", + "type": [ + "null", + "string" + ] + }, + "name": { + "description": "Node name", + "type": "string", + "minLength": 1 + }, + "console": { + "description": "Console TCP port", + "minimum": 1, + "type": [ + "integer", + "null" + ], + "maximum": 65535 + }, + "status": { + "description": "Status of the node", + "enum": [ + "stopped", + "started", + "suspended" + ] + }, + "y": { + "description": "Y position of the node", + "type": "integer" + }, + "compute_id": { + "description": "Compute identifier", + "type": "string" + }, + "label": { + "type": "object", + "required": [ + "text", + "x", + "y" + ], + "properties": { + "x": { + "description": "Relative X position of the label. If null center it", + "type": [ + "integer", + "null" + ] + }, + "y": { + "description": "Relative Y position of the label", + "type": "integer" + }, + "style": { + "description": "SVG style attribute", + "type": "string" + }, + "text": { + "type": "string" + }, + "rotation": { + "description": "Rotation of the label", + "type": "integer" + } + }, + "additionalProperties": false + }, + "height": { + "description": "Height of the node (Read only)", + "type": "integer" + }, + "width": { + "description": "Width of the node (Read only)", "type": "integer" }, "x": { - "description": "X property", + "description": "X position of the node", "type": "integer" }, - "y": { - "description": "Y property", - "type": "integer" - }, - "z": { - "description": "Z property", - "type": "integer" - }, - "drawing_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Drawing UUID", - "type": "string" - } - }, - "description": "An drawing object", - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object" - }, - "description": "Drawings elements", - "type": "array" - }, - "nodes": { - "items": { - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-04/schema#", - "type": "object", - "properties": { "node_type": { + "description": "Type of node", "enum": [ "cloud", + "nat", "ethernet_hub", "ethernet_switch", "frame_relay_switch", @@ -272,95 +236,8 @@ "vmware", "iou", "qemu" - ], - "description": "Type of node" - }, - "symbol": { - "minLength": 1, - "description": "Symbol of the node", - "type": "string" - }, - "x": { - "description": "X position of the node", - "type": "integer" - }, - "console": { - "minimum": 1, - "maximum": 65535, - "description": "Console TCP port", - "type": [ - "integer", - "null" ] }, - "console_type": { - "enum": [ - "serial", - "vnc", - "telnet", - null - ], - "description": "Console type" - }, - "name": { - "minLength": 1, - "description": "Node name", - "type": "string" - }, - "status": { - "enum": [ - "stopped", - "started", - "suspended" - ], - "description": "Status of the node" - }, - "project_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Project UUID", - "type": "string" - }, - "node_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Node UUID", - "type": "string" - }, - "console_host": { - "minLength": 1, - "description": "Console host", - "type": "string" - }, - "height": { - "description": "Height of the node", - "type": "integer" - }, - "compute_id": { - "description": "Compute identifier", - "type": "string" - }, - "width": { - "description": "Width of the node", - "type": "integer" - }, - "node_directory": { - "description": "Working directory of the node. Read only", - "type": [ - "null", - "string" - ] - }, - "z": { - "description": "Z position of the node", - "type": "integer" - }, - "y": { - "description": "Y position of the node", - "type": "integer" - }, "command_line": { "description": "Command line use to start the node", "type": [ @@ -368,80 +245,218 @@ "string" ] }, + "console_type": { + "description": "Console type", + "enum": [ + "serial", + "vnc", + "telnet", + null + ] + }, + "symbol": { + "description": "Symbol of the node", + "type": "string", + "minLength": 1 + }, "properties": { "description": "Properties specific to an emulator", "type": "object" }, - "label": { - "required": [ - "text", - "x", - "y" - ], - "properties": { - "text": { - "type": "string" - }, - "x": { - "description": "Relative X position of the label", - "type": "integer" - }, - "y": { - "description": "Relative Y position of the label", - "type": "integer" - }, - "rotation": { - "description": "Rotation of the label", - "type": "integer" - }, - "style": { - "description": "SVG style attribute", - "type": "string" - } - }, - "additionalProperties": false, - "type": "object" + "z": { + "description": "Z position of the node", + "type": "integer" + }, + "console_host": { + "description": "Console host", + "type": "string", + "minLength": 1 + } + } + } + }, + "drawings": { + "description": "Drawings elements", + "type": "array", + "items": { + "$schema": "http://json-schema.org/draft-04/schema#", + "description": "An drawing object", + "additionalProperties": false, + "properties": { + "project_id": { + "description": "Project UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "x": { + "description": "X property", + "type": "integer" + }, + "rotation": { + "description": "Rotation of the element", + "type": "integer", + "minimum": 0, + "maximum": 360 + }, + "drawing_id": { + "description": "Drawing UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "y": { + "description": "Y property", + "type": "integer" + }, + "svg": { + "description": "SVG content of the drawing", + "type": "string" + }, + "z": { + "description": "Z property", + "type": "integer" } }, - "description": "A node object" - }, - "description": "Nodes elements", - "type": "array" + "type": "object" + } + }, + "links": { + "description": "Link elements", + "type": "array", + "items": { + "description": "A link object", + "type": "object", + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-04/schema#", + "required": [ + "nodes" + ], + "properties": { + "project_id": { + "description": "Project UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "link_id": { + "description": "Link UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "capture_file_path": { + "description": "Read only property. The full path of the capture file if capture is running", + "type": [ + "string", + "null" + ] + }, + "capturing": { + "description": "Read only property. True if a capture running on the link", + "type": "boolean" + }, + "capture_file_name": { + "description": "Read only property. The name of the capture file if capture is running", + "type": [ + "string", + "null" + ] + }, + "nodes": { + "description": "List of the VMS", + "type": "array", + "items": { + "type": "object", + "required": [ + "node_id", + "adapter_number", + "port_number" + ], + "properties": { + "node_id": { + "description": "Node UUID", + "type": "string", + "maxLength": 36, + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "minLength": 36 + }, + "label": { + "type": "object", + "required": [ + "text", + "x", + "y" + ], + "properties": { + "x": { + "description": "Relative X position of the label. If null center it", + "type": [ + "integer", + "null" + ] + }, + "y": { + "description": "Relative Y position of the label", + "type": "integer" + }, + "style": { + "description": "SVG style attribute", + "type": "string" + }, + "text": { + "type": "string" + }, + "rotation": { + "description": "Rotation of the label", + "type": "integer" + } + }, + "additionalProperties": false + }, + "adapter_number": { + "description": "Adapter number", + "type": "integer" + }, + "port_number": { + "description": "Port number", + "type": "integer" + } + }, + "additionalProperties": false + } + } + } + } } }, - "additionalProperties": false, - "description": "The topology content", - "type": "object" - }, - "version": { - "description": "Version of the GNS3 software which have update the file for the last time", - "type": "string" + "additionalProperties": false }, "auto_start": { "description": "Start the topology when opened", "type": "boolean" }, - "type": { - "enum": [ - "topology" - ], - "description": "Type of file. It's always topology" - }, - "revision": { - "description": "Version of the .gns3 specification.", - "type": "integer" - }, "name": { "description": "Name of the project", "type": "string" }, - "project_id": { - "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", - "maxLength": 36, - "minLength": 36, - "description": "Project UUID", + "auto_open": { + "description": "Open the topology with GNS3", + "type": "boolean" + }, + "type": { + "description": "Type of file. It's always topology", + "enum": [ + "topology" + ] + }, + "version": { + "description": "Version of the GNS3 software which have update the file for the last time", "type": "string" } - }, - "description": "The topology" + } } \ No newline at end of file
Name Mandatory Type Description
auto_close boolean Project auto close when client cut off the notifications feed
auto_open boolean Project open when GNS3 start
auto_start boolean Project start when opened
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory