mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-24 17:55:15 +00:00
Compare commits
618 Commits
Author | SHA1 | Date | |
---|---|---|---|
6ac595a38c | |||
f6b34e2434 | |||
74dd212def | |||
462238a335 | |||
2b1fab6742 | |||
68725778e8 | |||
8f6d24ae5e | |||
cfd74a8164 | |||
79d376652c | |||
c38dd004b8 | |||
fb2dac6ef1 | |||
e01931269f | |||
c2420318ba | |||
fd3ac65eb5 | |||
20772a310b | |||
2c73d40551 | |||
be5d543f20 | |||
3a8ca1071e | |||
7df645f742 | |||
3ea5df7462 | |||
5555662b2c | |||
4ea3690951 | |||
15babb137d | |||
eccee6b629 | |||
c91999c532 | |||
f3596767c1 | |||
ef95ba1ed8 | |||
79b4926cad | |||
dc798dafd0 | |||
4c900ce639 | |||
87e2326363 | |||
41f12457e7 | |||
29563ed7bc | |||
286112ced4 | |||
6837cc8e23 | |||
5631e1bd86 | |||
4bd9556767 | |||
2bbdbeaa82 | |||
056ae41d56 | |||
4cd164fc24 | |||
896d279ded | |||
d2b0321419 | |||
14416afbba | |||
64139387c4 | |||
77eae35778 | |||
9fbe23e09b | |||
5fd04e1f9e | |||
f0af7d3c7a | |||
cf10f02a8d | |||
ac8bd3fec4 | |||
b7bd73e8c9 | |||
c90df05e8c | |||
ee50790ab5 | |||
37f972dea1 | |||
da5e3d0e54 | |||
5d12a91268 | |||
ba148df159 | |||
5b1ec3bec2 | |||
84a2f8b4a3 | |||
803064d5cf | |||
2f0e2260ab | |||
f06c00fdb8 | |||
b8909c54cf | |||
de2dad20d5 | |||
a17ae316c7 | |||
83b72d762c | |||
1412462229 | |||
cfe834afc4 | |||
84c0a17572 | |||
9bbb32400d | |||
0910712657 | |||
de526482e3 | |||
62377315dd | |||
436543d8b8 | |||
67fc563d81 | |||
f0edf799b7 | |||
f1fe7246e7 | |||
9c6ee97ff2 | |||
0bbda4a5d7 | |||
bc5b5969eb | |||
0573c3f7d5 | |||
a7be4681d5 | |||
e40569a46f | |||
d772b6fbd7 | |||
4b891070d2 | |||
5ae456d6e2 | |||
75d5f6507d | |||
6e7f6a94ec | |||
1d70a18b11 | |||
d7c60db2b9 | |||
3ce3f925ae | |||
0afd7b78b7 | |||
2d86a7fdcf | |||
43afce740d | |||
be0fee99e7 | |||
947dcf1406 | |||
6a259c7e06 | |||
4bbd8938ab | |||
f216422d0f | |||
4624c7433c | |||
07b982d4db | |||
483370b756 | |||
662c8788c2 | |||
45471fc865 | |||
238421c415 | |||
0a08ea05d6 | |||
ff61f79a88 | |||
9fc23f07f1 | |||
03e31a2cb9 | |||
7065988087 | |||
5fdd33fe3b | |||
3bff094238 | |||
e0c5fdcf1c | |||
919355abd8 | |||
96f3cb0445 | |||
36d2e80d0a | |||
edae834e0e | |||
2c8b8540cd | |||
d121c201e4 | |||
bbc1505274 | |||
ffe6448534 | |||
19e6d956df | |||
72fe5d3489 | |||
b7bf97039c | |||
da1cd9a3e7 | |||
0eafb6f06c | |||
042a69eecf | |||
1885fe62a6 | |||
e481ffa94c | |||
937bbf0131 | |||
d58a6ccda9 | |||
84fb108abb | |||
f93e443548 | |||
8352ff02a1 | |||
5289c714f4 | |||
7fd520c08b | |||
4455499e00 | |||
763f258465 | |||
134fed8fc5 | |||
c01bb2436e | |||
9511c34b4f | |||
9255dc07b7 | |||
fc8b4c3216 | |||
21b99ad9f9 | |||
6cad685a08 | |||
bfabf3ddc8 | |||
9231b8e991 | |||
147bb8758a | |||
ab38edf7ca | |||
897455d5e9 | |||
46910a183e | |||
5bb1abb2a9 | |||
cde28c849e | |||
324962def5 | |||
fe9e824f1c | |||
a53a972135 | |||
22fcfffce7 | |||
faae248487 | |||
8f7be87b1e | |||
39db35c3ff | |||
0226bb663f | |||
fa76b89731 | |||
f0fad5289c | |||
8eab94f01e | |||
d447a04c6a | |||
f358cb45a2 | |||
3e3e7b93ae | |||
1c2a56ee8e | |||
7777407c4b | |||
2842904769 | |||
5de27a95f9 | |||
f82527e253 | |||
938696032c | |||
4d8cf8460e | |||
796ebf7210 | |||
a4023c0298 | |||
9694850465 | |||
9e81994adc | |||
ac085126fc | |||
12735ff36e | |||
017202d151 | |||
0613efa297 | |||
e710eff22e | |||
3ca4edef93 | |||
431bd789cb | |||
937ffc7b73 | |||
16c2305b33 | |||
225e4f7528 | |||
6b8e93f847 | |||
db95cb5c46 | |||
45af721164 | |||
0c3a2c660a | |||
d6f63d3b7d | |||
7d90a73ed2 | |||
fc6b220c7c | |||
7e40eb02e6 | |||
11af6f4f82 | |||
0be973f2c5 | |||
c96bd5f2a9 | |||
68eca6c111 | |||
814fd1fcfb | |||
0f7037bb32 | |||
e50eae19e6 | |||
e50acf811c | |||
f357879186 | |||
fb3b6b62f5 | |||
786f9c87c9 | |||
9bdc0b78eb | |||
fec3694710 | |||
19b035d7e4 | |||
ce557ecd23 | |||
eff6a9154d | |||
e6831c25e2 | |||
d58bcddbcc | |||
94a262cd46 | |||
9b499dc51e | |||
88ffd43c97 | |||
3300e9ec48 | |||
487e99bea5 | |||
0f85fbd5f2 | |||
b5ab53bbe9 | |||
14f6bd60fb | |||
e557ccd078 | |||
bc8a319142 | |||
ff4fc5eb8b | |||
f68c1f0bde | |||
08c35f5558 | |||
7c4c03cf17 | |||
b1b2bbd581 | |||
da7074ea74 | |||
73d5066392 | |||
44307b43b9 | |||
dd63ca6ef1 | |||
2977b1059e | |||
3b70b4f217 | |||
c12413e0ce | |||
bda1812811 | |||
c9bdd76922 | |||
96eceed8ba | |||
11197e8dee | |||
b5cb625169 | |||
b745397a3a | |||
45591aa74b | |||
c0abe0edfd | |||
b841a0f57b | |||
8be1e77a2e | |||
3dccfbb852 | |||
2c62b1eeb8 | |||
7c7662f1b6 | |||
3d52e18fa5 | |||
ee533943c8 | |||
fd0e8f89db | |||
b98d4cb042 | |||
febf0f7839 | |||
9cd3231de3 | |||
234f199558 | |||
13deecea4e | |||
27269fb13a | |||
91ec61b88d | |||
1f2ce48fc8 | |||
9bf4c22a50 | |||
50aa198ba7 | |||
d159cbcc6d | |||
d99c050705 | |||
7e91a5cb11 | |||
05df0a9bb6 | |||
26d49f19c1 | |||
e1a7efad60 | |||
08956e438c | |||
7a4c01e737 | |||
ca4d09ea40 | |||
e175650fb0 | |||
5f88db93ff | |||
e0a2553be4 | |||
b905760635 | |||
f9bc745ddb | |||
ead8a6caa2 | |||
7fee90805b | |||
9d2f4168ff | |||
5bf6011429 | |||
fea1e3ba61 | |||
71d4c0a13a | |||
818174824b | |||
fe7bcae6a1 | |||
758a427a76 | |||
543b423e03 | |||
66959ee4e9 | |||
68b7f81601 | |||
d8317e8128 | |||
22f9effede | |||
224708e451 | |||
c4d7a0b8fc | |||
8ec11619cd | |||
e77445e860 | |||
bf154049d2 | |||
5b4e668eb5 | |||
c5fa699b9e | |||
5fab48ba75 | |||
2739483751 | |||
b66f7daa28 | |||
deb97f8ec0 | |||
e830356e62 | |||
c0b09ae76a | |||
1f0fe6d304 | |||
5898b86dfc | |||
fa769cd41d | |||
6b5822905c | |||
379c216109 | |||
d79fb231d3 | |||
d28fad223f | |||
ce3276d374 | |||
abfb51baa8 | |||
04022677bd | |||
4eb03b5a99 | |||
c8f37381f4 | |||
5a410155f7 | |||
4c3bfde97e | |||
852d8e411e | |||
c847755f1b | |||
00da15e4af | |||
b456a363ca | |||
bc613e9fd8 | |||
7422d06c1d | |||
5daff17911 | |||
8296621320 | |||
03e9eac55b | |||
4f78efa0c8 | |||
51dbe59e99 | |||
027d3687a7 | |||
f55398fe99 | |||
679774430a | |||
32252e5193 | |||
42ff398f05 | |||
116135b9dc | |||
85ebac7eb3 | |||
6949976d12 | |||
d1de665939 | |||
f151181409 | |||
07395c9cf2 | |||
3132d51694 | |||
4783691c87 | |||
49eb7d8ce7 | |||
627ebdb322 | |||
186adff2ef | |||
6dff8af235 | |||
ba05ca029e | |||
a289c9c685 | |||
da58a65075 | |||
32907ccac3 | |||
c66ef9d218 | |||
411ca56b94 | |||
45d7e09cbd | |||
f45901e861 | |||
2bc30e207e | |||
56051b1142 | |||
2a1c5cfd9c | |||
ae076c7ca9 | |||
6982e118c0 | |||
38a41a1cfd | |||
8fbfae6a98 | |||
aa5988788d | |||
c4d619ce3c | |||
6d36429870 | |||
524f8991bc | |||
0569480953 | |||
742243e9df | |||
5ca9becdf9 | |||
bb0db7846f | |||
e82862c69f | |||
d98a7aac19 | |||
43a3584a5c | |||
049c348709 | |||
3aea16c527 | |||
d815d25bdf | |||
b62a03d7e2 | |||
27624acd06 | |||
3255be0ae2 | |||
52f852bc6d | |||
7beadd03a6 | |||
31f4b52631 | |||
343f2b574d | |||
016c3e515b | |||
70431a5fa6 | |||
4f03c3011e | |||
e183e7da27 | |||
67c04a7855 | |||
2bde02d459 | |||
6cd136b423 | |||
b079cf9546 | |||
c3c5eb533f | |||
69334665d2 | |||
182a979e71 | |||
1c6de3ff39 | |||
2a5cf18d20 | |||
e46171b826 | |||
3c9e8507d1 | |||
a35f41e4dc | |||
313226786f | |||
dee9d423a3 | |||
3deb555981 | |||
70345abc2a | |||
fe98163bd0 | |||
1b530bde3f | |||
add546158f | |||
08e482004f | |||
972cbd0594 | |||
d8bdd16e13 | |||
dcebaf61b8 | |||
d30abeca21 | |||
df7d26e418 | |||
c829a250a9 | |||
8909c4211c | |||
582e3c72ff | |||
775ee4259e | |||
d108fc6e94 | |||
06b54d82dc | |||
61ac8763f2 | |||
e80dd40121 | |||
e335015520 | |||
65bfb4b907 | |||
8c760f3ccc | |||
eaf621cc57 | |||
e05b0a396e | |||
917c1c7f84 | |||
fecd81655e | |||
a702155230 | |||
cb7dbfb256 | |||
4afa5994e8 | |||
f47eb326c7 | |||
cd07a99118 | |||
469187c584 | |||
ad7ecb8850 | |||
9b99a03cbf | |||
3aed651062 | |||
435dc82873 | |||
87f15eafe0 | |||
ae687346f1 | |||
f9d88d902a | |||
f2eb2a4bdc | |||
d3436756b2 | |||
6f7b06e66f | |||
009ffcb4ef | |||
f0e0988d6a | |||
3f61fbeb0e | |||
d42366a75a | |||
e65648398b | |||
6c1d7bad81 | |||
4c291f5051 | |||
29127895b9 | |||
7a80dd6cb3 | |||
94a709cb42 | |||
c1aad550fa | |||
59f22cd346 | |||
39a3f2fae2 | |||
ea7754f1c8 | |||
914fe7e750 | |||
8e3e3c08f8 | |||
e497e98ca1 | |||
df654b40ff | |||
fbc04e083b | |||
84b12fd953 | |||
314a7cd8fb | |||
6162d7e431 | |||
d469a2060d | |||
0063fb4615 | |||
dbda3fc8fc | |||
2c72452c91 | |||
a797038aeb | |||
df73f80bf5 | |||
b126c396c9 | |||
da6cb13338 | |||
3fd0a6d638 | |||
851ba074e7 | |||
0aa81b5fa5 | |||
cdd54b951a | |||
f6a3899603 | |||
3e6aec016b | |||
7d055968e5 | |||
6d5085910c | |||
57fd72c35c | |||
672a617102 | |||
00f80f54e8 | |||
b00a09efaa | |||
54747ee618 | |||
fa0af7f4a2 | |||
694e1a2e68 | |||
d86cefaaeb | |||
d5895c3a47 | |||
82f82f8cf9 | |||
7ebbdcd47c | |||
f052299eb1 | |||
c4ebdc0e37 | |||
b07dcf552c | |||
ce0d715895 | |||
342bcdb5b6 | |||
b44c2ea713 | |||
da81b49fdc | |||
a496aaab9e | |||
cb70cfecd7 | |||
5c8b3f3f4c | |||
1eb77a0b3f | |||
a9b95eb242 | |||
d97325b113 | |||
26c7aedba6 | |||
f76f417e52 | |||
ac24922300 | |||
c88c67e8ef | |||
7a523990a6 | |||
5b604da33a | |||
51738e19c3 | |||
f1bc2f22c3 | |||
6cea6c9162 | |||
f81d35cc29 | |||
885d93be02 | |||
be1efe8327 | |||
d21fa9e961 | |||
2857d9a070 | |||
d43e78a1d7 | |||
b46a0ff4ae | |||
5280644327 | |||
885a870ae8 | |||
e457df1777 | |||
801b94a964 | |||
ef7b4ef020 | |||
483431438a | |||
5a76f81271 | |||
9ccb55206d | |||
a0344576ba | |||
95d2bd0065 | |||
c2da568543 | |||
390401000f | |||
4342b4346e | |||
cd836f146e | |||
ed0bae8689 | |||
c3c7356ce3 | |||
9dca7dfe4a | |||
a3b243c501 | |||
98b32cd9e2 | |||
f98f6bf3ed | |||
92d1594afd | |||
76b2ca2bc0 | |||
264254e657 | |||
9a1eeb57e9 | |||
893b05d26b | |||
bce439446e | |||
7390d833ba | |||
8777e027b0 | |||
1ce576c020 | |||
48e71617d6 | |||
30f05c6190 | |||
4a99a172a3 | |||
1a22fb9250 | |||
549a6280c0 | |||
04a1b2df3b | |||
78a9785819 | |||
ee0f1eb5fb | |||
f6593663b5 | |||
c8c61f2ae8 | |||
f5e5cf5059 | |||
6463007ef1 | |||
d8005f6d4f | |||
ce5461aee8 | |||
79427b35fa | |||
9349bdc916 | |||
6b9e46950c | |||
d7ed37ce02 | |||
97aea5f82a | |||
6c11ad5fa6 | |||
b01d974f91 | |||
58d4a529d4 | |||
3185baff0d | |||
2841b5769e | |||
2055cdea5e | |||
ad7ca86f32 | |||
183d02ded5 | |||
6b61811f9d | |||
9e8fcab65c | |||
2fcada49d4 | |||
40f496c7e9 | |||
bc14d5d78e | |||
de61ed316c | |||
76a0120d3e | |||
b55969d381 | |||
d81fc25b27 | |||
dd2fdcc574 | |||
aa6c44a470 | |||
757ee34dac | |||
c0e452133d | |||
7a095478fe | |||
8fed1d9b9f | |||
ed291da566 | |||
9062490be3 | |||
9771b33b68 | |||
8cb5a6ec75 | |||
17c5d3048c | |||
65099b9364 | |||
6a19e4d822 | |||
8c1560332e | |||
e3580d52c3 | |||
abdda4d3b3 | |||
6fad82c61d | |||
69bf8bbb4e | |||
a0ef68c1a3 | |||
7d0b780dcc | |||
be4aa41dda | |||
4326d412f9 | |||
65de1b7b5e | |||
58f1abff35 | |||
3296b97f59 | |||
6fa2491255 | |||
8114c1d4be | |||
b2ce7ee8d7 | |||
664cec97ba | |||
e4b12f49d1 | |||
0921df520c | |||
0532b4de8a | |||
4d77b2918e | |||
aad69e9650 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,3 +52,4 @@ docs/_build
|
||||
#VPCS
|
||||
vpcs.hist
|
||||
startup.vpcs
|
||||
.gns3_shell_history
|
||||
|
90
CHANGELOG
90
CHANGELOG
@ -1,5 +1,95 @@
|
||||
# Change Log
|
||||
|
||||
## 2.0.0 alpha 1 29/09/2016
|
||||
* Save as you go
|
||||
* Smart packet capture
|
||||
* Capture on any link between any node
|
||||
* Select where to run a VPCS node
|
||||
* Delete a project from the GUI
|
||||
* Project options
|
||||
* The cloud is a real node
|
||||
* Cloud templates
|
||||
* New cloud interface
|
||||
* VPCS / Ethernet Switch / Ethernet Hub templates
|
||||
* Search OS images in multiple locations
|
||||
* Periodic extraction of startup configs for Dynamips and IOU
|
||||
* Custom cloud, Ethernet hub and Ethernet switch templates
|
||||
* Snap to grid for all objects
|
||||
* Synchronize the node templates when using multiple GUI
|
||||
* Link label style
|
||||
* New place holders in command line for opening consoles
|
||||
* %i will be replaced by the project UUID
|
||||
* %c will be replaced by the connection string
|
||||
* Export a portable project from multiple remote servers
|
||||
* New save as
|
||||
* Snapshots with remote servers
|
||||
* Better start / stop / suspend all nodes
|
||||
* Edit config
|
||||
* NAT node
|
||||
* Support for colorblind users
|
||||
* Support for non local server
|
||||
* Support for profiles
|
||||
* Suspend the GNS3VM when closing GNS3
|
||||
* Edit the scene size
|
||||
* New API
|
||||
|
||||
|
||||
## 1.5.2 18/08/2016
|
||||
|
||||
* Move utils.vmnet to gns3 namespace
|
||||
* Fix Exporting portable projects with QEMU includes base images even when selecting no.
|
||||
* Catch error when md5sum file is corrupted
|
||||
* requirements.txt : added support for newer aiohttp version
|
||||
* Improve compaction of .gns3project
|
||||
* Fix crash when winpcap is not installed
|
||||
|
||||
## 1.5.1 07/07/2016
|
||||
|
||||
* Increase the number of interface for docker
|
||||
* Add the method in the bad request answer
|
||||
* Fix a rare crash in IOU
|
||||
* Fix a crash when docker is used but not installed
|
||||
* Backport Docker node hot linking
|
||||
* Allows hot-linking for Docker containers. Ref #267.
|
||||
|
||||
## 1.5.0 27/06/2016
|
||||
|
||||
* Fix import of project with no disk
|
||||
* Allow for (a lot) more docker container ports. Fixes #593.
|
||||
* Raise an error if you try to use Docker on non Linux host
|
||||
* Fix a crash in Docker if daemon stop to respond
|
||||
* Fix a crash if Dynamips router has no initial configuration
|
||||
* Kill ghosts process at startup (Dynamips, VPCS, Ubridge)
|
||||
|
||||
## 1.5.0rc2 15/06/2016
|
||||
|
||||
* Fix black screen with Qt app in Docker container
|
||||
* Detect when command in the container exit
|
||||
* Docker when the aux console exit and restart it
|
||||
* Pass by default the environment variable container=docker
|
||||
* Fix busybox binary location
|
||||
* Avoid loosing console port for Docker
|
||||
* Workaround a crash in x11vnc
|
||||
* Delete volume when dropping the container
|
||||
* Catch connection reset in ioucon
|
||||
* Delete vlan.dat for L2IOL during config import. Fixes #1285.
|
||||
* Copy original ressources from VOLUMES
|
||||
|
||||
## 1.5.0rc1 01/06/2016
|
||||
|
||||
* Save an restore docker permission
|
||||
* Export the list of volumes to a env variable accessible in the container
|
||||
* Fix a crash when docker start command is None
|
||||
* Ubridge 0.9.4 is require
|
||||
* Generate a MAC address using the project + node UUID. Ref #522.
|
||||
* Catch extra args in windows signal handler
|
||||
* Allow to block network traffic originating from the host OS for vmnet interfaces (Windows only).
|
||||
* Fix an import error when you have no GNS3 VM
|
||||
* Warn if you can not export a file due to permission issue
|
||||
* Do not delete adapters when stopping a VMware VM. Ref #1066.
|
||||
* Allocate a new vmnet interface if vmnet 0 1 or 8 is set to a custom adapter. Set adapter type to all adapters regardless if already configured or added by GNS3.
|
||||
* Set default VMware VM adapter type to e1000.
|
||||
|
||||
## 1.5.0b1 23/05/2016
|
||||
|
||||
* Allow an IOS router to stop even the Dynamips hypervisor command fail to be sent. Ref #488.
|
||||
|
@ -18,6 +18,10 @@ it on https://github.com/GNS3/gns3-gui we will take care of the triage.
|
||||
|
||||
For bugs specific to the GNS3 VM, please report on https://github.com/GNS3/gns3-vm
|
||||
|
||||
## Security issues
|
||||
|
||||
For security issues please keep it private and send an email to developers@gns3.net
|
||||
|
||||
## Asking for new features
|
||||
|
||||
The best is to start a discussion on the community website in order to get feedback
|
||||
|
61
conf/gns3_server.conf
Normal file
61
conf/gns3_server.conf
Normal file
@ -0,0 +1,61 @@
|
||||
[Server]
|
||||
; IP where the server listen for connections
|
||||
host = 0.0.0.0
|
||||
; HTTP port for controlling the servers
|
||||
port = 3080
|
||||
|
||||
; Option to enable SSL encryption
|
||||
ssl = False
|
||||
certfile=/home/gns3/.config/GNS3/ssl/server.cert
|
||||
certkey=/home/gns3/.config/GNS3/ssl/server.key
|
||||
|
||||
; Path where devices images are stored
|
||||
images_path = /home/gns3/GNS3/images
|
||||
; Path where user projects are stored
|
||||
projects_path = /home/gns3/GNS3/projects
|
||||
|
||||
; Option to automatically send crash reports to the GNS3 team
|
||||
report_errors = True
|
||||
|
||||
; First console port of the range allocated to devices
|
||||
console_start_port_range = 5000
|
||||
; Last console port of the range allocated to devices
|
||||
console_end_port_range = 10000
|
||||
; First port of the range allocated for inter-device communication. Two ports are allocated per link.
|
||||
udp_start_port_range = 10000
|
||||
; Last port of the range allocated for inter-device communication. Two ports are allocated per link
|
||||
udp_start_end_range = 20000
|
||||
; uBridge executable location, default: search in PATH
|
||||
;ubridge_path = ubridge
|
||||
|
||||
; Option to enable HTTP authentication.
|
||||
auth = False
|
||||
; Username for HTTP authentication.
|
||||
user = gns3
|
||||
; Password for HTTP authentication.
|
||||
password = gns3
|
||||
|
||||
[VPCS]
|
||||
; VPCS executable location, default: search in PATH
|
||||
;vpcs_path = vpcs
|
||||
|
||||
[Dynamips]
|
||||
; Enable auxiliary console ports on IOS routers
|
||||
allocate_aux_console_ports = False
|
||||
mmap_support = True
|
||||
; Dynamips executable path, default: search in PATH
|
||||
;dynamips_path = dynamips
|
||||
sparse_memory_support = True
|
||||
ghost_ios_support = True
|
||||
|
||||
[IOU]
|
||||
; iouyap executable path, default: search in PATH
|
||||
;iouyap_path = iouyap
|
||||
; Path of your .iourc file. If not provided, the file is searched in $HOME/.iourc
|
||||
iourc_path = /home/gns3/.iourc
|
||||
; Validate if the iourc license file is correct. If you turn this off and your licence is invalid IOU will not start and no errors will be shown.
|
||||
license_check = True
|
||||
|
||||
[Qemu]
|
||||
; !! Remember to add the gns3 user to the KVM group, otherwise you will not have read / write permssions to /dev/kvm !!
|
||||
enable_kvm = True
|
13
docs/api/examples/compute_delete_projectsprojectid.txt
Normal file
13
docs/api/examples/compute_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:09 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/b2962852-e0d1-4853-8775-0f2fde055070'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/b2962852-e0d1-4853-8775-0f2fde055070 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:04 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/acd457ac-8dcc-40e5-9488-3852cfd11b5b/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/acd457ac-8dcc-40e5-9488-3852cfd11b5b/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/b913e4a7-a742-4b35-ab6a-4eb0dd071647/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/b913e4a7-a742-4b35-ab6a-4eb0dd071647/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:04 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+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/11f8702c-ad8d-4d4d-92e1-36dc351fdcd2'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/11f8702c-ad8d-4d4d-92e1-36dc351fdcd2 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:06 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93c55439-b21b-4b96-b6b0-7655acba60f7/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93c55439-b21b-4b96-b6b0-7655acba60f7/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:07 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+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/3ea3c44d-84d3-4e45-8222-e31898fdeaf5'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/3ea3c44d-84d3-4e45-8222-e31898fdeaf5 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/35b8df58-f7c8-4129-99d0-5783b3d7308a/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/35b8df58-f7c8-4129-99d0-5783b3d7308a/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d215e65d-106a-4bb2-97a1-ad203f82f33f'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d215e65d-106a-4bb2-97a1-ad203f82f33f HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/327e074d-dffe-4164-9e85-cc27c9794680/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/327e074d-dffe-4164-9e85-cc27c9794680/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:12 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0eadcf1f-131a-485c-8001-15ae99ae9df5/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0eadcf1f-131a-485c-8001-15ae99ae9df5/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:14 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2d59aa95-5971-438d-9e56-74d4e1632e56'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2d59aa95-5971-438d-9e56-74d4e1632e56 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/93d1c07e-515f-4981-be59-4ba61cbf9fb4/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/93d1c07e-515f-4981-be59-4ba61cbf9fb4/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
31
docs/api/examples/compute_get_capabilities.txt
Normal file
31
docs/api/examples/compute_get_capabilities.txt
Normal file
@ -0,0 +1,31 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/capabilities'
|
||||
|
||||
GET /v2/compute/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 316
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/capabilities
|
||||
|
||||
{
|
||||
"node_types": [
|
||||
"cloud",
|
||||
"ethernet_hub",
|
||||
"ethernet_switch",
|
||||
"nat",
|
||||
"vpcs",
|
||||
"virtualbox",
|
||||
"dynamips",
|
||||
"frame_relay_switch",
|
||||
"atm_switch",
|
||||
"qemu",
|
||||
"vmware",
|
||||
"docker",
|
||||
"iou"
|
||||
],
|
||||
"version": "2.0.0dev1"
|
||||
}
|
19
docs/api/examples/compute_get_iouimages.txt
Normal file
19
docs/api/examples/compute_get_iouimages.txt
Normal file
@ -0,0 +1,19 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/iou/images'
|
||||
|
||||
GET /v2/compute/iou/images HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 72
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:07 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/iou/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "iou.bin",
|
||||
"path": "iou.bin"
|
||||
}
|
||||
]
|
240
docs/api/examples/compute_get_networkinterfaces.txt
Normal file
240
docs/api/examples/compute_get_networkinterfaces.txt
Normal file
@ -0,0 +1,240 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/network/interfaces'
|
||||
|
||||
GET /v2/compute/network/interfaces HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 5502
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/network/interfaces
|
||||
|
||||
[
|
||||
{
|
||||
"id": "bridge0",
|
||||
"ip_address": "",
|
||||
"mac_address": "3e:07:54:87:bc:00",
|
||||
"name": "bridge0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "en0",
|
||||
"ip_address": "",
|
||||
"mac_address": "3c:07:54:78:07:cc",
|
||||
"name": "en0",
|
||||
"netmask": "",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "en1",
|
||||
"ip_address": "192.168.84.156",
|
||||
"mac_address": "68:a8:6d:4a:c3:16",
|
||||
"name": "en1",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "en2",
|
||||
"ip_address": "",
|
||||
"mac_address": "d2:00:1b:c0:17:80",
|
||||
"name": "en2",
|
||||
"netmask": "",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "fw0",
|
||||
"ip_address": "",
|
||||
"mac_address": "3c:07:54:ff:fe:bc:01:78",
|
||||
"name": "fw0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "lo0",
|
||||
"ip_address": "127.0.0.1",
|
||||
"mac_address": "",
|
||||
"name": "lo0",
|
||||
"netmask": "255.0.0.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "p2p0",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:a8:6d:4a:c3:16",
|
||||
"name": "p2p0",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet0",
|
||||
"ip_address": "172.16.43.1",
|
||||
"mac_address": "0a:00:27:00:00:00",
|
||||
"name": "vboxnet0",
|
||||
"netmask": null,
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet1",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:01",
|
||||
"name": "vboxnet1",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet2",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:02",
|
||||
"name": "vboxnet2",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet3",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:03",
|
||||
"name": "vboxnet3",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet4",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:04",
|
||||
"name": "vboxnet4",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet5",
|
||||
"ip_address": "192.168.33.1",
|
||||
"mac_address": "0a:00:27:00:00:05",
|
||||
"name": "vboxnet5",
|
||||
"netmask": null,
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet6",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:06",
|
||||
"name": "vboxnet6",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vboxnet7",
|
||||
"ip_address": "",
|
||||
"mac_address": "0a:00:27:00:00:07",
|
||||
"name": "vboxnet7",
|
||||
"netmask": "",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet1",
|
||||
"ip_address": "172.16.16.1",
|
||||
"mac_address": "00:50:56:c0:00:01",
|
||||
"name": "vmnet1",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet10",
|
||||
"ip_address": "172.16.7.1",
|
||||
"mac_address": "00:50:56:c0:00:0a",
|
||||
"name": "vmnet10",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet2",
|
||||
"ip_address": "172.16.0.1",
|
||||
"mac_address": "00:50:56:c0:00:02",
|
||||
"name": "vmnet2",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet3",
|
||||
"ip_address": "172.16.1.1",
|
||||
"mac_address": "00:50:56:c0:00:03",
|
||||
"name": "vmnet3",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet4",
|
||||
"ip_address": "172.16.2.1",
|
||||
"mac_address": "00:50:56:c0:00:04",
|
||||
"name": "vmnet4",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet5",
|
||||
"ip_address": "172.16.3.1",
|
||||
"mac_address": "00:50:56:c0:00:05",
|
||||
"name": "vmnet5",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet6",
|
||||
"ip_address": "172.16.4.1",
|
||||
"mac_address": "00:50:56:c0:00:06",
|
||||
"name": "vmnet6",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet7",
|
||||
"ip_address": "172.16.5.1",
|
||||
"mac_address": "00:50:56:c0:00:07",
|
||||
"name": "vmnet7",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet8",
|
||||
"ip_address": "192.168.229.1",
|
||||
"mac_address": "00:50:56:c0:00:08",
|
||||
"name": "vmnet8",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"id": "vmnet9",
|
||||
"ip_address": "172.16.6.1",
|
||||
"mac_address": "00:50:56:c0:00:09",
|
||||
"name": "vmnet9",
|
||||
"netmask": "255.255.255.0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
]
|
23
docs/api/examples/compute_get_projects.txt
Normal file
23
docs/api/examples/compute_get_projects.txt
Normal file
@ -0,0 +1,23 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects'
|
||||
|
||||
GET /v2/compute/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 198
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
[
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
||||
]
|
17
docs/api/examples/compute_get_projectsprojectid.txt
Normal file
17
docs/api/examples/compute_get_projectsprojectid.txt
Normal file
@ -0,0 +1,17 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/40010203-0405-0607-0809-0a0b0c0d0e02'
|
||||
|
||||
GET /v2/compute/projects/40010203-0405-0607-0809-0a0b0c0d0e02 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 80
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "40010203-0405-0607-0809-0a0b0c0d0e02"
|
||||
}
|
@ -0,0 +1,166 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/fba79b97-a89f-40f0-be86-7634ac44d703'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/fba79b97-a89f-40f0-be86-7634ac44d703 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 3420
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
||||
{
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "bridge0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en1",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en2",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "fw0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "lo0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "p2p0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet10",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet8",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet9",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"name": "Cloud 1",
|
||||
"node_id": "fba79b97-a89f-40f0-be86-7634ac44d703",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "en0",
|
||||
"name": "en0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en1",
|
||||
"name": "en1",
|
||||
"port_number": 1,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en2",
|
||||
"name": "en2",
|
||||
"port_number": 2,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/98822cd8-c665-4193-a301-677053402417'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/98822cd8-c665-4193-a301-677053402417 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 697
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:06 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5713,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 2,
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-198/test_json5/project-files/iou/98822cd8-c665-4193-a301-677053402417",
|
||||
"node_id": "98822cd8-c665-4193-a301-677053402417",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": null,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/063c9b85-32ac-464b-9fc3-3428bc811583'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/063c9b85-32ac-464b-9fc3-3428bc811583 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 332
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:07 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "063c9b85-32ac-464b-9fc3-3428bc811583",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "gns3nat5",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "tap"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -1,17 +1,15 @@
|
||||
curl -i -X GET 'http://localhost:8000/v1/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/84777300-eef4-4a3a-9135-d7009bdb0722'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/42008117-5532-411a-b9f0-badc126dc605'
|
||||
|
||||
GET /v1/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/84777300-eef4-4a3a-9135-d7009bdb0722 HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/42008117-5532-411a-b9f0-badc126dc605 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
||||
CONNECTION: keep-alive
|
||||
CONTENT-LENGTH: 1353
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/1.4.0dev13
|
||||
X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
||||
Content-Length: 1415
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
@ -20,7 +18,8 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"console": 2001,
|
||||
"command_line": "",
|
||||
"console": 5713,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
@ -42,15 +41,16 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:00:ab:07:22:00",
|
||||
"mac_address": "00:dd:80:c6:05:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/42008117-5532-411a-b9f0-badc126dc605",
|
||||
"node_id": "42008117-5532-411a-b9f0-badc126dc605",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph3pfurip/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmccqyvwn/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"usage": "",
|
||||
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpqqnauky9/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/84777300-eef4-4a3a-9135-d7009bdb0722",
|
||||
"vm_id": "84777300-eef4-4a3a-9135-d7009bdb0722"
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a9820776-cd32-4112-b445-7a195a523733'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a9820776-cd32-4112-b445-7a195a523733 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 471
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5714,
|
||||
"enable_remote_console": false,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VMTEST",
|
||||
"node_directory": null,
|
||||
"node_id": "a9820776-cd32-4112-b445-7a195a523733",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VMTEST"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a7fd9767-260b-444c-995e-a5d8a97652d6'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a7fd9767-260b-444c-995e-a5d8a97652d6 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:14 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5722,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/a7fd9767-260b-444c-995e-a5d8a97652d6",
|
||||
"node_id": "a7fd9767-260b-444c-995e-a5d8a97652d6",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped"
|
||||
}
|
31
docs/api/examples/compute_get_qemubinaries.txt
Normal file
31
docs/api/examples/compute_get_qemubinaries.txt
Normal file
@ -0,0 +1,31 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/binaries' -d '{"archs": ["i386"]}'
|
||||
|
||||
GET /v2/compute/qemu/binaries HTTP/1.1
|
||||
{
|
||||
"archs": [
|
||||
"i386"
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 212
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:12 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/qemu/binaries
|
||||
|
||||
[
|
||||
{
|
||||
"path": "/tmp/x86_64",
|
||||
"version": "2.2.0"
|
||||
},
|
||||
{
|
||||
"path": "/tmp/alpha",
|
||||
"version": "2.1.0"
|
||||
},
|
||||
{
|
||||
"path": "/tmp/i386",
|
||||
"version": "2.1.0"
|
||||
}
|
||||
]
|
18
docs/api/examples/compute_get_qemucapabilities.txt
Normal file
18
docs/api/examples/compute_get_qemucapabilities.txt
Normal file
@ -0,0 +1,18 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/capabilities'
|
||||
|
||||
GET /v2/compute/qemu/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 39
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/qemu/capabilities
|
||||
|
||||
{
|
||||
"kvm": [
|
||||
"x86_64"
|
||||
]
|
||||
}
|
17
docs/api/examples/compute_get_version.txt
Normal file
17
docs/api/examples/compute_get_version.txt
Normal file
@ -0,0 +1,17 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/version'
|
||||
|
||||
GET /v2/compute/version HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 49
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/version
|
||||
|
||||
{
|
||||
"local": true,
|
||||
"version": "2.0.0dev1"
|
||||
}
|
20
docs/api/examples/compute_post_projects.txt
Normal file
20
docs/api/examples/compute_post_projects.txt
Normal file
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects' -d '{"name": "test", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
||||
|
||||
POST /v2/compute/projects HTTP/1.1
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 80
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
13
docs/api/examples/compute_post_projectsprojectidclose.txt
Normal file
13
docs/api/examples/compute_post_projectsprojectidclose.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:09 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/close
|
||||
|
168
docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
Normal file
168
docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
Normal file
@ -0,0 +1,168 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes' -d '{"name": "Cloud 1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes HTTP/1.1
|
||||
{
|
||||
"name": "Cloud 1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 3420
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes
|
||||
|
||||
{
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "bridge0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en1",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en2",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "fw0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "lo0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "p2p0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet10",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet8",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet9",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"name": "Cloud 1",
|
||||
"node_id": "01a55236-2403-4215-bc5a-4b5e9232aaab",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "en0",
|
||||
"name": "en0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en1",
|
||||
"name": "en1",
|
||||
"port_number": 1,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en2",
|
||||
"name": "en2",
|
||||
"port_number": 2,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/7da4afa7-1def-4f3d-b01c-53f2b9d86e13/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/7da4afa7-1def-4f3d-b01c-53f2b9d86e13/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:03 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/659d8f18-71b2-4f6a-9e15-99900156ac35/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/659d8f18-71b2-4f6a-9e15-99900156ac35/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:04 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+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/65c5b5b9-7487-4504-bdcc-42e2f5178e73/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/65c5b5b9-7487-4504-bdcc-42e2f5178e73/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 146
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:05 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-198/test_json5/tmp/captures/test.pcap"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/2cf9d165-40be-4651-bc86-e780f0ba6e93/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/2cf9d165-40be-4651-bc86-e780f0ba6e93/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:05 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+}/stop_capture
|
||||
|
38
docs/api/examples/compute_post_projectsprojectidiounodes.txt
Normal file
38
docs/api/examples/compute_post_projectsprojectidiounodes.txt
Normal file
@ -0,0 +1,38 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "4eff93c6-3933-4bfc-9a84-7dd039341e9a", "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": "4eff93c6-3933-4bfc-9a84-7dd039341e9a",
|
||||
"path": "iou.bin",
|
||||
"startup_config_content": "hostname test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 713
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:05 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5713,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 2,
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-198/test_json5/project-files/iou/4eff93c6-3933-4bfc-9a84-7dd039341e9a",
|
||||
"node_id": "4eff93c6-3933-4bfc-9a84-7dd039341e9a",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": "startup-config.cfg",
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8124305e-fbbd-4e7f-88ca-c877a93dcad5/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8124305e-fbbd-4e7f-88ca-c877a93dcad5/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 64
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:06 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+}/nio
|
||||
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7f566cd2-d08e-4f1c-aa87-675354f489ed/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/7f566cd2-d08e-4f1c-aa87-675354f489ed/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 146
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:07 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-198/test_json5/tmp/captures/test.pcap"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93ca09d8-2e45-4a85-a4e3-0665dec3f16d/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93ca09d8-2e45-4a85-a4e3-0665dec3f16d/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:07 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+}/stop_capture
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/854400c8-8ab2-4968-9493-7457f062a0b9/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/854400c8-8ab2-4968-9493-7457f062a0b9/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:06 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,35 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/45022335-0848-4370-b0a0-8a8a6d801f4d/start' -d '{"iourc_content": "test"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/45022335-0848-4370-b0a0-8a8a6d801f4d/start HTTP/1.1
|
||||
{
|
||||
"iourc_content": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 697
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:06 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5713,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 2,
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-198/test_json5/project-files/iou/45022335-0848-4370-b0a0-8a8a6d801f4d",
|
||||
"node_id": "45022335-0848-4370-b0a0-8a8a6d801f4d",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 256,
|
||||
"serial_adapters": 2,
|
||||
"startup_config": null,
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/840c81d5-88fd-4d59-ab89-cacb6d194ffb/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/840c81d5-88fd-4d59-ab89-cacb6d194ffb/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:06 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/stop
|
||||
|
29
docs/api/examples/compute_post_projectsprojectidnatnodes.txt
Normal file
29
docs/api/examples/compute_post_projectsprojectidnatnodes.txt
Normal file
@ -0,0 +1,29 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes' -d '{"name": "Nat 1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes HTTP/1.1
|
||||
{
|
||||
"name": "Nat 1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 332
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:07 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "3cdf49d9-e2a5-4359-aa72-b995b261ba97",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "gns3nat4",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "tap"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/60c8420d-7c38-4628-859d-85e406dfb436/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/60c8420d-7c38-4628-859d-85e406dfb436/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:07 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
16
docs/api/examples/compute_post_projectsprojectidportsudp.txt
Normal file
16
docs/api/examples/compute_post_projectsprojectidportsudp.txt
Normal file
@ -0,0 +1,16 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 25
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/ports/udp
|
||||
|
||||
{
|
||||
"udp_port": 10000
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
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/tmpmccqyvwn/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/tmpmccqyvwn/qemu-system-x86_64",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 1461
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:10 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5713,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "linux\u8f7d.img",
|
||||
"hda_disk_image_md5sum": "c4ca4238a0b923820dcc509a6f75849b",
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "",
|
||||
"hdb_disk_image_md5sum": null,
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:09:c6:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/bcf073b1-a5a1-4ce9-bc64-726267e509c6",
|
||||
"node_id": "bcf073b1-a5a1-4ce9-bc64-726267e509c6",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmccqyvwn/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/20362237-021f-45d1-84de-a2bf4c20a9d7/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/20362237-021f-45d1-84de-a2bf4c20a9d7/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "eth0",
|
||||
"type": "nio_ethernet"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 409
|
||||
Content-Length: 81
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:12 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"message": "NIO of type nio_ethernet is not supported",
|
||||
"status": 409
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/1f47ef21-6d84-4b5b-8bd4-543cc2739f3b/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/1f47ef21-6d84-4b5b-8bd4-543cc2739f3b/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8fa2adb1-1885-40c5-bed1-dcfccaab2520/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8fa2adb1-1885-40c5-bed1-dcfccaab2520/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/resume
|
||||
|
@ -0,0 +1,56 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/95f51a24-4db3-4fd4-89d0-25861018af48/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/95f51a24-4db3-4fd4-89d0-25861018af48/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1415
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5713,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "",
|
||||
"hda_disk_image_md5sum": null,
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "",
|
||||
"hdb_disk_image_md5sum": null,
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:af:48:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/95f51a24-4db3-4fd4-89d0-25861018af48",
|
||||
"node_id": "95f51a24-4db3-4fd4-89d0-25861018af48",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmccqyvwn/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8e454bb5-4b20-4ee6-8363-932c95ad1244/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8e454bb5-4b20-4ee6-8363-932c95ad1244/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/stop
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b5a956a2-c5eb-47ca-8660-297f9db97eb9/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b5a956a2-c5eb-47ca-8660-297f9db97eb9/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,34 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes HTTP/1.1
|
||||
{
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"vmname": "VM1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 465
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5713,
|
||||
"enable_remote_console": false,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"node_directory": null,
|
||||
"node_id": "139b95df-46bb-4ea8-90b0-93b7f72e7220",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VM1"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21e608e1-264b-42cc-919c-bee9d02f7d55/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/21e608e1-264b-42cc-919c-bee9d02f7d55/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:14 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dfa20c67-40f7-43cc-9f84-0dad2ba1a27c/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dfa20c67-40f7-43cc-9f84-0dad2ba1a27c/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/43cb3d3d-4c83-4315-983c-f4c481822476/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/43cb3d3d-4c83-4315-983c-f4c481822476/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/resume
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a7022726-0273-4f8b-8bb0-5c04fee78d3a/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a7022726-0273-4f8b-8bb0-5c04fee78d3a/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/start
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a9675ed7-1f32-41a7-b231-bb923fbe4302/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a9675ed7-1f32-41a7-b231-bb923fbe4302/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/stop
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/c39a0d07-64b2-44dd-9019-f5bf9eec7361/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/c39a0d07-64b2-44dd-9019-f5bf9eec7361/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/suspend
|
||||
|
@ -0,0 +1,27 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes' -d '{"name": "PC TEST 1"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes HTTP/1.1
|
||||
{
|
||||
"name": "PC TEST 1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:14 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5722,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e38e7a07-93f4-48fd-96f6-05663168870d",
|
||||
"node_id": "e38e7a07-93f4-48fd-96f6-05663168870d",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/d8deb983-a1b6-4c88-bb57-8a8c6d8a93d7/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/d8deb983-a1b6-4c88-bb57-8a8c6d8a93d7/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 89
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:14 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
"rport": 4343,
|
||||
"type": "nio_udp"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/726299c5-a366-4613-bdb6-c3b6ba9dc62f/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/726299c5-a366-4613-bdb6-c3b6ba9dc62f/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/reload
|
||||
|
@ -0,0 +1,25 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2b837084-9351-4f74-b5d7-6e00b81a75bd/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2b837084-9351-4f74-b5d7-6e00b81a75bd/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 489
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5722,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/2b837084-9351-4f74-b5d7-6e00b81a75bd",
|
||||
"node_id": "2b837084-9351-4f74-b5d7-6e00b81a75bd",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/6a350a47-5117-4cf5-813c-6b4ab6ab5d15/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/6a350a47-5117-4cf5-813c-6b4ab6ab5d15/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/stop
|
||||
|
22
docs/api/examples/compute_post_qemuimg.txt
Normal file
22
docs/api/examples/compute_post_qemuimg.txt
Normal file
@ -0,0 +1,22 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/qemu/img' -d '{"cluster_size": 64, "format": "qcow2", "lazy_refcounts": "off", "path": "/tmp/hda.qcow2", "preallocation": "metadata", "qemu_img": "/tmp/qemu-img", "refcount_bits": 12, "size": 100}'
|
||||
|
||||
POST /v2/compute/qemu/img HTTP/1.1
|
||||
{
|
||||
"cluster_size": 64,
|
||||
"format": "qcow2",
|
||||
"lazy_refcounts": "off",
|
||||
"path": "/tmp/hda.qcow2",
|
||||
"preallocation": "metadata",
|
||||
"qemu_img": "/tmp/qemu-img",
|
||||
"refcount_bits": 12,
|
||||
"size": 100
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:13 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/qemu/img
|
||||
|
@ -0,0 +1,168 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/ad6018a3-6fe5-4e57-814b-09472ee68a82' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/ad6018a3-6fe5-4e57-814b-09472ee68a82 HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 3417
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:04 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
|
||||
{
|
||||
"interfaces": [
|
||||
{
|
||||
"name": "bridge0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en0",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en1",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "en2",
|
||||
"special": false,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "fw0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "lo0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "p2p0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet0",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vboxnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet1",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet10",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet2",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet3",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet4",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet5",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet6",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet7",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet8",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "vmnet9",
|
||||
"special": true,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"name": "test",
|
||||
"node_id": "ad6018a3-6fe5-4e57-814b-09472ee68a82",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "en0",
|
||||
"name": "en0",
|
||||
"port_number": 0,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en1",
|
||||
"name": "en1",
|
||||
"port_number": 1,
|
||||
"type": "ethernet"
|
||||
},
|
||||
{
|
||||
"interface": "en2",
|
||||
"name": "en2",
|
||||
"port_number": 2,
|
||||
"type": "ethernet"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/57d77310-c390-42a9-abd5-5401f7f5a7d6' -d '{"console": 5715, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/57d77310-c390-42a9-abd5-5401f7f5a7d6 HTTP/1.1
|
||||
{
|
||||
"console": 5715,
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"name": "test",
|
||||
"start_command": "yes"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 654
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:05 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
|
||||
|
||||
{
|
||||
"adapters": 2,
|
||||
"aux": 5714,
|
||||
"console": 5715,
|
||||
"console_http_path": "/",
|
||||
"console_http_port": 80,
|
||||
"console_resolution": "1280x1024",
|
||||
"console_type": "telnet",
|
||||
"container_id": "8bd8153ea8f5",
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"image": "nginx:latest",
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-198/test_json5/project-files/docker/57d77310-c390-42a9-abd5-5401f7f5a7d6",
|
||||
"node_id": "57d77310-c390-42a9-abd5-5401f7f5a7d6",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"start_command": "yes",
|
||||
"status": "stopped"
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/65f7738a-38aa-46c4-8a49-51a5a7aaabcc' -d '{"console": 5714, "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/65f7738a-38aa-46c4-8a49-51a5a7aaabcc HTTP/1.1
|
||||
{
|
||||
"console": 5714,
|
||||
"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
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 708
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:06 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"console_type": "telnet",
|
||||
"ethernet_adapters": 4,
|
||||
"l1_keepalives": true,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-198/test_json5/project-files/iou/65f7738a-38aa-46c4-8a49-51a5a7aaabcc",
|
||||
"node_id": "65f7738a-38aa-46c4-8a49-51a5a7aaabcc",
|
||||
"nvram": 2048,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 512,
|
||||
"serial_adapters": 0,
|
||||
"startup_config": "startup-config.cfg",
|
||||
"status": "stopped",
|
||||
"use_default_iou_values": true
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/7402624f-431b-4d4e-935a-6deb548bd81b' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/7402624f-431b-4d4e-935a-6deb548bd81b HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 331
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:08 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"node_id": "7402624f-431b-4d4e-935a-6deb548bd81b",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"interface": "gns3nat9",
|
||||
"name": "nat0",
|
||||
"port_number": 0,
|
||||
"type": "tap"
|
||||
}
|
||||
],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/18a04195-5602-47dd-9c1d-b6dee3b90e5e' -d '{"console": 5714, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/18a04195-5602-47dd-9c1d-b6dee3b90e5e HTTP/1.1
|
||||
{
|
||||
"console": 5714,
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
"name": "test",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1456
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:11 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "e1000",
|
||||
"adapters": 1,
|
||||
"boot_priority": "c",
|
||||
"cdrom_image": "",
|
||||
"cdrom_image_md5sum": null,
|
||||
"command_line": "",
|
||||
"console": 5714,
|
||||
"console_type": "telnet",
|
||||
"cpu_throttling": 0,
|
||||
"cpus": 1,
|
||||
"hda_disk_image": "",
|
||||
"hda_disk_image_md5sum": null,
|
||||
"hda_disk_interface": "ide",
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
"hdb_disk_image_md5sum": "c4ca4238a0b923820dcc509a6f75849b",
|
||||
"hdb_disk_interface": "ide",
|
||||
"hdc_disk_image": "",
|
||||
"hdc_disk_image_md5sum": null,
|
||||
"hdc_disk_interface": "ide",
|
||||
"hdd_disk_image": "",
|
||||
"hdd_disk_image_md5sum": null,
|
||||
"hdd_disk_interface": "ide",
|
||||
"initrd": "",
|
||||
"initrd_md5sum": null,
|
||||
"kernel_command_line": "",
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:0e:5e:00",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/18a04195-5602-47dd-9c1d-b6dee3b90e5e",
|
||||
"node_id": "18a04195-5602-47dd-9c1d-b6dee3b90e5e",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmccqyvwn/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/35e77f7c-5e4c-4e39-a025-aee0a65bc77d' -d '{"console": 5723, "name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/35e77f7c-5e4c-4e39-a025-aee0a65bc77d HTTP/1.1
|
||||
{
|
||||
"console": 5723,
|
||||
"name": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 469
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:14 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||
|
||||
{
|
||||
"acpi_shutdown": false,
|
||||
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||
"adapters": 0,
|
||||
"console": 5723,
|
||||
"enable_remote_console": false,
|
||||
"headless": false,
|
||||
"linked_clone": false,
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "35e77f7c-5e4c-4e39-a025-aee0a65bc77d",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
"use_any_adapter": false,
|
||||
"vmname": "VMTEST"
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/89b33b7f-9d21-4dce-b584-5afed089910d' -d '{"console": 5724, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/89b33b7f-9d21-4dce-b584-5afed089910d HTTP/1.1
|
||||
{
|
||||
"console": 5724,
|
||||
"name": "test",
|
||||
"startup_script": "ip 192.168.1.1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 505
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": "",
|
||||
"console": 5724,
|
||||
"console_type": "telnet",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo2joh79j/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/89b33b7f-9d21-4dce-b584-5afed089910d",
|
||||
"node_id": "89b33b7f-9d21-4dce-b584-5afed089910d",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": "ip 192.168.1.1",
|
||||
"startup_script_path": "startup.vpc",
|
||||
"status": "stopped"
|
||||
}
|
13
docs/api/examples/controller_delete_projectsprojectid.txt
Normal file
13
docs/api/examples/controller_delete_projectsprojectid.txt
Normal file
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/fbe3330d-b6ca-406d-a6c9-fe9703ee8763'
|
||||
|
||||
DELETE /v2/projects/fbe3330d-b6ca-406d-a6c9-fe9703ee8763 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:22 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/9dc27fe7-73a9-4dbe-94ee-f87bd8d0470b/drawings/de040a53-4865-4894-a5ab-d49bd99520cd'
|
||||
|
||||
DELETE /v2/projects/9dc27fe7-73a9-4dbe-94ee-f87bd8d0470b/drawings/de040a53-4865-4894-a5ab-d49bd99520cd HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:17 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/drawings/{drawing_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/38865d4b-a234-4c29-a55e-62a39f27659e/links/a9cee8bd-b589-4228-a7dd-4e510885d74a'
|
||||
|
||||
DELETE /v2/projects/38865d4b-a234-4c29-a55e-62a39f27659e/links/a9cee8bd-b589-4228-a7dd-4e510885d74a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:19 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/links/{link_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/a27cbb34-9e4e-458e-9404-a8956edab9e0/nodes/bc298eb5-15d6-480d-8a81-326841bec062'
|
||||
|
||||
DELETE /v2/projects/a27cbb34-9e4e-458e-9404-a8956edab9e0/nodes/bc298eb5-15d6-480d-8a81-326841bec062 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:21 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
@ -0,0 +1,13 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/e101ad6d-fbf7-4c92-be30-2eb4524c9adb/snapshots/78c0d800-83c3-4c52-9dab-421cfc80abaa'
|
||||
|
||||
DELETE /v2/projects/e101ad6d-fbf7-4c92-be30-2eb4524c9adb/snapshots/78c0d800-83c3-4c52-9dab-421cfc80abaa HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 27 Sep 2016 10:01:24 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/snapshots/{snapshot_id}
|
||||
|
30
docs/api/examples/controller_get_computes.txt
Normal file
30
docs/api/examples/controller_get_computes.txt
Normal file
@ -0,0 +1,30 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes'
|
||||
|
||||
GET /v2/computes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 387
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:16 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/computes
|
||||
|
||||
[
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "My super server",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
}
|
||||
]
|
28
docs/api/examples/controller_get_computescomputeid.txt
Normal file
28
docs/api/examples/controller_get_computescomputeid.txt
Normal file
@ -0,0 +1,28 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes/my_compute_id'
|
||||
|
||||
GET /v2/computes/my_compute_id HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 334
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:16 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/computes/{compute_id}
|
||||
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "http://julien@localhost:84",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/computes/my_compute/qemu/images'
|
||||
|
||||
GET /v2/computes/my_compute/qemu/images HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 95
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:16 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/computes/{compute_id}/{emulator}/images
|
||||
|
||||
[
|
||||
{
|
||||
"filename": "linux.qcow2"
|
||||
},
|
||||
{
|
||||
"filename": "asav.qcow2"
|
||||
}
|
||||
]
|
22
docs/api/examples/controller_get_gns3vm.txt
Normal file
22
docs/api/examples/controller_get_gns3vm.txt
Normal file
@ -0,0 +1,22 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm'
|
||||
|
||||
GET /v2/gns3vm HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 148
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:17 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/gns3vm
|
||||
|
||||
{
|
||||
"enable": false,
|
||||
"engine": "vmware",
|
||||
"headless": false,
|
||||
"ram": 2048,
|
||||
"vcpus": 1,
|
||||
"vmname": null,
|
||||
"when_exit": "stop"
|
||||
}
|
39
docs/api/examples/controller_get_gns3vmengines.txt
Normal file
39
docs/api/examples/controller_get_gns3vmengines.txt
Normal file
@ -0,0 +1,39 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines'
|
||||
|
||||
GET /v2/gns3vm/engines HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1106
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:17 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/gns3vm/engines
|
||||
|
||||
[
|
||||
{
|
||||
"description": "VMware is the recommended choice for best performances.<br>The GNS3 VM can be <a href=\"https://github.com/GNS3/gns3-gui/releases/download/v2.0.0dev1/GNS3.VM.VMware.Workstation.2.0.0dev1.zip\">downloaded here</a>.",
|
||||
"engine_id": "vmware",
|
||||
"name": "VMware Fusion",
|
||||
"support_headless": true,
|
||||
"support_ram": true,
|
||||
"support_when_exit": true
|
||||
},
|
||||
{
|
||||
"description": "VirtualBox doesn't support nested virtualization, this means running Qemu based VM could be very slow.<br>The GNS3 VM can be <a href=\"https://github.com/GNS3/gns3-gui/releases/download/v2.0.0dev1/GNS3.VM.VirtualBox.2.0.0dev1.zip\">downloaded here</a>",
|
||||
"engine_id": "virtualbox",
|
||||
"name": "VirtualBox",
|
||||
"support_headless": true,
|
||||
"support_ram": true,
|
||||
"support_when_exit": true
|
||||
},
|
||||
{
|
||||
"description": "Use a remote GNS3 server as the GNS3 VM.",
|
||||
"engine_id": "remote",
|
||||
"name": "Remote",
|
||||
"support_headless": false,
|
||||
"support_ram": false,
|
||||
"support_when_exit": false
|
||||
}
|
||||
]
|
18
docs/api/examples/controller_get_gns3vmenginesenginevms.txt
Normal file
18
docs/api/examples/controller_get_gns3vmenginesenginevms.txt
Normal file
@ -0,0 +1,18 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/gns3vm/engines/vmware/vms'
|
||||
|
||||
GET /v2/gns3vm/engines/vmware/vms HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 40
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:17 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/gns3vm/engines/{engine}/vms
|
||||
|
||||
[
|
||||
{
|
||||
"vmname": "test"
|
||||
}
|
||||
]
|
27
docs/api/examples/controller_get_projects.txt
Normal file
27
docs/api/examples/controller_get_projects.txt
Normal file
@ -0,0 +1,27 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects'
|
||||
|
||||
GET /v2/projects HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 429
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:22 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects
|
||||
|
||||
[
|
||||
{
|
||||
"auto_close": true,
|
||||
"auto_open": false,
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-198/test_list_projects1",
|
||||
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
||||
]
|
25
docs/api/examples/controller_get_projectsprojectid.txt
Normal file
25
docs/api/examples/controller_get_projectsprojectid.txt
Normal file
@ -0,0 +1,25 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/b7f06506-7cdb-4fed-beca-f68e685c694c'
|
||||
|
||||
GET /v2/projects/b7f06506-7cdb-4fed-beca-f68e685c694c HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 379
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:22 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}
|
||||
|
||||
{
|
||||
"auto_close": true,
|
||||
"auto_open": false,
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpszefva4f/projects/b7f06506-7cdb-4fed-beca-f68e685c694c",
|
||||
"project_id": "b7f06506-7cdb-4fed-beca-f68e685c694c",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/93b786be-fd9d-4fbf-b9a1-c53ebd52e3b1/drawings'
|
||||
|
||||
GET /v2/projects/93b786be-fd9d-4fbf-b9a1-c53ebd52e3b1/drawings HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 363
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:17 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/drawings
|
||||
|
||||
[
|
||||
{
|
||||
"drawing_id": "b2654fa7-f511-4dcb-986e-491ec84b42d8",
|
||||
"project_id": "93b786be-fd9d-4fbf-b9a1-c53ebd52e3b1",
|
||||
"rotation": 0,
|
||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||
"x": 10,
|
||||
"y": 20,
|
||||
"z": 0
|
||||
}
|
||||
]
|
49
docs/api/examples/controller_get_projectsprojectidlinks.txt
Normal file
49
docs/api/examples/controller_get_projectsprojectidlinks.txt
Normal file
@ -0,0 +1,49 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/2295ee85-fc8b-4fa2-878c-914ff651c4a8/links'
|
||||
|
||||
GET /v2/projects/2295ee85-fc8b-4fa2-878c-914ff651c4a8/links HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1111
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:18 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/links
|
||||
|
||||
[
|
||||
{
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "ca268d39-d533-4182-87da-16ef58fbf230",
|
||||
"link_type": "ethernet",
|
||||
"nodes": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10; font-style: Verdana",
|
||||
"text": "0/3",
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "c824d9de-a001-47e4-bbce-9fee0533c10c",
|
||||
"port_number": 3
|
||||
},
|
||||
{
|
||||
"adapter_number": 2,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10; font-style: Verdana",
|
||||
"text": "2/4",
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "1a1944d6-405f-44cc-9c97-40c753b213f2",
|
||||
"port_number": 4
|
||||
}
|
||||
],
|
||||
"project_id": "2295ee85-fc8b-4fa2-878c-914ff651c4a8"
|
||||
}
|
||||
]
|
59
docs/api/examples/controller_get_projectsprojectidnodes.txt
Normal file
59
docs/api/examples/controller_get_projectsprojectidnodes.txt
Normal file
@ -0,0 +1,59 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/c55181df-bfe9-4556-9f56-d07b471c7c29/nodes'
|
||||
|
||||
GET /v2/projects/c55181df-bfe9-4556-9f56-d07b471c7c29/nodes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1264
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:19 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/nodes
|
||||
|
||||
[
|
||||
{
|
||||
"command_line": null,
|
||||
"compute_id": "example.com",
|
||||
"console": 2048,
|
||||
"console_host": "example.org",
|
||||
"console_type": null,
|
||||
"first_port_name": null,
|
||||
"height": 59,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10;font-familly: Verdana",
|
||||
"text": "test",
|
||||
"x": null,
|
||||
"y": -40
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "c09fb918-12f6-4b7f-a821-12f893bd236a",
|
||||
"node_type": "vpcs",
|
||||
"port_name_format": "Ethernet{0}",
|
||||
"port_segment_size": 0,
|
||||
"ports": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"data_link_types": {
|
||||
"Ethernet": "DLT_EN10MB"
|
||||
},
|
||||
"link_type": "ethernet",
|
||||
"name": "Ethernet0",
|
||||
"port_number": 0,
|
||||
"short_name": "e0/0"
|
||||
}
|
||||
],
|
||||
"project_id": "c55181df-bfe9-4556-9f56-d07b471c7c29",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
"width": 65,
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
}
|
||||
]
|
@ -0,0 +1,57 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/a9ed36e5-580d-4a3e-8624-986dabbe4541/nodes/3b02a817-722a-4908-85c1-1f02eeb01739'
|
||||
|
||||
GET /v2/projects/a9ed36e5-580d-4a3e-8624-986dabbe4541/nodes/3b02a817-722a-4908-85c1-1f02eeb01739 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 1084
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:20 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}
|
||||
|
||||
{
|
||||
"command_line": null,
|
||||
"compute_id": "example.com",
|
||||
"console": 2048,
|
||||
"console_host": "example.org",
|
||||
"console_type": null,
|
||||
"first_port_name": null,
|
||||
"height": 59,
|
||||
"label": {
|
||||
"rotation": 0,
|
||||
"style": "font-size: 10;font-familly: Verdana",
|
||||
"text": "test",
|
||||
"x": null,
|
||||
"y": -40
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "3b02a817-722a-4908-85c1-1f02eeb01739",
|
||||
"node_type": "vpcs",
|
||||
"port_name_format": "Ethernet{0}",
|
||||
"port_segment_size": 0,
|
||||
"ports": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
"data_link_types": {
|
||||
"Ethernet": "DLT_EN10MB"
|
||||
},
|
||||
"link_type": "ethernet",
|
||||
"name": "Ethernet0",
|
||||
"port_number": 0,
|
||||
"short_name": "e0/0"
|
||||
}
|
||||
],
|
||||
"project_id": "a9ed36e5-580d-4a3e-8624-986dabbe4541",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
"width": 65,
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/068949e7-9a81-4efd-a5d7-d0ee52a0b16e/nodes/8b12f20d-0a89-4d31-8028-555a6bebf8b0/dynamips/auto_idlepc'
|
||||
|
||||
GET /v2/projects/068949e7-9a81-4efd-a5d7-d0ee52a0b16e/nodes/8b12f20d-0a89-4d31-8028-555a6bebf8b0/dynamips/auto_idlepc HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 30
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:21 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}/dynamips/auto_idlepc
|
||||
|
||||
{
|
||||
"idlepc": "0x60606f54"
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/04da7de1-40c9-4a5f-af3a-043f3891db97/nodes/84dd267d-b4ed-4db8-ab80-3b256cc2ca98/dynamips/idlepc_proposals'
|
||||
|
||||
GET /v2/projects/04da7de1-40c9-4a5f-af3a-043f3891db97/nodes/84dd267d-b4ed-4db8-ab80-3b256cc2ca98/dynamips/idlepc_proposals HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 38
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:21 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/nodes/{node_id}/dynamips/idlepc_proposals
|
||||
|
||||
[
|
||||
"0x60606f54",
|
||||
"0x33805a22"
|
||||
]
|
@ -0,0 +1,21 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/e6ebdced-ee5e-4af0-8d1e-8a377fb9ee41/snapshots'
|
||||
|
||||
GET /v2/projects/e6ebdced-ee5e-4af0-8d1e-8a377fb9ee41/snapshots HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 197
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:24 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects/{project_id}/snapshots
|
||||
|
||||
[
|
||||
{
|
||||
"created_at": 1474970484,
|
||||
"name": "test",
|
||||
"project_id": "e6ebdced-ee5e-4af0-8d1e-8a377fb9ee41",
|
||||
"snapshot_id": "472104bf-b65c-4d6d-b288-5bf3981826e5"
|
||||
}
|
||||
]
|
16
docs/api/examples/controller_get_settings.txt
Normal file
16
docs/api/examples/controller_get_settings.txt
Normal file
@ -0,0 +1,16 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/settings'
|
||||
|
||||
GET /v2/settings HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 20
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:24 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/settings
|
||||
|
||||
{
|
||||
"test": true
|
||||
}
|
220
docs/api/examples/controller_get_symbols.txt
Normal file
220
docs/api/examples/controller_get_symbols.txt
Normal file
@ -0,0 +1,220 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/symbols'
|
||||
|
||||
GET /v2/symbols HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 5174
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:24 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/symbols
|
||||
|
||||
[
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "PBX.svg",
|
||||
"symbol_id": ":/symbols/PBX.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "PIX_firewall.svg",
|
||||
"symbol_id": ":/symbols/PIX_firewall.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "access_point.svg",
|
||||
"symbol_id": ":/symbols/access_point.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "access_server.svg",
|
||||
"symbol_id": ":/symbols/access_server.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "asa.svg",
|
||||
"symbol_id": ":/symbols/asa.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "atm_bridge.svg",
|
||||
"symbol_id": ":/symbols/atm_bridge.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "atm_switch.svg",
|
||||
"symbol_id": ":/symbols/atm_switch.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "call_manager.svg",
|
||||
"symbol_id": ":/symbols/call_manager.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "cloud.svg",
|
||||
"symbol_id": ":/symbols/cloud.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "computer.svg",
|
||||
"symbol_id": ":/symbols/computer.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "docker_guest.svg",
|
||||
"symbol_id": ":/symbols/docker_guest.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "dslam.svg",
|
||||
"symbol_id": ":/symbols/dslam.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "edge_label_switch_router.svg",
|
||||
"symbol_id": ":/symbols/edge_label_switch_router.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "ethernet_switch.svg",
|
||||
"symbol_id": ":/symbols/ethernet_switch.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "firewall.svg",
|
||||
"symbol_id": ":/symbols/firewall.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "frame_relay_switch.svg",
|
||||
"symbol_id": ":/symbols/frame_relay_switch.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "gateway.svg",
|
||||
"symbol_id": ":/symbols/gateway.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "hub.svg",
|
||||
"symbol_id": ":/symbols/hub.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "ids.svg",
|
||||
"symbol_id": ":/symbols/ids.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "iosv_l2_virl.svg",
|
||||
"symbol_id": ":/symbols/iosv_l2_virl.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "iosv_virl.svg",
|
||||
"symbol_id": ":/symbols/iosv_virl.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "ip_phone.svg",
|
||||
"symbol_id": ":/symbols/ip_phone.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "label_switch_router.svg",
|
||||
"symbol_id": ":/symbols/label_switch_router.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "lightweight_ap.svg",
|
||||
"symbol_id": ":/symbols/lightweight_ap.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "multilayer_switch.svg",
|
||||
"symbol_id": ":/symbols/multilayer_switch.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "optical_router.svg",
|
||||
"symbol_id": ":/symbols/optical_router.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "printer.svg",
|
||||
"symbol_id": ":/symbols/printer.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "qemu_guest.svg",
|
||||
"symbol_id": ":/symbols/qemu_guest.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "route_switch_processor.svg",
|
||||
"symbol_id": ":/symbols/route_switch_processor.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "router.awp.svg",
|
||||
"symbol_id": ":/symbols/router.awp.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "router.svg",
|
||||
"symbol_id": ":/symbols/router.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "router_firewall.svg",
|
||||
"symbol_id": ":/symbols/router_firewall.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "router_netflow.svg",
|
||||
"symbol_id": ":/symbols/router_netflow.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "server.svg",
|
||||
"symbol_id": ":/symbols/server.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "sip_server.svg",
|
||||
"symbol_id": ":/symbols/sip_server.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "vbox_guest.svg",
|
||||
"symbol_id": ":/symbols/vbox_guest.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "vmware_guest.svg",
|
||||
"symbol_id": ":/symbols/vmware_guest.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "voice_access_server.svg",
|
||||
"symbol_id": ":/symbols/voice_access_server.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "voice_router.svg",
|
||||
"symbol_id": ":/symbols/voice_router.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "vpcs_guest.svg",
|
||||
"symbol_id": ":/symbols/vpcs_guest.svg"
|
||||
},
|
||||
{
|
||||
"builtin": true,
|
||||
"filename": "wlan_controller.svg",
|
||||
"symbol_id": ":/symbols/wlan_controller.svg"
|
||||
}
|
||||
]
|
17
docs/api/examples/controller_get_version.txt
Normal file
17
docs/api/examples/controller_get_version.txt
Normal file
@ -0,0 +1,17 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/version'
|
||||
|
||||
GET /v2/version HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Content-Length: 49
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:25 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/version
|
||||
|
||||
{
|
||||
"local": true,
|
||||
"version": "2.0.0dev1"
|
||||
}
|
35
docs/api/examples/controller_post_computes.txt
Normal file
35
docs/api/examples/controller_post_computes.txt
Normal file
@ -0,0 +1,35 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/computes' -d '{"compute_id": "my_compute_id", "host": "localhost", "password": "secure", "port": 84, "protocol": "http", "user": "julien"}'
|
||||
|
||||
POST /v2/computes HTTP/1.1
|
||||
{
|
||||
"compute_id": "my_compute_id",
|
||||
"host": "localhost",
|
||||
"password": "secure",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 334
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:15 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/computes
|
||||
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "http://julien@localhost:84",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
}
|
28
docs/api/examples/controller_post_projects.txt
Normal file
28
docs/api/examples/controller_post_projects.txt
Normal file
@ -0,0 +1,28 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects' -d '{"name": "test", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
||||
|
||||
POST /v2/projects HTTP/1.1
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Content-Length: 379
|
||||
Content-Type: application/json
|
||||
Date: Tue, 27 Sep 2016 10:01:21 GMT
|
||||
Server: Python/3.5 GNS3/2.0.0dev1
|
||||
X-Route: /v2/projects
|
||||
|
||||
{
|
||||
"auto_close": true,
|
||||
"auto_open": false,
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpihahq8x6/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"scene_height": 1000,
|
||||
"scene_width": 2000,
|
||||
"status": "opened"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user