From e710eff22e6b6572dfb6ef73cd3cd2906578c553 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Mon, 15 Aug 2016 17:39:08 +0200 Subject: [PATCH] Update documentation --- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...delete_projectsprojectidiounodesnodeid.txt | 4 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...elete_projectsprojectidqemunodesnodeid.txt | 4 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...elete_projectsprojectidvpcsnodesnodeid.txt | 4 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...te_get_projectsprojectidiounodesnodeid.txt | 10 +- ...e_get_projectsprojectidqemunodesnodeid.txt | 12 +- ...projectsprojectidvirtualboxnodesnodeid.txt | 6 +- ...e_get_projectsprojectidvpcsnodesnodeid.txt | 8 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...ternumberdportsportnumberdstartcapture.txt | 8 +- ...pternumberdportsportnumberdstopcapture.txt | 4 +- ...compute_post_projectsprojectidiounodes.txt | 10 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...ternumberdportsportnumberdstartcapture.txt | 8 +- ...pternumberdportsportnumberdstopcapture.txt | 4 +- ..._projectsprojectidiounodesnodeidreload.txt | 4 +- ...t_projectsprojectidiounodesnodeidstart.txt | 12 +- ...st_projectsprojectidiounodesnodeidstop.txt | 4 +- ...ompute_post_projectsprojectidqemunodes.txt | 12 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...projectsprojectidqemunodesnodeidreload.txt | 4 +- ...projectsprojectidqemunodesnodeidresume.txt | 4 +- ..._projectsprojectidqemunodesnodeidstart.txt | 12 +- ...t_projectsprojectidqemunodesnodeidstop.txt | 4 +- ...rojectsprojectidqemunodesnodeidsuspend.txt | 4 +- ..._post_projectsprojectidvirtualboxnodes.txt | 2 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...tsprojectidvirtualboxnodesnodeidreload.txt | 4 +- ...tsprojectidvirtualboxnodesnodeidresume.txt | 4 +- ...ctsprojectidvirtualboxnodesnodeidstart.txt | 4 +- ...ectsprojectidvirtualboxnodesnodeidstop.txt | 4 +- ...sprojectidvirtualboxnodesnodeidsuspend.txt | 4 +- ...ompute_post_projectsprojectidvpcsnodes.txt | 4 +- ...ptersadapternumberdportsportnumberdnio.txt | 4 +- ...projectsprojectidvpcsnodesnodeidreload.txt | 4 +- ..._projectsprojectidvpcsnodesnodeidstart.txt | 8 +- ...t_projectsprojectidvpcsnodesnodeidstop.txt | 4 +- .../compute_put_projectsprojectid.txt | 20 - ...put_projectsprojectiddockernodesnodeid.txt | 10 +- ...te_put_projectsprojectidiounodesnodeid.txt | 12 +- ...e_put_projectsprojectidqemunodesnodeid.txt | 12 +- ...projectsprojectidvirtualboxnodesnodeid.txt | 6 +- ...e_put_projectsprojectidvpcsnodesnodeid.txt | 8 +- .../controller_delete_projectsprojectid.txt | 4 +- ...ete_projectsprojectiddrawingsdrawingid.txt | 4 +- ...er_delete_projectsprojectidlinkslinkid.txt | 4 +- ...er_delete_projectsprojectidnodesnodeid.txt | 4 +- ...e_projectsprojectidsnapshotssnapshotid.txt | 4 +- docs/api/examples/controller_get_projects.txt | 4 +- .../controller_get_projectsprojectid.txt | 8 +- ...ntroller_get_projectsprojectiddrawings.txt | 8 +- .../controller_get_projectsprojectidlinks.txt | 12 +- .../controller_get_projectsprojectidnodes.txt | 8 +- ...projectidnodesnodeiddynamipsautoidlepc.txt | 4 +- ...ctidnodesnodeiddynamipsidlepcproposals.txt | 4 +- ...troller_get_projectsprojectidsnapshots.txt | 10 +- .../api/examples/controller_post_projects.txt | 2 +- .../examples/controller_post_projectsload.txt | 4 +- ...controller_post_projectsprojectidclose.txt | 8 +- ...troller_post_projectsprojectiddrawings.txt | 8 +- ...roller_post_projectsprojectidduplicate.txt | 8 +- ...controller_post_projectsprojectidlinks.txt | 16 +- ...ojectsprojectidlinkslinkidstartcapture.txt | 8 +- ...rojectsprojectidlinkslinkidstopcapture.txt | 8 +- ...controller_post_projectsprojectidnodes.txt | 8 +- ...ost_projectsprojectidnodesnodeidreload.txt | 4 +- ...post_projectsprojectidnodesnodeidstart.txt | 4 +- ..._post_projectsprojectidnodesnodeidstop.txt | 4 +- ...st_projectsprojectidnodesnodeidsuspend.txt | 4 +- ...ller_post_projectsprojectidnodesreload.txt | 4 +- ...oller_post_projectsprojectidnodesstart.txt | 4 +- ...roller_post_projectsprojectidnodesstop.txt | 4 +- ...ler_post_projectsprojectidnodessuspend.txt | 4 +- .../controller_post_projectsprojectidopen.txt | 8 +- ...roller_post_projectsprojectidsnapshots.txt | 10 +- ...ctsprojectidsnapshotssnapshotidrestore.txt | 8 +- .../controller_put_projectsprojectid.txt | 22 + ...put_projectsprojectiddrawingsdrawingid.txt | 8 +- ...oller_put_projectsprojectidnodesnodeid.txt | 8 +- docs/api/notifications/drawing.created.json | 4 +- docs/api/notifications/drawing.deleted.json | 4 +- docs/api/notifications/drawing.updated.json | 4 +- docs/api/notifications/link.created.json | 8 +- docs/api/notifications/link.deleted.json | 4 +- docs/api/notifications/link.updated.json | 8 +- docs/api/notifications/node.deleted.json | 4 +- docs/api/notifications/node.updated.json | 4 +- docs/api/notifications/project.closed.json | 8 +- docs/api/notifications/project.updated.json | 7 + ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- .../v2/compute/project/projectsprojectid.rst | 44 -- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- ...ptersadapternumberdportsportnumberdnio.rst | 4 +- ...ternumberdportsportnumberdstartcapture.rst | 2 +- ...pternumberdportsportnumberdstopcapture.rst | 2 +- .../projectsprojectiddrawingsdrawingid.rst | 4 +- .../controller/project/projectsprojectid.rst | 40 + docs/gns3_file.json | 726 +++++++++--------- tests/handlers/api/compute/test_project.py | 28 - 134 files changed, 753 insertions(+), 776 deletions(-) delete mode 100644 docs/api/examples/compute_put_projectsprojectid.txt create mode 100644 docs/api/examples/controller_put_projectsprojectid.txt create mode 100644 docs/api/notifications/project.updated.json diff --git a/docs/api/examples/compute_delete_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 439958f5..e4648d92 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/afe02424-fadb-4d0e-917d-b2841fcb4be0/adapters/0/ports/0/nio' +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' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/afe02424-fadb-4d0e-917d-b2841fcb4be0/adapters/0/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3dc0854f-0bbe-463c-ad04-6f5c99786540/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 29428858..187e484b 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/10473f90-0011-4736-91c6-07959b39e8d7' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/51d71d03-f1e8-4863-bcb7-cc13edbab6ef' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/10473f90-0011-4736-91c6-07959b39e8d7 HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/51d71d03-f1e8-4863-bcb7-cc13edbab6ef HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.txt index 7c92ce2c..e192d9c1 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/7d32a3f1-1a55-43af-8df8-52089d25913b/adapters/1/ports/0/nio' +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' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7d32a3f1-1a55-43af-8df8-52089d25913b/adapters/1/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8ec9575e-f928-4e6f-becd-795df7a0a20e/adapters/1/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeid.txt b/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeid.txt index ec368834..4a128922 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/0b3fe4b7-a5b4-41ec-b954-f1d5f3aa8ad1' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bce7d29c-4ccb-42ad-a3b5-6534cdf09273' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0b3fe4b7-a5b4-41ec-b954-f1d5f3aa8ad1 HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bce7d29c-4ccb-42ad-a3b5-6534cdf09273 HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.txt index e473f188..8a0b437b 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/16acffe6-bd3c-4e4c-a6dc-474c6fe75eab/adapters/1/ports/0/nio' +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' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/16acffe6-bd3c-4e4c-a6dc-474c6fe75eab/adapters/1/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a44ef10-61fb-4f0a-98d2-516a58b14e86/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 9e5db73c..13513488 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/90895d0c-eb7b-423a-b0d9-9ec220295cde/adapters/0/ports/0/nio' +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' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/90895d0c-eb7b-423a-b0d9-9ec220295cde/adapters/0/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/fb25ddff-28fc-47d5-9151-c0f919dbcf7e/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 d252d7df..66923efb 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/ffc5b9ae-4a21-4050-b1c3-ad7e39b3824c' +curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b2e2b69a-4934-4e7e-8bcd-e0f459725763' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/ffc5b9ae-4a21-4050-b1c3-ad7e39b3824c HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b2e2b69a-4934-4e7e-8bcd-e0f459725763 HTTP/1.1 diff --git a/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_delete_projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.txt index f5daa188..e3fe1f2c 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/4d11a031-e27e-490a-ab7c-d894a6133538/adapters/0/ports/0/nio' +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' -DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4d11a031-e27e-490a-ab7c-d894a6133538/adapters/0/ports/0/nio HTTP/1.1 +DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5e88621b-9b70-4121-91a2-4f788ca8b3b3/adapters/0/ports/0/nio HTTP/1.1 diff --git a/docs/api/examples/compute_get_projectsprojectidiounodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidiounodesnodeid.txt index afb2ab5b..ca798d39 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/1cc0e78f-8e5f-4183-a6ec-765dd979c28b' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/42132b18-719b-408c-a78a-a349c5966396' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/1cc0e78f-8e5f-4183-a6ec-765dd979c28b HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/42132b18-719b-408c-a78a-a349c5966396 HTTP/1.1 HTTP/1.1 200 -CONTENT-LENGTH: 720 +CONTENT-LENGTH: 721 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id} "l1_keepalives": false, "md5sum": "e573e8f5c93c6c00783f20c7a170aa6c", "name": "PC TEST 1", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/iou/1cc0e78f-8e5f-4183-a6ec-765dd979c28b", - "node_id": "1cc0e78f-8e5f-4183-a6ec-765dd979c28b", + "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", "nvram": 128, "path": "iou.bin", "private_config": null, diff --git a/docs/api/examples/compute_get_projectsprojectidqemunodesnodeid.txt b/docs/api/examples/compute_get_projectsprojectidqemunodesnodeid.txt index 2ea95ce0..2707f8f5 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/d5633d29-ce9c-4688-8df7-a61f78db8917' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/061d6c7c-0288-402d-9731-69caa6422a3c' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d5633d29-ce9c-4688-8df7-a61f78db8917 HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/061d6c7c-0288-402d-9731-69caa6422a3c 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:89:17:00", + "mac_address": "00:dd:80:2a:3c:00", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/d5633d29-ce9c-4688-8df7-a61f78db8917", - "node_id": "d5633d29-ce9c-4688-8df7-a61f78db8917", + "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", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/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 b752ecbc..f116bf59 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/138f4a6d-56e8-4e19-a419-ca3c6a1881f1' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3d3e36f1-5dc8-4c30-8421-c7a4f987d1be' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/138f4a6d-56e8-4e19-a419-ca3c6a1881f1 HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3d3e36f1-5dc8-4c30-8421-c7a4f987d1be 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": "138f4a6d-56e8-4e19-a419-ca3c6a1881f1", + "node_id": "3d3e36f1-5dc8-4c30-8421-c7a4f987d1be", "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 238b67e3..ef9afbc8 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/a8ad89b2-58c2-4a3a-9def-0fa96cf60b04' +curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/19f16d2f-1859-4a51-a816-45d1d8af547b' -GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a8ad89b2-58c2-4a3a-9def-0fa96cf60b04 HTTP/1.1 +GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/19f16d2f-1859-4a51-a816-45d1d8af547b 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/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/a8ad89b2-58c2-4a3a-9def-0fa96cf60b04", - "node_id": "a8ad89b2-58c2-4a3a-9def-0fa96cf60b04", + "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", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "startup_script": null, "startup_script_path": null, diff --git a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.txt index abcd5ed8..1c6f5967 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/92936d82-5536-428d-b7e6-bbd5c9ec0ab0/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/d810f789-7b5c-4e9c-9ddd-cb66aa11a48a/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/92936d82-5536-428d-b7e6-bbd5c9ec0ab0/adapters/0/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d810f789-7b5c-4e9c-9ddd-cb66aa11a48a/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 5dae4dcd..d3b5fddb 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/dd08a886-f8f6-4ed1-80b5-553ddc8a738f/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/3ecbe3f3-4972-4c4e-bfd3-5d182c4bc6d8/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/dd08a886-f8f6-4ed1-80b5-553ddc8a738f/adapters/0/ports/0/start_capture HTTP/1.1 +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 { "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/dd08 HTTP/1.1 200 -CONTENT-LENGTH: 145 +CONTENT-LENGTH: 146 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-91/test_json4/tmp/captures/test.pcap" + "pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/tmp/captures/test.pcap" } diff --git a/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt b/docs/api/examples/compute_post_projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt index 0e145d47..956d3a68 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/d92f7488-adc7-4d9f-acca-32d383be3760/adapters/0/ports/0/stop_capture' -d '{}' +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 '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d92f7488-adc7-4d9f-acca-32d383be3760/adapters/0/ports/0/stop_capture HTTP/1.1 +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 {} diff --git a/docs/api/examples/compute_post_projectsprojectidiounodes.txt b/docs/api/examples/compute_post_projectsprojectidiounodes.txt index 3e8b6965..f2800d64 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": "efaecf66-4a0b-4420-be86-674148fa0e60", "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": "17425b54-3868-47dc-94ba-7775e7c04d1b", "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": "efaecf66-4a0b-4420-be86-674148fa0e60", + "node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b", "path": "iou.bin", "startup_config_content": "hostname test" } HTTP/1.1 201 -CONTENT-LENGTH: 736 +CONTENT-LENGTH: 737 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -25,8 +25,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes "l1_keepalives": false, "md5sum": "e573e8f5c93c6c00783f20c7a170aa6c", "name": "PC TEST 1", - "node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/iou/efaecf66-4a0b-4420-be86-674148fa0e60", - "node_id": "efaecf66-4a0b-4420-be86-674148fa0e60", + "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", "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 8caf32ee..18b8d33f 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/de14f54e-5131-458f-b573-b53e59619b56/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/38dfca02-6ea0-44e8-b58c-b7bdca09308a/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/de14f54e-5131-458f-b573-b53e59619b56/adapters/1/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38dfca02-6ea0-44e8-b58c-b7bdca09308a/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 65e578d7..71e92f23 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/069284e9-12eb-4be8-a244-3927bb43582e/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/93cf9e7b-070d-408b-81f5-283a9a0e247e/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/069284e9-12eb-4be8-a244-3927bb43582e/adapters/0/ports/0/start_capture HTTP/1.1 +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 { "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/069284e HTTP/1.1 200 -CONTENT-LENGTH: 145 +CONTENT-LENGTH: 146 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-91/test_json4/tmp/captures/test.pcap" + "pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/tmp/captures/test.pcap" } diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.txt index d2e5aa38..92c9ba21 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/21919014-54d8-4231-82f9-5553642ad0e1/adapters/0/ports/0/stop_capture' -d '{}' +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 '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/21919014-54d8-4231-82f9-5553642ad0e1/adapters/0/ports/0/stop_capture HTTP/1.1 +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 {} diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidreload.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidreload.txt index f743878e..a3771ac9 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/368fbab8-0f8c-4bfc-8522-94b3a9b863a4/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3947b6cc-ea2a-4e04-92f3-cade4f6404fb/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/368fbab8-0f8c-4bfc-8522-94b3a9b863a4/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3947b6cc-ea2a-4e04-92f3-cade4f6404fb/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidiounodesnodeidstart.txt index 4486daf0..fd71059a 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/c186f0ad-0337-4e59-bad9-7489f7724fb3/start' -d '{"iourc_content": "test"}' +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"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c186f0ad-0337-4e59-bad9-7489f7724fb3/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f8607a0c-8df3-482b-927f-321018542107/start HTTP/1.1 { "iourc_content": "test" } HTTP/1.1 200 -CONTENT-LENGTH: 784 +CONTENT-LENGTH: 785 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -18,12 +18,12 @@ 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/tmp9dgxyo_f/iourc", + "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-91/test_json4/project-files/iou/c186f0ad-0337-4e59-bad9-7489f7724fb3", - "node_id": "c186f0ad-0337-4e59-bad9-7489f7724fb3", + "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", "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 79d1995b..37def726 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/39bca3a8-3f06-4adb-8ae5-5689905f9486/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e2dce29b-ae1b-415b-881b-855a0e194590/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/39bca3a8-3f06-4adb-8ae5-5689905f9486/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e2dce29b-ae1b-415b-881b-855a0e194590/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodes.txt b/docs/api/examples/compute_post_projectsprojectidqemunodes.txt index 46a70d14..611c1692 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/tmpysiulotp/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/tmpetl5k_20/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/tmpysiulotp/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/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:4f:2e:00", + "mac_address": "00:dd:80:0c:c1:00", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/bc7d4e56-365c-4202-847e-6ed106b74f2e", - "node_id": "bc7d4e56-365c-4202-847e-6ed106b74f2e", + "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", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/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 a65118df..596c84ad 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/b4805a2e-88eb-4c42-ae4c-fd2648481e6c/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/945b147c-060f-4a79-ac1c-32c0c736e1bf/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b4805a2e-88eb-4c42-ae4c-fd2648481e6c/adapters/1/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/945b147c-060f-4a79-ac1c-32c0c736e1bf/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 9f6f063e..6cfb2441 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/faf4b8ca-b06e-4a9d-865c-a19dffbecfbb/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f456a9c9-0425-488f-8172-c8e3df767434/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/faf4b8ca-b06e-4a9d-865c-a19dffbecfbb/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f456a9c9-0425-488f-8172-c8e3df767434/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidresume.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidresume.txt index 5bab193a..2e7d35cd 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/d5be88c0-9daa-4ec5-af19-794279a2ab74/resume' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6599101f-a3ac-4303-826e-7092f7bab117/resume' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d5be88c0-9daa-4ec5-af19-794279a2ab74/resume HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6599101f-a3ac-4303-826e-7092f7bab117/resume HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidstart.txt index c8c8c374..47573ed3 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/a08a9122-a95c-4a89-b186-c1bd2aedd631/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f8bf0222-44dc-4ac6-ab1c-32a50982d326/start' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/a08a9122-a95c-4a89-b186-c1bd2aedd631/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f8bf0222-44dc-4ac6-ab1c-32a50982d326/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:d6:31:00", + "mac_address": "00:dd:80:d3:26:00", "name": "PC TEST 1", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/a08a9122-a95c-4a89-b186-c1bd2aedd631", - "node_id": "a08a9122-a95c-4a89-b186-c1bd2aedd631", + "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", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/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 2784ee1f..939dfb0f 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/006d3535-840b-44e3-8506-eddb110564bc/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d0e548d5-1cd1-40a7-84af-225702ce993a/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/006d3535-840b-44e3-8506-eddb110564bc/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d0e548d5-1cd1-40a7-84af-225702ce993a/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidsuspend.txt b/docs/api/examples/compute_post_projectsprojectidqemunodesnodeidsuspend.txt index 2179a297..40668225 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/ee874901-5d79-4faa-affe-05db857ecc8d/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/50bc44d6-3274-4e34-8967-f03bc6f77a38/suspend' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ee874901-5d79-4faa-affe-05db857ecc8d/suspend HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/50bc44d6-3274-4e34-8967-f03bc6f77a38/suspend HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodes.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodes.txt index 37383182..5a58d18e 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": "76c2367e-e886-4787-bf13-0013afee2752", + "node_id": "65abbe8d-dff3-43be-a3d1-c18f2f4658a2", "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 03159892..56a4a32f 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/39f94b38-dd28-4c26-9239-d1171001dcea/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/97942d37-2d75-4599-b04d-2b05444a4c05/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/39f94b38-dd28-4c26-9239-d1171001dcea/adapters/0/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/97942d37-2d75-4599-b04d-2b05444a4c05/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 7f71650b..4881cebd 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/05cf9641-d762-45c5-ae74-d3611d40bf79/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8bf8e172-f166-42e0-bdfd-80aca6f2e4fb/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/05cf9641-d762-45c5-ae74-d3611d40bf79/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8bf8e172-f166-42e0-bdfd-80aca6f2e4fb/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidresume.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidresume.txt index 11ca5e65..1bee5ce4 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/b7bb3fc0-cf2d-4249-b145-d2b299b55034/resume' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/622fb0cc-d606-460f-b747-40522d9b343a/resume' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b7bb3fc0-cf2d-4249-b145-d2b299b55034/resume HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/622fb0cc-d606-460f-b747-40522d9b343a/resume HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstart.txt index e2fe1c9a..da70e7ed 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/b5eb371f-7ffd-459e-930f-010d75ef0df3/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7a1579fb-2768-4999-bca3-647e9ba47a63/start' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b5eb371f-7ffd-459e-930f-010d75ef0df3/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7a1579fb-2768-4999-bca3-647e9ba47a63/start HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstop.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidstop.txt index b6ff8f61..708ba19c 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/4d701eaa-6a38-40eb-83ed-4bfb9822093e/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4bbb3869-411b-4a29-9d63-134c51da727e/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4d701eaa-6a38-40eb-83ed-4bfb9822093e/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4bbb3869-411b-4a29-9d63-134c51da727e/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidsuspend.txt b/docs/api/examples/compute_post_projectsprojectidvirtualboxnodesnodeidsuspend.txt index 28933517..618f429f 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/029533b2-c003-4d07-aac6-72d448734736/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21931428-40d7-466e-9c6c-26fbf90a6172/suspend' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/029533b2-c003-4d07-aac6-72d448734736/suspend HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21931428-40d7-466e-9c6c-26fbf90a6172/suspend HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodes.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodes.txt index f4f8620c..a3969902 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/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/fa1a7eb2-88ad-4ef1-bd68-ca56cca882f8", - "node_id": "fa1a7eb2-88ad-4ef1-bd68-ca56cca882f8", + "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", "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 9a95f5cc..10ba3544 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/c5268754-4060-448d-aa6c-4d4c10af2682/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/5cf81283-7a37-4fe4-b387-228eda727008/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/c5268754-4060-448d-aa6c-4d4c10af2682/adapters/0/ports/0/nio HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5cf81283-7a37-4fe4-b387-228eda727008/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 5859c651..0c842b12 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/543d58a9-65f9-4f0e-9982-e5925db2a402/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2721cc81-3274-4a89-9e7b-4cfb986a9e80/reload' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/543d58a9-65f9-4f0e-9982-e5925db2a402/reload HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2721cc81-3274-4a89-9e7b-4cfb986a9e80/reload HTTP/1.1 {} diff --git a/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstart.txt b/docs/api/examples/compute_post_projectsprojectidvpcsnodesnodeidstart.txt index 177cdeaf..9a232fd7 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/0fd5308e-4894-434b-b72b-f6fef405092d/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/696e00ce-d1b5-461f-8f8f-a5397762f0d4/start' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/0fd5308e-4894-434b-b72b-f6fef405092d/start HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/696e00ce-d1b5-461f-8f8f-a5397762f0d4/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/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/0fd5308e-4894-434b-b72b-f6fef405092d", - "node_id": "0fd5308e-4894-434b-b72b-f6fef405092d", + "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", "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 3ad140b0..01b164a1 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/99160adf-5437-42b0-8444-9af17e9e21d6/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/75f19d3b-b46c-4f80-973f-d126e8011dd1/stop' -d '{}' -POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/99160adf-5437-42b0-8444-9af17e9e21d6/stop HTTP/1.1 +POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/75f19d3b-b46c-4f80-973f-d126e8011dd1/stop HTTP/1.1 {} diff --git a/docs/api/examples/compute_put_projectsprojectid.txt b/docs/api/examples/compute_put_projectsprojectid.txt deleted file mode 100644 index b37c708d..00000000 --- a/docs/api/examples/compute_put_projectsprojectid.txt +++ /dev/null @@ -1,20 +0,0 @@ -curl -i -X PUT 'http://localhost:3080/v2/compute/projects/90010203-0405-0607-0809-0a0b0c0d0e0b' -d '{"name": "second_name", "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_update_path_project_non_l0"}' - -PUT /v2/compute/projects/90010203-0405-0607-0809-0a0b0c0d0e0b HTTP/1.1 -{ - "name": "second_name", - "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_update_path_project_non_l0" -} - - -HTTP/1.1 403 -CONTENT-LENGTH: 96 -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} - -{ - "message": "You are not allowed to modify the project directory path", - "status": 403 -} diff --git a/docs/api/examples/compute_put_projectsprojectiddockernodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectiddockernodesnodeid.txt index 3ebff1df..ba16188f 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/88891d34-4227-4d66-a4ab-b7af183df673' -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/aca4e44c-9642-4662-826e-f88af1989002' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/88891d34-4227-4d66-a4ab-b7af183df673 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/aca4e44c-9642-4662-826e-f88af1989002 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/88891 HTTP/1.1 200 -CONTENT-LENGTH: 653 +CONTENT-LENGTH: 654 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-91/test_json4/project-files/docker/88891d34-4227-4d66-a4ab-b7af183df673", - "node_id": "88891d34-4227-4d66-a4ab-b7af183df673", + "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", "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 f2da274a..eefdc757 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/2284ee92-6faf-4eef-8469-e4449c2163d6' -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/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}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2284ee92-6faf-4eef-8469-e4449c2163d6 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a92f74-b721-4346-9f8d-11bc7f651f62 HTTP/1.1 { "console": 5712, "ethernet_adapters": 4, @@ -16,7 +16,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2284ee92 HTTP/1.1 200 -CONTENT-LENGTH: 795 +CONTENT-LENGTH: 796 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -27,12 +27,12 @@ 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/tmpurz_vwy8/iourc", + "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-91/test_json4/project-files/iou/2284ee92-6faf-4eef-8469-e4449c2163d6", - "node_id": "2284ee92-6faf-4eef-8469-e4449c2163d6", + "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", "nvram": 2048, "path": "iou.bin", "private_config": null, diff --git a/docs/api/examples/compute_put_projectsprojectidqemunodesnodeid.txt b/docs/api/examples/compute_put_projectsprojectidqemunodesnodeid.txt index 990d6ade..2a26bd75 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/d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9' -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/91996aa5-a205-42b0-80df-9a86685a8563' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/91996aa5-a205-42b0-80df-9a86685a8563 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:44:a9:00", + "mac_address": "00:dd:80:85:63:00", "name": "test", - "node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9", - "node_id": "d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9", + "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", "options": "", "platform": "x86_64", "process_priority": "low", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", - "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64", + "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/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 f63c4989..435293c0 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/51520b2b-ec87-4fc2-993f-55b7906cc620' -d '{"console": 5721, "name": "test"}' +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"}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/51520b2b-ec87-4fc2-993f-55b7906cc620 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5e581f48-254f-413c-994f-ff03a349d386 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": "51520b2b-ec87-4fc2-993f-55b7906cc620", + "node_id": "5e581f48-254f-413c-994f-ff03a349d386", "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 667ca53f..3fadd3de 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/e9189e9d-f799-489d-9dc0-5fe7921cef82' -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/e27400b3-bf43-4ba1-95e5-7784db5b8d05' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}' -PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e9189e9d-f799-489d-9dc0-5fe7921cef82 HTTP/1.1 +PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e27400b3-bf43-4ba1-95e5-7784db5b8d05 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/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e9189e9d-f799-489d-9dc0-5fe7921cef82", - "node_id": "e9189e9d-f799-489d-9dc0-5fe7921cef82", + "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", "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 69987040..c7ee7568 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/6e5a4f20-02c2-4577-9443-08a36f761048' +curl -i -X DELETE 'http://localhost:3080/v2/projects/7074992f-14e6-46f8-bd00-e0ebe49ba6bb' -DELETE /v2/projects/6e5a4f20-02c2-4577-9443-08a36f761048 HTTP/1.1 +DELETE /v2/projects/7074992f-14e6-46f8-bd00-e0ebe49ba6bb HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectiddrawingsdrawingid.txt b/docs/api/examples/controller_delete_projectsprojectiddrawingsdrawingid.txt index 47fec365..59a4d6e7 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/2c27794e-287e-489a-b4b8-0d58780088dd/drawings/cc8650a6-06cc-4ae2-a68f-67ba8a4dbced' +curl -i -X DELETE 'http://localhost:3080/v2/projects/8f835819-7610-431f-ac63-f7aac942da0f/drawings/751256c7-86de-4bca-a224-cd46bdc0a289' -DELETE /v2/projects/2c27794e-287e-489a-b4b8-0d58780088dd/drawings/cc8650a6-06cc-4ae2-a68f-67ba8a4dbced HTTP/1.1 +DELETE /v2/projects/8f835819-7610-431f-ac63-f7aac942da0f/drawings/751256c7-86de-4bca-a224-cd46bdc0a289 HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectidlinkslinkid.txt b/docs/api/examples/controller_delete_projectsprojectidlinkslinkid.txt index 8fb4d475..6e00b8d9 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/78c7348f-eb8d-4fbb-a407-8a7dfd4161a0/links/36dc6f8d-c5e3-4b89-b356-0d10ccfbd313' +curl -i -X DELETE 'http://localhost:3080/v2/projects/15ec7567-33b4-4648-876a-b7128c33cb07/links/cbca8122-7162-4ce0-a2ad-82075775bada' -DELETE /v2/projects/78c7348f-eb8d-4fbb-a407-8a7dfd4161a0/links/36dc6f8d-c5e3-4b89-b356-0d10ccfbd313 HTTP/1.1 +DELETE /v2/projects/15ec7567-33b4-4648-876a-b7128c33cb07/links/cbca8122-7162-4ce0-a2ad-82075775bada HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectidnodesnodeid.txt b/docs/api/examples/controller_delete_projectsprojectidnodesnodeid.txt index 82ab6117..fbbd0a77 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/98a9042c-e068-469c-bdbf-73f7d9358ec9/nodes/c838cd10-6930-4306-9a3b-7318563de413' +curl -i -X DELETE 'http://localhost:3080/v2/projects/3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1/nodes/fa1fc0e2-c4bd-4f0e-ad65-36a71111f381' -DELETE /v2/projects/98a9042c-e068-469c-bdbf-73f7d9358ec9/nodes/c838cd10-6930-4306-9a3b-7318563de413 HTTP/1.1 +DELETE /v2/projects/3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1/nodes/fa1fc0e2-c4bd-4f0e-ad65-36a71111f381 HTTP/1.1 diff --git a/docs/api/examples/controller_delete_projectsprojectidsnapshotssnapshotid.txt b/docs/api/examples/controller_delete_projectsprojectidsnapshotssnapshotid.txt index b18d59b9..638e3b8b 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/56a6146a-721a-4062-8d86-bb1bd0dcd1af/snapshots/4d5a39b3-4e32-48e2-abf0-9fc8a20de7b7' +curl -i -X DELETE 'http://localhost:3080/v2/projects/b220fd00-88c0-4ae4-a457-9e06ece8243e/snapshots/61eeff3d-750f-4c73-beff-29757c862e1a' -DELETE /v2/projects/56a6146a-721a-4062-8d86-bb1bd0dcd1af/snapshots/4d5a39b3-4e32-48e2-abf0-9fc8a20de7b7 HTTP/1.1 +DELETE /v2/projects/b220fd00-88c0-4ae4-a457-9e06ece8243e/snapshots/61eeff3d-750f-4c73-beff-29757c862e1a HTTP/1.1 diff --git a/docs/api/examples/controller_get_projects.txt b/docs/api/examples/controller_get_projects.txt index 73132c65..10bde191 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: 284 +CONTENT-LENGTH: 285 CONTENT-TYPE: application/json DATE: Thu, 08 Jan 2015 16:09:15 GMT SERVER: Python/3.5 GNS3/2.0.0dev1 @@ -15,7 +15,7 @@ X-ROUTE: /v2/projects { "filename": "test.gns3", "name": "test", - "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_list_projects1", + "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/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 e4107e74..33de3561 100644 --- a/docs/api/examples/controller_get_projectsprojectid.txt +++ b/docs/api/examples/controller_get_projectsprojectid.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/3a2b5f84-6aba-4125-a044-0c925f727547' +curl -i -X GET 'http://localhost:3080/v2/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf' -GET /v2/projects/3a2b5f84-6aba-4125-a044-0c925f727547 HTTP/1.1 +GET /v2/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf HTTP/1.1 @@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id} { "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpoxbcislw/projects/3a2b5f84-6aba-4125-a044-0c925f727547", - "project_id": "3a2b5f84-6aba-4125-a044-0c925f727547", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmplesu6g2y/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf", + "project_id": "752e3ddf-bcad-4feb-b72c-6498a74bfabf", "status": "opened" } diff --git a/docs/api/examples/controller_get_projectsprojectiddrawings.txt b/docs/api/examples/controller_get_projectsprojectiddrawings.txt index 49d6d9e5..f4333d18 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/ac9ddc94-514a-4517-821e-39e7c958591b/drawings' +curl -i -X GET 'http://localhost:3080/v2/projects/21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4/drawings' -GET /v2/projects/ac9ddc94-514a-4517-821e-39e7c958591b/drawings HTTP/1.1 +GET /v2/projects/21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4/drawings HTTP/1.1 @@ -13,8 +13,8 @@ X-ROUTE: /v2/projects/{project_id}/drawings [ { - "drawing_id": "b717be1b-f3a8-4d7f-8b0f-c64c790f764c", - "project_id": "ac9ddc94-514a-4517-821e-39e7c958591b", + "drawing_id": "9fcf65e4-ffd7-47ad-af23-f161d5bbfa11", + "project_id": "21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4", "rotation": 0, "svg": "", "x": 10, diff --git a/docs/api/examples/controller_get_projectsprojectidlinks.txt b/docs/api/examples/controller_get_projectsprojectidlinks.txt index 8ec6da3e..d32f5c73 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/ff74612a-3716-4a1b-94e3-611cfec47404/links' +curl -i -X GET 'http://localhost:3080/v2/projects/3863fae6-89f2-44b8-8440-130c111f5237/links' -GET /v2/projects/ff74612a-3716-4a1b-94e3-611cfec47404/links HTTP/1.1 +GET /v2/projects/3863fae6-89f2-44b8-8440-130c111f5237/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": "e1904198-89c6-4e40-98e9-dee68a74314f", + "link_id": "99a8611f-f802-4a23-9d6f-3f5c1fdc6efa", "nodes": [ { "adapter_number": 0, @@ -27,7 +27,7 @@ X-ROUTE: /v2/projects/{project_id}/links "x": -10, "y": -10 }, - "node_id": "0295bcda-195e-49ec-8e09-d5cda9537656", + "node_id": "3d057b55-d638-4d38-9d22-a2f6f56d1799", "port_number": 3 }, { @@ -39,10 +39,10 @@ X-ROUTE: /v2/projects/{project_id}/links "x": -10, "y": -10 }, - "node_id": "3edda52d-d1e9-457e-adb0-b96cc431191c", + "node_id": "de315007-d0cf-499e-93b4-cf7ed94a14e6", "port_number": 4 } ], - "project_id": "ff74612a-3716-4a1b-94e3-611cfec47404" + "project_id": "3863fae6-89f2-44b8-8440-130c111f5237" } ] diff --git a/docs/api/examples/controller_get_projectsprojectidnodes.txt b/docs/api/examples/controller_get_projectsprojectidnodes.txt index 557981eb..e52d3d65 100644 --- a/docs/api/examples/controller_get_projectsprojectidnodes.txt +++ b/docs/api/examples/controller_get_projectsprojectidnodes.txt @@ -1,6 +1,6 @@ -curl -i -X GET 'http://localhost:3080/v2/projects/fbe2b2ae-c040-41b4-83b8-3f342a1644fc/nodes' +curl -i -X GET 'http://localhost:3080/v2/projects/21f741da-fe54-4d8d-ad40-fef06d536dc5/nodes' -GET /v2/projects/fbe2b2ae-c040-41b4-83b8-3f342a1644fc/nodes HTTP/1.1 +GET /v2/projects/21f741da-fe54-4d8d-ad40-fef06d536dc5/nodes HTTP/1.1 @@ -28,9 +28,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes }, "name": "test", "node_directory": null, - "node_id": "5eb6752d-e2d1-41e3-9267-2b501086f499", + "node_id": "3797673d-fb0c-40d6-9fa1-c768167c1989", "node_type": "vpcs", - "project_id": "fbe2b2ae-c040-41b4-83b8-3f342a1644fc", + "project_id": "21f741da-fe54-4d8d-ad40-fef06d536dc5", "properties": { "startup_script": "echo test" }, diff --git a/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsautoidlepc.txt b/docs/api/examples/controller_get_projectsprojectidnodesnodeiddynamipsautoidlepc.txt index ee21c46e..5636b9f9 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/652e8a52-a4f2-4d7a-8282-9a705a8e7ff3/nodes/6f1375d0-4a33-4e45-8cc5-2ba9cae479d1/dynamips/auto_idlepc' +curl -i -X GET 'http://localhost:3080/v2/projects/2e182242-533c-45fa-a997-c4dbfd13f66c/nodes/444057ba-eb3d-4120-8f9d-8e764bab489f/dynamips/auto_idlepc' -GET /v2/projects/652e8a52-a4f2-4d7a-8282-9a705a8e7ff3/nodes/6f1375d0-4a33-4e45-8cc5-2ba9cae479d1/dynamips/auto_idlepc HTTP/1.1 +GET /v2/projects/2e182242-533c-45fa-a997-c4dbfd13f66c/nodes/444057ba-eb3d-4120-8f9d-8e764bab489f/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 b9a2e725..3840fba9 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/92597fc5-7c1a-44a6-8b62-62b55dc350e2/nodes/f2b03514-8111-4cdd-b3e0-91a3c59bd360/dynamips/idlepc_proposals' +curl -i -X GET 'http://localhost:3080/v2/projects/086d8799-7ab0-4d3c-a355-da83ab65b8c8/nodes/18a28349-459a-4644-a220-6d3f1c87ba4f/dynamips/idlepc_proposals' -GET /v2/projects/92597fc5-7c1a-44a6-8b62-62b55dc350e2/nodes/f2b03514-8111-4cdd-b3e0-91a3c59bd360/dynamips/idlepc_proposals HTTP/1.1 +GET /v2/projects/086d8799-7ab0-4d3c-a355-da83ab65b8c8/nodes/18a28349-459a-4644-a220-6d3f1c87ba4f/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 7bb50cc7..958fba60 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/3fb5988c-2390-44c4-a150-f595a2e215e6/snapshots' +curl -i -X GET 'http://localhost:3080/v2/projects/95248748-6c54-4935-a3e1-db0638fa923e/snapshots' -GET /v2/projects/3fb5988c-2390-44c4-a150-f595a2e215e6/snapshots HTTP/1.1 +GET /v2/projects/95248748-6c54-4935-a3e1-db0638fa923e/snapshots HTTP/1.1 @@ -13,9 +13,9 @@ X-ROUTE: /v2/projects/{project_id}/snapshots [ { - "created_at": 1471255682, + "created_at": 1471275494, "name": "test", - "project_id": "3fb5988c-2390-44c4-a150-f595a2e215e6", - "snapshot_id": "26c7190c-1a66-43f1-9799-9c11e6a65cf3" + "project_id": "95248748-6c54-4935-a3e1-db0638fa923e", + "snapshot_id": "2da92e42-c175-4d37-b0d4-85433c4a9be5" } ] diff --git a/docs/api/examples/controller_post_projects.txt b/docs/api/examples/controller_post_projects.txt index 1b2c4ec1..7240ed11 100644 --- a/docs/api/examples/controller_post_projects.txt +++ b/docs/api/examples/controller_post_projects.txt @@ -17,7 +17,7 @@ X-ROUTE: /v2/projects { "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpeq5e2r05/projects/10010203-0405-0607-0809-0a0b0c0d0e0f", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9tsioz_l/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 9f1f75f6..fd7c2a6e 100644 --- a/docs/api/examples/controller_post_projectsload.txt +++ b/docs/api/examples/controller_post_projectsload.txt @@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/load { "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmp466im_/projects/b57f5cb1-7161-4551-b042-7c5bcc239efe", - "project_id": "b57f5cb1-7161-4551-b042-7c5bcc239efe", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpixvpn8v2/projects/1207c9ba-3f18-4d4c-8adc-271cfaefed03", + "project_id": "1207c9ba-3f18-4d4c-8adc-271cfaefed03", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsprojectidclose.txt b/docs/api/examples/controller_post_projectsprojectidclose.txt index e89314a0..cc86eb78 100644 --- a/docs/api/examples/controller_post_projectsprojectidclose.txt +++ b/docs/api/examples/controller_post_projectsprojectidclose.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/d55aceb2-642f-4ef9-9d77-6b021edf1908/close' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6/close' -d '{}' -POST /v2/projects/d55aceb2-642f-4ef9-9d77-6b021edf1908/close HTTP/1.1 +POST /v2/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6/close HTTP/1.1 {} @@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/close { "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpz6d89io2/projects/d55aceb2-642f-4ef9-9d77-6b021edf1908", - "project_id": "d55aceb2-642f-4ef9-9d77-6b021edf1908", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp2uaousem/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6", + "project_id": "c3ec9d20-749b-4e11-b2a5-922e807209c6", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsprojectiddrawings.txt b/docs/api/examples/controller_post_projectsprojectiddrawings.txt index 63db14dd..a6a8085b 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/e7feced6-2e32-48f9-91e5-3ca6e091ffbd/drawings' -d '{"svg": "", "x": 10, "y": 20, "z": 0}' +curl -i -X POST 'http://localhost:3080/v2/projects/7f91b223-b43b-46d8-9352-f486b561e319/drawings' -d '{"svg": "", "x": 10, "y": 20, "z": 0}' -POST /v2/projects/e7feced6-2e32-48f9-91e5-3ca6e091ffbd/drawings HTTP/1.1 +POST /v2/projects/7f91b223-b43b-46d8-9352-f486b561e319/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": "ae38897a-9fcf-461b-aff0-20647d32b07f", - "project_id": "e7feced6-2e32-48f9-91e5-3ca6e091ffbd", + "drawing_id": "5a959fe2-7551-44de-b8b9-f143bed44b95", + "project_id": "7f91b223-b43b-46d8-9352-f486b561e319", "rotation": 0, "svg": "", "x": 10, diff --git a/docs/api/examples/controller_post_projectsprojectidduplicate.txt b/docs/api/examples/controller_post_projectsprojectidduplicate.txt index eef8baa9..8e241dc7 100644 --- a/docs/api/examples/controller_post_projectsprojectidduplicate.txt +++ b/docs/api/examples/controller_post_projectsprojectidduplicate.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/7b0df311-f239-4e48-a1f5-21f7638f9588/duplicate' -d '{"name": "hello"}' +curl -i -X POST 'http://localhost:3080/v2/projects/7d5b9b55-cff9-435b-9ee7-45f4f33efe64/duplicate' -d '{"name": "hello"}' -POST /v2/projects/7b0df311-f239-4e48-a1f5-21f7638f9588/duplicate HTTP/1.1 +POST /v2/projects/7d5b9b55-cff9-435b-9ee7-45f4f33efe64/duplicate HTTP/1.1 { "name": "hello" } @@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/{project_id}/duplicate { "filename": "hello.gns3", "name": "hello", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmzo55377/projects/hello", - "project_id": "e34dd634-015e-4e8b-8d9d-8cbf93ffdd9f", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp5dv92n90/projects/hello", + "project_id": "a8dc4a17-ae16-4b8b-8f2b-a3fa6a8c4556", "status": "closed" } diff --git a/docs/api/examples/controller_post_projectsprojectidlinks.txt b/docs/api/examples/controller_post_projectsprojectidlinks.txt index e6b1b407..7e89a054 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/89e290ee-3f68-4c3c-914d-2346298c653a/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "ca180310-9f4a-4a26-b0a7-e306dee99bf1", "port_number": 3}, {"adapter_number": 2, "node_id": "32376395-9f93-446a-8792-921b607b3d90", "port_number": 4}]}' +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}]}' -POST /v2/projects/89e290ee-3f68-4c3c-914d-2346298c653a/links HTTP/1.1 +POST /v2/projects/6fbfc705-c539-4013-a025-a5c76f7e1c8e/links HTTP/1.1 { "nodes": [ { @@ -10,12 +10,12 @@ POST /v2/projects/89e290ee-3f68-4c3c-914d-2346298c653a/links HTTP/1.1 "x": 42, "y": 0 }, - "node_id": "ca180310-9f4a-4a26-b0a7-e306dee99bf1", + "node_id": "450a918f-d477-459e-bdab-26f32ab4de4e", "port_number": 3 }, { "adapter_number": 2, - "node_id": "32376395-9f93-446a-8792-921b607b3d90", + "node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5", "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": "ebeaf698-0187-45c8-9db0-f467a7b324be", + "link_id": "690b280c-0e37-41c7-a771-6665af22a542", "nodes": [ { "adapter_number": 0, @@ -42,7 +42,7 @@ X-ROUTE: /v2/projects/{project_id}/links "x": 42, "y": 0 }, - "node_id": "ca180310-9f4a-4a26-b0a7-e306dee99bf1", + "node_id": "450a918f-d477-459e-bdab-26f32ab4de4e", "port_number": 3 }, { @@ -54,9 +54,9 @@ X-ROUTE: /v2/projects/{project_id}/links "x": -10, "y": -10 }, - "node_id": "32376395-9f93-446a-8792-921b607b3d90", + "node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5", "port_number": 4 } ], - "project_id": "89e290ee-3f68-4c3c-914d-2346298c653a" + "project_id": "6fbfc705-c539-4013-a025-a5c76f7e1c8e" } diff --git a/docs/api/examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt b/docs/api/examples/controller_post_projectsprojectidlinkslinkidstartcapture.txt index 9b4d00a0..f9c879f3 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/e074e529-3775-414e-8453-ff8d2a974d4b/links/6f4467d9-bbb0-4d0a-9ccf-287dd524b21c/start_capture' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/1e55b8ee-8ed3-4295-8d51-3f09e3f705b1/links/cbb6ee48-d041-4962-992a-0375735707a1/start_capture' -d '{}' -POST /v2/projects/e074e529-3775-414e-8453-ff8d2a974d4b/links/6f4467d9-bbb0-4d0a-9ccf-287dd524b21c/start_capture HTTP/1.1 +POST /v2/projects/1e55b8ee-8ed3-4295-8d51-3f09e3f705b1/links/cbb6ee48-d041-4962-992a-0375735707a1/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": "6f4467d9-bbb0-4d0a-9ccf-287dd524b21c", + "link_id": "cbb6ee48-d041-4962-992a-0375735707a1", "nodes": [], - "project_id": "e074e529-3775-414e-8453-ff8d2a974d4b" + "project_id": "1e55b8ee-8ed3-4295-8d51-3f09e3f705b1" } diff --git a/docs/api/examples/controller_post_projectsprojectidlinkslinkidstopcapture.txt b/docs/api/examples/controller_post_projectsprojectidlinkslinkidstopcapture.txt index 7d9f2b39..4b66a36c 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/dd8bfb20-515c-4d38-b850-3315d3291bbe/links/313657f9-b4eb-4e2a-b6b3-0eb51eeb4657/stop_capture' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/34959503-cdb0-420d-b157-57e393f5118d/links/f5d59f5f-b6fc-43d6-886c-417234c123fb/stop_capture' -d '{}' -POST /v2/projects/dd8bfb20-515c-4d38-b850-3315d3291bbe/links/313657f9-b4eb-4e2a-b6b3-0eb51eeb4657/stop_capture HTTP/1.1 +POST /v2/projects/34959503-cdb0-420d-b157-57e393f5118d/links/f5d59f5f-b6fc-43d6-886c-417234c123fb/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": "313657f9-b4eb-4e2a-b6b3-0eb51eeb4657", + "link_id": "f5d59f5f-b6fc-43d6-886c-417234c123fb", "nodes": [], - "project_id": "dd8bfb20-515c-4d38-b850-3315d3291bbe" + "project_id": "34959503-cdb0-420d-b157-57e393f5118d" } diff --git a/docs/api/examples/controller_post_projectsprojectidnodes.txt b/docs/api/examples/controller_post_projectsprojectidnodes.txt index f96923a1..1cd971de 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/4e42ea2c-8fa2-4382-8115-5ff0caba1ee3/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/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}' -POST /v2/projects/4e42ea2c-8fa2-4382-8115-5ff0caba1ee3/nodes HTTP/1.1 +POST /v2/projects/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes HTTP/1.1 { "compute_id": "example.com", "name": "test", @@ -34,9 +34,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes }, "name": "test", "node_directory": null, - "node_id": "85d7395f-9138-45f1-9176-ad5540b26446", + "node_id": "a414b9fb-f612-4042-8f2a-59206dce9bf5", "node_type": "vpcs", - "project_id": "4e42ea2c-8fa2-4382-8115-5ff0caba1ee3", + "project_id": "cc0908dc-6ae4-4186-b537-4f6b23c13f0c", "properties": { "startup_script": "echo test" }, diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt index ef666bbc..c6579ffd 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidreload.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/b545f5da-3277-47dc-82a3-b17aa13e4d89/nodes/9c10b9f2-cc01-4876-b16d-ae5e086e903a/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/e2c0dd62-7f12-43e5-9296-c38e1145fb14/nodes/52481486-ea78-40ff-ac8b-036031fcaa5b/reload' -d '{}' -POST /v2/projects/b545f5da-3277-47dc-82a3-b17aa13e4d89/nodes/9c10b9f2-cc01-4876-b16d-ae5e086e903a/reload HTTP/1.1 +POST /v2/projects/e2c0dd62-7f12-43e5-9296-c38e1145fb14/nodes/52481486-ea78-40ff-ac8b-036031fcaa5b/reload HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt index 551c4db8..e0f8a89d 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstart.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/97cebf07-e289-43a3-8b53-92c48eaddb52/nodes/a400e342-2860-4f7b-8263-023ba6455817/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/ce2e3571-8926-41a2-9f51-62eaf007f9be/nodes/78ed81ef-3683-4410-be15-b5bc13dd9429/start' -d '{}' -POST /v2/projects/97cebf07-e289-43a3-8b53-92c48eaddb52/nodes/a400e342-2860-4f7b-8263-023ba6455817/start HTTP/1.1 +POST /v2/projects/ce2e3571-8926-41a2-9f51-62eaf007f9be/nodes/78ed81ef-3683-4410-be15-b5bc13dd9429/start HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt index 2338cd3c..902f71e5 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidstop.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/aa160196-8910-45f1-826a-abd9b889c4ce/nodes/a5ce2eae-228c-48dd-9876-826727d3aba7/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/3e0c6b33-c9ea-4135-8e1a-37f9a7dd3dfb/nodes/d903e05a-7e4b-46ce-9d49-484e1f10cd58/stop' -d '{}' -POST /v2/projects/aa160196-8910-45f1-826a-abd9b889c4ce/nodes/a5ce2eae-228c-48dd-9876-826727d3aba7/stop HTTP/1.1 +POST /v2/projects/3e0c6b33-c9ea-4135-8e1a-37f9a7dd3dfb/nodes/d903e05a-7e4b-46ce-9d49-484e1f10cd58/stop HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt b/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt index 3f83550d..b1006ad7 100644 --- a/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt +++ b/docs/api/examples/controller_post_projectsprojectidnodesnodeidsuspend.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/626707c3-1edd-4639-b588-6b8f426308a1/nodes/2bacf7aa-a309-498c-872a-3c866936dd0e/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/6bf667a1-aac0-4668-bc80-c664d0d9dfe9/nodes/622d2b21-0306-4c9d-8466-ac0a5274e6f9/suspend' -d '{}' -POST /v2/projects/626707c3-1edd-4639-b588-6b8f426308a1/nodes/2bacf7aa-a309-498c-872a-3c866936dd0e/suspend HTTP/1.1 +POST /v2/projects/6bf667a1-aac0-4668-bc80-c664d0d9dfe9/nodes/622d2b21-0306-4c9d-8466-ac0a5274e6f9/suspend HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesreload.txt b/docs/api/examples/controller_post_projectsprojectidnodesreload.txt index afe37cf4..3b737e3a 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/efad62d4-0bd1-46a8-b07d-5e8dda367b0c/nodes/reload' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/1ed78eb2-bc11-4a1f-b91a-8778c18dcf28/nodes/reload' -d '{}' -POST /v2/projects/efad62d4-0bd1-46a8-b07d-5e8dda367b0c/nodes/reload HTTP/1.1 +POST /v2/projects/1ed78eb2-bc11-4a1f-b91a-8778c18dcf28/nodes/reload HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesstart.txt b/docs/api/examples/controller_post_projectsprojectidnodesstart.txt index 63cc0e16..097dd513 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/62a84209-94af-411c-8480-f8350acb6568/nodes/start' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/2ebf6f80-977c-4f82-ab8d-ec6de00f676e/nodes/start' -d '{}' -POST /v2/projects/62a84209-94af-411c-8480-f8350acb6568/nodes/start HTTP/1.1 +POST /v2/projects/2ebf6f80-977c-4f82-ab8d-ec6de00f676e/nodes/start HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodesstop.txt b/docs/api/examples/controller_post_projectsprojectidnodesstop.txt index e2685bee..d63e0e72 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/0b0a8e44-e6e0-4376-a13d-1817aee278be/nodes/stop' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/a2ad1b32-c750-448f-83b5-f0b7f8807bd0/nodes/stop' -d '{}' -POST /v2/projects/0b0a8e44-e6e0-4376-a13d-1817aee278be/nodes/stop HTTP/1.1 +POST /v2/projects/a2ad1b32-c750-448f-83b5-f0b7f8807bd0/nodes/stop HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidnodessuspend.txt b/docs/api/examples/controller_post_projectsprojectidnodessuspend.txt index 836195f0..6b767541 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/3f2ef189-c551-4998-878d-5bb81a00d6c8/nodes/suspend' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/465579b6-39ec-4200-8f30-18e3b626a251/nodes/suspend' -d '{}' -POST /v2/projects/3f2ef189-c551-4998-878d-5bb81a00d6c8/nodes/suspend HTTP/1.1 +POST /v2/projects/465579b6-39ec-4200-8f30-18e3b626a251/nodes/suspend HTTP/1.1 {} diff --git a/docs/api/examples/controller_post_projectsprojectidopen.txt b/docs/api/examples/controller_post_projectsprojectidopen.txt index edf8f605..20e3c873 100644 --- a/docs/api/examples/controller_post_projectsprojectidopen.txt +++ b/docs/api/examples/controller_post_projectsprojectidopen.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/afd371b6-552c-4a5f-af95-3d84e5124e5c/open' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0/open' -d '{}' -POST /v2/projects/afd371b6-552c-4a5f-af95-3d84e5124e5c/open HTTP/1.1 +POST /v2/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0/open HTTP/1.1 {} @@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/open { "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpueqnywu8/projects/afd371b6-552c-4a5f-af95-3d84e5124e5c", - "project_id": "afd371b6-552c-4a5f-af95-3d84e5124e5c", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7ego61b6/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0", + "project_id": "3d5c3c10-0934-4005-a3b6-4b75c53eb4a0", "status": "opened" } diff --git a/docs/api/examples/controller_post_projectsprojectidsnapshots.txt b/docs/api/examples/controller_post_projectsprojectidsnapshots.txt index 65188b11..ed0d9ed9 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/40536e06-c138-4cb1-8202-ae562227bfc3/snapshots' -d '{"name": "snap1"}' +curl -i -X POST 'http://localhost:3080/v2/projects/90cf6f4c-635d-470a-a4bd-7f098cac153b/snapshots' -d '{"name": "snap1"}' -POST /v2/projects/40536e06-c138-4cb1-8202-ae562227bfc3/snapshots HTTP/1.1 +POST /v2/projects/90cf6f4c-635d-470a-a4bd-7f098cac153b/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": 1471255682, + "created_at": 1471275495, "name": "snap1", - "project_id": "40536e06-c138-4cb1-8202-ae562227bfc3", - "snapshot_id": "74e0d54a-84c5-4cda-99ee-86acb1f6dcca" + "project_id": "90cf6f4c-635d-470a-a4bd-7f098cac153b", + "snapshot_id": "5ef71f28-7a2f-4f9d-bc74-809ac51ee7c4" } diff --git a/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt b/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt index 982cd8ee..a35288bf 100644 --- a/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt +++ b/docs/api/examples/controller_post_projectsprojectidsnapshotssnapshotidrestore.txt @@ -1,6 +1,6 @@ -curl -i -X POST 'http://localhost:3080/v2/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4/snapshots/37665774-a772-4b41-bd7c-c56b29c0da60/restore' -d '{}' +curl -i -X POST 'http://localhost:3080/v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore' -d '{}' -POST /v2/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4/snapshots/37665774-a772-4b41-bd7c-c56b29c0da60/restore HTTP/1.1 +POST /v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore HTTP/1.1 {} @@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/snapshots/{snapshot_id}/restore { "filename": "test.gns3", "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph58tcopa/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4", - "project_id": "9ec22e91-7e4d-4537-83a5-c9e783c5cfe4", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo86kamvs/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f", + "project_id": "130d7a29-9b49-4688-8cf2-074a0434eb7f", "status": "opened" } diff --git a/docs/api/examples/controller_put_projectsprojectid.txt b/docs/api/examples/controller_put_projectsprojectid.txt new file mode 100644 index 00000000..199165b5 --- /dev/null +++ b/docs/api/examples/controller_put_projectsprojectid.txt @@ -0,0 +1,22 @@ +curl -i -X PUT 'http://localhost:3080/v2/projects/10010203-0405-0607-0809-0a0b0c0d0e0f' -d '{"name": "test2"}' + +PUT /v2/projects/10010203-0405-0607-0809-0a0b0c0d0e0f HTTP/1.1 +{ + "name": "test2" +} + + +HTTP/1.1 200 +CONTENT-LENGTH: 256 +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} + +{ + "filename": "test.gns3", + "name": "test2", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphkjv57k4/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 1df8966f..8f45faa2 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/9acee488-d70d-461c-aaa8-7ec372fe8da1/drawings/8e03860f-98bc-4325-9908-83aa773229bd' -d '{"x": 42}' +curl -i -X PUT 'http://localhost:3080/v2/projects/9f19ae38-fc03-43d0-97a4-99f3780c27a4/drawings/29de97b8-f1c9-4af3-9e39-1eade9566912' -d '{"x": 42}' -PUT /v2/projects/9acee488-d70d-461c-aaa8-7ec372fe8da1/drawings/8e03860f-98bc-4325-9908-83aa773229bd HTTP/1.1 +PUT /v2/projects/9f19ae38-fc03-43d0-97a4-99f3780c27a4/drawings/29de97b8-f1c9-4af3-9e39-1eade9566912 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": "8e03860f-98bc-4325-9908-83aa773229bd", - "project_id": "9acee488-d70d-461c-aaa8-7ec372fe8da1", + "drawing_id": "29de97b8-f1c9-4af3-9e39-1eade9566912", + "project_id": "9f19ae38-fc03-43d0-97a4-99f3780c27a4", "rotation": 0, "svg": "", "x": 42, diff --git a/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt b/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt index 7d5d680d..d869b956 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/325eb479-c038-4ab3-8fbc-df2195ea8ac9/nodes/9f6d26de-6d57-42cf-88fe-abd956544813' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}' +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"}}' -PUT /v2/projects/325eb479-c038-4ab3-8fbc-df2195ea8ac9/nodes/9f6d26de-6d57-42cf-88fe-abd956544813 HTTP/1.1 +PUT /v2/projects/bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b/nodes/886d119e-2966-4f46-8f8a-05bcff37154a HTTP/1.1 { "compute_id": "example.com", "name": "test", @@ -34,9 +34,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id} }, "name": "test", "node_directory": null, - "node_id": "9f6d26de-6d57-42cf-88fe-abd956544813", + "node_id": "886d119e-2966-4f46-8f8a-05bcff37154a", "node_type": "vpcs", - "project_id": "325eb479-c038-4ab3-8fbc-df2195ea8ac9", + "project_id": "bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b", "properties": {}, "status": "stopped", "symbol": ":/symbols/computer.svg", diff --git a/docs/api/notifications/drawing.created.json b/docs/api/notifications/drawing.created.json index a4f96712..4b443402 100644 --- a/docs/api/notifications/drawing.created.json +++ b/docs/api/notifications/drawing.created.json @@ -1,6 +1,6 @@ { - "drawing_id": "b717be1b-f3a8-4d7f-8b0f-c64c790f764c", - "project_id": "ac9ddc94-514a-4517-821e-39e7c958591b", + "drawing_id": "9fcf65e4-ffd7-47ad-af23-f161d5bbfa11", + "project_id": "21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4", "rotation": 0, "svg": "", "x": 10, diff --git a/docs/api/notifications/drawing.deleted.json b/docs/api/notifications/drawing.deleted.json index cbcb15eb..b9b0569f 100644 --- a/docs/api/notifications/drawing.deleted.json +++ b/docs/api/notifications/drawing.deleted.json @@ -1,6 +1,6 @@ { - "drawing_id": "cc8650a6-06cc-4ae2-a68f-67ba8a4dbced", - "project_id": "2c27794e-287e-489a-b4b8-0d58780088dd", + "drawing_id": "751256c7-86de-4bca-a224-cd46bdc0a289", + "project_id": "8f835819-7610-431f-ac63-f7aac942da0f", "rotation": 0, "svg": "", "x": 0, diff --git a/docs/api/notifications/drawing.updated.json b/docs/api/notifications/drawing.updated.json index b42b3ddc..eba69855 100644 --- a/docs/api/notifications/drawing.updated.json +++ b/docs/api/notifications/drawing.updated.json @@ -1,6 +1,6 @@ { - "drawing_id": "8e03860f-98bc-4325-9908-83aa773229bd", - "project_id": "9acee488-d70d-461c-aaa8-7ec372fe8da1", + "drawing_id": "29de97b8-f1c9-4af3-9e39-1eade9566912", + "project_id": "9f19ae38-fc03-43d0-97a4-99f3780c27a4", "rotation": 0, "x": 42, "y": 20, diff --git a/docs/api/notifications/link.created.json b/docs/api/notifications/link.created.json index df351f43..4527aa93 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": "e1904198-89c6-4e40-98e9-dee68a74314f", + "link_id": "99a8611f-f802-4a23-9d6f-3f5c1fdc6efa", "nodes": [ { "adapter_number": 0, @@ -13,7 +13,7 @@ "x": -10, "y": -10 }, - "node_id": "0295bcda-195e-49ec-8e09-d5cda9537656", + "node_id": "3d057b55-d638-4d38-9d22-a2f6f56d1799", "port_number": 3 }, { @@ -25,9 +25,9 @@ "x": -10, "y": -10 }, - "node_id": "3edda52d-d1e9-457e-adb0-b96cc431191c", + "node_id": "de315007-d0cf-499e-93b4-cf7ed94a14e6", "port_number": 4 } ], - "project_id": "ff74612a-3716-4a1b-94e3-611cfec47404" + "project_id": "3863fae6-89f2-44b8-8440-130c111f5237" } \ No newline at end of file diff --git a/docs/api/notifications/link.deleted.json b/docs/api/notifications/link.deleted.json index 733445e6..fd63ec75 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": "36dc6f8d-c5e3-4b89-b356-0d10ccfbd313", + "link_id": "cbca8122-7162-4ce0-a2ad-82075775bada", "nodes": [], - "project_id": "78c7348f-eb8d-4fbb-a407-8a7dfd4161a0" + "project_id": "15ec7567-33b4-4648-876a-b7128c33cb07" } \ No newline at end of file diff --git a/docs/api/notifications/link.updated.json b/docs/api/notifications/link.updated.json index 3632644a..9101b495 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": "d6bd065b-ce1e-42e4-83ac-ee156bc8ffc8", + "link_id": "31e0db7c-41ab-4e05-856e-423b1e8a0446", "nodes": [ { "adapter_number": 0, @@ -11,7 +11,7 @@ "x": 64, "y": 0 }, - "node_id": "b16d98dd-5931-489a-adab-e0bb0c76bac8", + "node_id": "d4ff8824-cdd7-42dd-b2ca-e036cf1c0c75", "port_number": 3 }, { @@ -23,9 +23,9 @@ "x": -10, "y": -10 }, - "node_id": "4d7deda6-218c-4aa2-919e-3f0e45eeab3d", + "node_id": "716ea0af-7552-4d48-af8c-6c15db93138f", "port_number": 4 } ], - "project_id": "e275a44e-0981-46eb-89a8-969f2304c5e0" + "project_id": "2d2b17e8-6934-419a-93e6-096c08464b82" } \ No newline at end of file diff --git a/docs/api/notifications/node.deleted.json b/docs/api/notifications/node.deleted.json index b5764850..6cab182c 100644 --- a/docs/api/notifications/node.deleted.json +++ b/docs/api/notifications/node.deleted.json @@ -14,9 +14,9 @@ }, "name": "test", "node_directory": null, - "node_id": "c838cd10-6930-4306-9a3b-7318563de413", + "node_id": "fa1fc0e2-c4bd-4f0e-ad65-36a71111f381", "node_type": "vpcs", - "project_id": "98a9042c-e068-469c-bdbf-73f7d9358ec9", + "project_id": "3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1", "properties": {}, "status": "stopped", "symbol": ":/symbols/computer.svg", diff --git a/docs/api/notifications/node.updated.json b/docs/api/notifications/node.updated.json index a99793b7..ed35e7b2 100644 --- a/docs/api/notifications/node.updated.json +++ b/docs/api/notifications/node.updated.json @@ -14,9 +14,9 @@ }, "name": "test", "node_directory": null, - "node_id": "32174e7e-c566-4f0b-aa4b-c9b983c02305", + "node_id": "92be25c6-878a-487a-86e3-80591c20780e", "node_type": "vpcs", - "project_id": "168cae40-9e3b-46fa-8954-e622068c734b", + "project_id": "aa6eca4a-1d69-4fb0-aa10-3bb3f5d24ca0", "properties": { "startup_config": "test.cfg" }, diff --git a/docs/api/notifications/project.closed.json b/docs/api/notifications/project.closed.json index 2d730ffc..95520530 100644 --- a/docs/api/notifications/project.closed.json +++ b/docs/api/notifications/project.closed.json @@ -1,7 +1,7 @@ { - "filename": "test.gns3", - "name": "test", - "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph58tcopa/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4", - "project_id": "9ec22e91-7e4d-4537-83a5-c9e783c5cfe4", + "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", "status": "closed" } \ No newline at end of file diff --git a/docs/api/notifications/project.updated.json b/docs/api/notifications/project.updated.json new file mode 100644 index 00000000..75f333f9 --- /dev/null +++ b/docs/api/notifications/project.updated.json @@ -0,0 +1,7 @@ +{ + "filename": "test.gns3", + "name": "test2", + "path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphkjv57k4/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/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 6ea1ccb1..87c60be0 100644 --- a/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/atm_switch/projectsprojectidatmrelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on an ATM switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 227fffd5..dfff681b 100644 --- a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to an ATM switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID @@ -27,8 +27,8 @@ Remove a NIO from an ATM switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 4bf42201..4ed374af 100644 --- a/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/atm_switch/projectsprojectidatmswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on an ATM switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 3ec5a74a..5649d9bb 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a cloud instance Parameters ********** -- **port_number**: Port on the cloud - **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID @@ -27,8 +27,8 @@ Remove a NIO from a cloud instance Parameters ********** -- **port_number**: Port on the cloud - **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 7fe06741..1aa9be85 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a cloud instance Parameters ********** -- **port_number**: Port on the cloud - **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index af17cf73..5752f8f9 100644 --- a/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/cloud/projectsprojectidcloudnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a cloud instance Parameters ********** -- **port_number**: Port on the cloud - **adapter_number**: Adapter on the cloud (always 0) +- **port_number**: Port on the cloud - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 0423484a..f6a83c2e 100644 --- a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a Docker container Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID @@ -33,8 +33,8 @@ Remove a NIO from a Docker container Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index c9044946..4b5a0ddc 100644 --- a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a Docker container instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 1f3ef0bf..13b3de14 100644 --- a/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/docker/projectsprojectiddockernodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a Docker container instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 72fafc5a..ef29e1dd 100644 --- a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a Dynamips VM instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter where the nio should be added +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID @@ -27,8 +27,8 @@ Remove a NIO from a Dynamips VM instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter from where the nio should be removed +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 0a133f6c..a10a390a 100644 --- a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a Dynamips VM instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index efe3932c..7cbed296 100644 --- a/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/dynamips_vm/projectsprojectiddynamipsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a Dynamips VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index ad983168..d08d0df7 100644 --- a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to an Ethernet hub instance Parameters ********** -- **port_number**: Port on the hub - **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID @@ -27,8 +27,8 @@ Remove a NIO from an Ethernet hub instance Parameters ********** -- **port_number**: Port on the hub - **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 3c5d2719..b137f971 100644 --- a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on an Ethernet hub instance Parameters ********** -- **port_number**: Port on the hub - **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index ab8ebf39..542a126f 100644 --- a/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/ethernet_hub/projectsprojectidethernethubnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on an Ethernet hub instance Parameters ********** -- **port_number**: Port on the hub - **adapter_number**: Adapter on the hub (always 0) +- **port_number**: Port on the hub - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 943652cf..9855a5e7 100644 --- a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to an Ethernet switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID @@ -27,8 +27,8 @@ Remove a NIO from an Ethernet switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 4c6be111..5418ac97 100644 --- a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on an Ethernet switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index f86434d1..84d6ab1d 100644 --- a/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/ethernet_switch/projectsprojectidethernetswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on an Ethernet switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index fd380d47..39480104 100644 --- a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a Frame Relay switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID @@ -27,8 +27,8 @@ Remove a NIO from a Frame Relay switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 68402f85..5032be66 100644 --- a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a Frame Relay switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index e23c3ff8..b79a1bb9 100644 --- a/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/frame_relay_switch/projectsprojectidframerelayswitchnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a Frame Relay switch instance Parameters ********** -- **port_number**: Port on the switch - **adapter_number**: Adapter on the switch (always 0) +- **port_number**: Port on the switch - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 7b327183..2b136374 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a IOU instance Parameters ********** -- **port_number**: Port where the nio should be added - **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 @@ -33,8 +33,8 @@ Remove a NIO from a IOU instance Parameters ********** -- **port_number**: Port from where the nio should be removed - **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 diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 63e76740..254369fd 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on an IOU VM instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index f55aa254..8eb1ee77 100644 --- a/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/iou/projectsprojectidiounodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on an IOU VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/project/projectsprojectid.rst b/docs/api/v2/compute/project/projectsprojectid.rst index 2a56f3a2..13d31999 100644 --- a/docs/api/v2/compute/project/projectsprojectid.rst +++ b/docs/api/v2/compute/project/projectsprojectid.rst @@ -36,50 +36,6 @@ Sample session .. literalinclude:: ../../../examples/compute_get_projectsprojectid.txt -PUT /v2/compute/projects/**{project_id}** -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Update a project - -Parameters -********** -- **project_id**: Project UUID - -Response status codes -********************** -- **200**: Project updated -- **403**: Forbidden to update this project -- **404**: The project doesn't exist - -Input -******* -.. raw:: html - - - - - -
Name Mandatory Type Description
name ['string', 'null'] Project name
path ['string', 'null'] Path of the project on the server (work only with --local)
- -Output -******* -.. raw:: html - - - - - - - - -
Name Mandatory Type Description
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
project_id string Project UUID
status enum Possible values: opened, closed
- -Sample session -*************** - - -.. literalinclude:: ../../../examples/compute_put_projectsprojectid.txt - - DELETE /v2/compute/projects/**{project_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Delete a project from disk diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 67a81f72..6cb940bd 100644 --- a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a Qemu VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **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 @@ -33,8 +33,8 @@ Remove a NIO from a Qemu VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **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 diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 9da8374a..a4a668e9 100644 --- a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a Qemu VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 8c2fa998..98c07b95 100644 --- a/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/qemu/projectsprojectidqemunodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a Qemu VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 8bbbfea8..e1e4d187 100644 --- a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a VirtualBox VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **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 @@ -33,8 +33,8 @@ Remove a NIO from a VirtualBox VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **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 diff --git a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index 3d62c787..4cd31e4b 100644 --- a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a VirtualBox VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index 94f70431..59f935e0 100644 --- a/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/virtualbox/projectsprojectidvirtualboxnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a VirtualBox VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst index 317cef9d..ff777a36 100644 --- a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a VMware VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **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 @@ -27,8 +27,8 @@ Remove a NIO from a VMware VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **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 diff --git a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index c662e206..c5f206e8 100644 --- a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a VMware VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index f64b108c..477ac367 100644 --- a/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/vmware/projectsprojectidvmwarenodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a VMware VM instance Parameters ********** -- **port_number**: Port on the adapter (always 0) - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter (always 0) - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst index d4c6c174..b97de8cf 100644 --- a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst +++ b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdnio.rst @@ -9,8 +9,8 @@ Add a NIO to a VPCS instance Parameters ********** -- **port_number**: Port where the nio should be added - **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 @@ -33,8 +33,8 @@ Remove a NIO from a VPCS instance Parameters ********** -- **port_number**: Port from where the nio should be removed - **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 diff --git a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst index bf07aeba..51a95a1f 100644 --- a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst +++ b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstartcapture.rst @@ -9,8 +9,8 @@ Start a packet capture on a VPCS instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter to start a packet capture +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst index f43562c8..16eb1007 100644 --- a/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst +++ b/docs/api/v2/compute/vpcs/projectsprojectidvpcsnodesnodeidadaptersadapternumberdportsportnumberdstopcapture.rst @@ -9,8 +9,8 @@ Stop a packet capture on a VPCS instance Parameters ********** -- **port_number**: Port on the adapter - **adapter_number**: Adapter to stop a packet capture +- **port_number**: Port on the adapter - **project_id**: Project UUID - **node_id**: Node UUID diff --git a/docs/api/v2/controller/drawing/projectsprojectiddrawingsdrawingid.rst b/docs/api/v2/controller/drawing/projectsprojectiddrawingsdrawingid.rst index 956f0a76..749b099f 100644 --- a/docs/api/v2/controller/drawing/projectsprojectiddrawingsdrawingid.rst +++ b/docs/api/v2/controller/drawing/projectsprojectiddrawingsdrawingid.rst @@ -9,8 +9,8 @@ Create a new drawing instance Parameters ********** -- **drawing_id**: Drawing UUID - **project_id**: Project UUID +- **drawing_id**: Drawing UUID Response status codes ********************** @@ -60,8 +60,8 @@ Delete a drawing instance Parameters ********** -- **drawing_id**: Drawing UUID - **project_id**: Project UUID +- **drawing_id**: Drawing UUID Response status codes ********************** diff --git a/docs/api/v2/controller/project/projectsprojectid.rst b/docs/api/v2/controller/project/projectsprojectid.rst index cfe1ed22..f80978d4 100644 --- a/docs/api/v2/controller/project/projectsprojectid.rst +++ b/docs/api/v2/controller/project/projectsprojectid.rst @@ -23,6 +23,46 @@ Sample session .. literalinclude:: ../../../examples/controller_get_projectsprojectid.txt +PUT /v2/projects/**{project_id}** +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Update a project instance + +Response status codes +********************** +- **200**: Node updated +- **400**: Invalid request +- **404**: Instance doesn't exist + +Input +******* +.. raw:: html + + + + + +
Name Mandatory Type Description
name ['string', 'null'] Project name
path ['string', 'null'] Path of the project on the server (work only with --local)
+ +Output +******* +.. raw:: html + + + + + + + + +
Name Mandatory Type Description
filename ['string', 'null'] Project filename
name ['string', 'null'] Project name
path ['string', 'null'] Project directory
project_id string Project UUID
status enum Possible values: opened, closed
+ +Sample session +*************** + + +.. literalinclude:: ../../../examples/controller_put_projectsprojectid.txt + + DELETE /v2/projects/**{project_id}** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Delete a project from disk diff --git a/docs/gns3_file.json b/docs/gns3_file.json index 37a37799..e3e511ae 100644 --- a/docs/gns3_file.json +++ b/docs/gns3_file.json @@ -1,48 +1,263 @@ { + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "required": [ + "project_id", + "type", + "revision", + "version", + "name", + "topology" + ], "properties": { - "auto_start": { - "type": "boolean", - "description": "Start the topology when opened" - }, - "revision": { - "type": "integer", - "description": "Version of the .gns3 specification." - }, - "type": { - "enum": [ - "topology" - ], - "description": "Type of file. It's always topology" - }, - "project_id": { - "maxLength": 36, - "minLength": 36, - "type": "string", - "description": "Project UUID", - "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}$" - }, - "version": { - "type": "string", - "description": "Version of the GNS3 software which have update the file for the last time" - }, "topology": { + "required": [ + "nodes", + "links", + "drawings", + "computes" + ], "properties": { + "computes": { + "items": { + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "required": [ + "compute_id", + "protocol", + "host", + "port", + "name" + ], + "properties": { + "protocol": { + "enum": [ + "http", + "https" + ], + "description": "Server protocol" + }, + "port": { + "description": "Server port", + "type": "integer" + }, + "compute_id": { + "description": "Server identifier", + "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" + }, + "version": { + "description": "Version of the GNS3 remote compute server", + "type": [ + "string", + "null" + ] + }, + "user": { + "description": "User for authentication", + "type": [ + "string", + "null" + ] + }, + "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", + "type": "integer" + }, + "x": { + "description": "X property", + "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": { - "properties": { - "type": "object", - "description": "Properties specific to an emulator" - }, - "console": { - "type": [ - "integer", - "null" - ], - "description": "Console TCP port", - "maximum": 65535, - "minimum": 1 - }, "node_type": { "enum": [ "cloud", @@ -62,30 +277,21 @@ }, "symbol": { "minLength": 1, - "type": "string", - "description": "Symbol of the node" - }, - "project_id": { - "maxLength": 36, - "minLength": 36, - "type": "string", - "description": "Project UUID", - "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}$" + "description": "Symbol of the node", + "type": "string" }, "x": { - "type": "integer", - "description": "X position of the node" + "description": "X position of the node", + "type": "integer" }, - "y": { - "type": "integer", - "description": "Y position of the node" - }, - "node_directory": { + "console": { + "minimum": 1, + "maximum": 65535, + "description": "Console TCP port", "type": [ - "null", - "string" - ], - "description": "Working directory of the node. Read only" + "integer", + "null" + ] }, "console_type": { "enum": [ @@ -96,75 +302,10 @@ ], "description": "Console type" }, - "width": { - "type": "integer", - "description": "Width of the node" - }, - "z": { - "type": "integer", - "description": "Z position of the node" - }, - "compute_id": { - "type": "string", - "description": "Compute identifier" - }, - "console_host": { - "minLength": 1, - "type": "string", - "description": "Console host" - }, - "height": { - "type": "integer", - "description": "Height of the node" - }, "name": { "minLength": 1, - "type": "string", - "description": "Node name" - }, - "command_line": { - "type": [ - "null", - "string" - ], - "description": "Command line use to start the node" - }, - "label": { - "properties": { - "text": { - "type": "string" - }, - "rotation": { - "type": "integer", - "description": "Rotation of the label" - }, - "y": { - "type": "integer", - "description": "Relative Y position of the label" - }, - "style": { - "type": "string", - "description": "SVG style attribute" - }, - "x": { - "type": "integer", - "description": "Relative X position of the label" - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "text", - "x", - "y" - ] - }, - "node_id": { - "maxLength": 36, - "minLength": 36, - "type": "string", - "description": "Node UUID", - "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}$" + "description": "Node name", + "type": "string" }, "status": { "enum": [ @@ -173,275 +314,134 @@ "suspended" ], "description": "Status of the node" - } - }, - "type": "object", - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "A node object" - }, - "type": "array", - "description": "Nodes elements" - }, - "drawings": { - "items": { - "properties": { - "svg": { - "type": "string", - "description": "SVG content of the drawing" }, "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, - "type": "string", "description": "Project UUID", - "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}$" + "type": "string" }, - "x": { - "type": "integer", - "description": "X property" - }, - "drawing_id": { + "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, - "type": "string", - "description": "Drawing UUID", - "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}$" + "description": "Node UUID", + "type": "string" }, - "rotation": { - "type": "integer", - "description": "Rotation of the element", - "maximum": 360, - "minimum": 0 + "console_host": { + "minLength": 1, + "description": "Console host", + "type": "string" }, - "y": { - "type": "integer", - "description": "Y property" - }, - "z": { - "type": "integer", - "description": "Z property" - } - }, - "additionalProperties": false, - "type": "object", - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "An drawing object" - }, - "type": "array", - "description": "Drawings elements" - }, - "links": { - "items": { - "properties": { - "nodes": { - "items": { - "properties": { - "port_number": { - "type": "integer", - "description": "Port number" - }, - "adapter_number": { - "type": "integer", - "description": "Adapter number" - }, - "node_id": { - "maxLength": 36, - "minLength": 36, - "type": "string", - "description": "Node UUID", - "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}$" - }, - "label": { - "properties": { - "text": { - "type": "string" - }, - "rotation": { - "type": "integer", - "description": "Rotation of the label" - }, - "y": { - "type": "integer", - "description": "Relative Y position of the label" - }, - "style": { - "type": "string", - "description": "SVG style attribute" - }, - "x": { - "type": "integer", - "description": "Relative X position of the label" - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "text", - "x", - "y" - ] - } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "node_id", - "adapter_number", - "port_number" - ] - }, - "type": "array", - "description": "List of the VMS" - }, - "project_id": { - "maxLength": 36, - "minLength": 36, - "type": "string", - "description": "Project UUID", - "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}$" - }, - "capture_file_name": { - "type": [ - "string", - "null" - ], - "description": "Read only property. The name of the capture file if capture is running" - }, - "capture_file_path": { - "type": [ - "string", - "null" - ], - "description": "Read only property. The full path of the capture file if capture is running" - }, - "link_id": { - "maxLength": 36, - "minLength": 36, - "type": "string", - "description": "Link UUID", - "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}$" - }, - "capturing": { - "type": "boolean", - "description": "Read only property. True if a capture running on the link" - } - }, - "type": "object", - "$schema": "http://json-schema.org/draft-04/schema#", - "additionalProperties": false, - "required": [ - "nodes" - ], - "description": "A link object" - }, - "type": "array", - "description": "Link elements" - }, - "computes": { - "items": { - "properties": { - "version": { - "type": [ - "string", - "null" - ], - "description": "Version of the GNS3 remote compute server" + "height": { + "description": "Height of the node", + "type": "integer" }, "compute_id": { - "type": "string", - "description": "Server identifier" + "description": "Compute identifier", + "type": "string" }, - "host": { - "type": "string", - "description": "Server host" + "width": { + "description": "Width of the node", + "type": "integer" }, - "name": { - "type": "string", - "description": "Server name" - }, - "cpu_usage_percent": { + "node_directory": { + "description": "Working directory of the node. Read only", "type": [ - "number", - "null" - ], - "description": "CPU usage of the compute. Read only", - "maximum": 100, - "minimum": 0 + "null", + "string" + ] }, - "port": { - "type": "integer", - "description": "Server port" + "z": { + "description": "Z position of the node", + "type": "integer" }, - "memory_usage_percent": { + "y": { + "description": "Y position of the node", + "type": "integer" + }, + "command_line": { + "description": "Command line use to start the node", "type": [ - "number", - "null" - ], - "description": "RAM usage of the compute. Read only", - "maximum": 100, - "minimum": 0 + "null", + "string" + ] }, - "connected": { - "type": "boolean", - "description": "Whether the controller is connected to the compute server or not" + "properties": { + "description": "Properties specific to an emulator", + "type": "object" }, - "user": { - "type": [ - "string", - "null" + "label": { + "required": [ + "text", + "x", + "y" ], - "description": "User for authentication" - }, - "protocol": { - "enum": [ - "http", - "https" - ], - "description": "Server protocol" + "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" } }, - "type": "object", - "required": [ - "compute_id", - "protocol", - "host", - "port", - "name" - ], - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-04/schema#", - "description": "Request validation to a GNS3 compute object instance" + "description": "A node object" }, - "type": "array", - "description": "Computes servers" + "description": "Nodes elements", + "type": "array" } }, "additionalProperties": false, - "type": "object", - "required": [ - "nodes", - "links", - "drawings", - "computes" + "description": "The topology content", + "type": "object" + }, + "version": { + "description": "Version of the GNS3 software which have update the file for the last time", + "type": "string" + }, + "auto_start": { + "description": "Start the topology when opened", + "type": "boolean" + }, + "type": { + "enum": [ + "topology" ], - "description": "The topology content" + "description": "Type of file. It's always topology" + }, + "revision": { + "description": "Version of the .gns3 specification.", + "type": "integer" }, "name": { - "type": "string", - "description": "Name of the project" + "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", + "type": "string" } }, - "type": "object", - "$schema": "http://json-schema.org/draft-04/schema#", - "additionalProperties": false, - "required": [ - "project_id", - "type", - "revision", - "version", - "name", - "topology" - ], "description": "The topology" } \ No newline at end of file diff --git a/tests/handlers/api/compute/test_project.py b/tests/handlers/api/compute/test_project.py index 0368938f..25d3d8c2 100644 --- a/tests/handlers/api/compute/test_project.py +++ b/tests/handlers/api/compute/test_project.py @@ -86,34 +86,6 @@ def test_list_projects(http_compute): assert "51010203-0405-0607-0809-0a0b0c0d0e0f" in [p["project_id"] for p in response.json] -def test_update_path_project(http_compute, tmpdir): - - os.makedirs(str(tmpdir / "a")) - os.makedirs(str(tmpdir / "b")) - - with patch("gns3server.compute.project.Project.is_local", return_value=True): - response = http_compute.post("/projects", {"name": "first_name", "path": str(tmpdir / "a"), "project_id": "80010203-0405-0607-0809-0a0b0c0d0e0b"}) - assert response.status == 201 - assert response.json["name"] == "first_name" - query = {"name": "second_name", "path": str(tmpdir / "b")} - response = http_compute.put("/projects/{project_id}".format(project_id=response.json["project_id"]), query, example=True) - assert response.status == 200 - assert response.json["name"] == "second_name" - - assert os.path.exists(str(tmpdir / "a")) - assert os.path.exists(str(tmpdir / "b")) - - -def test_update_path_project_non_local(http_compute, tmpdir): - - with patch("gns3server.compute.project.Project.is_local", return_value=False): - response = http_compute.post("/projects", {"name": "first_name", "project_id": "90010203-0405-0607-0809-0a0b0c0d0e0b"}) - assert response.status == 201 - query = {"name": "second_name", "path": str(tmpdir)} - response = http_compute.put("/projects/{project_id}".format(project_id=response.json["project_id"]), query, example=True) - assert response.status == 403 - - def test_delete_project(http_compute, project): with asyncio_patch("gns3server.compute.project.Project.delete", return_value=True) as mock: response = http_compute.delete("/projects/{project_id}".format(project_id=project.id), example=True)