mirror of https://github.com/GNS3/gns3-server
parent
62f87de23a
commit
60a3ab87dc
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/9af8deca-3a3c-4a62-871e-1f03ce648219'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/9af8deca-3a3c-4a62-871e-1f03ce648219 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/ff09abc5-54be-484b-8ce4-541c3540391b/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/ff09abc5-54be-484b-8ce4-541c3540391b/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/64614fb7-5040-4046-893d-35a8b6c75bb7'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/64614fb7-5040-4046-893d-35a8b6c75bb7 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 487
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "",
|
||||||
|
"name": "TraceNG TEST 1",
|
||||||
|
"node_directory": "/var/folders/qy/g6blgc5n7y93pzg61zyt7cmr0000gn/T/tmp_svt10ce/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/64614fb7-5040-4046-893d-35a8b6c75bb7",
|
||||||
|
"node_id": "64614fb7-5040-4046-893d-35a8b6c75bb7",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes' -d '{"name": "TraceNG TEST 1"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "TraceNG TEST 1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 487
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "",
|
||||||
|
"name": "TraceNG TEST 1",
|
||||||
|
"node_directory": "/var/folders/qy/g6blgc5n7y93pzg61zyt7cmr0000gn/T/tmp_svt10ce/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/e12be8ef-0fb0-4199-ba0e-c7de6e538c40",
|
||||||
|
"node_id": "e12be8ef-0fb0-4199-ba0e-c7de6e538c40",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/45c99055-403f-4da2-a435-626c591d6185/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/traceng/nodes/45c99055-403f-4da2-a435-626c591d6185/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/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,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/5e8cf930-0ad4-4ebd-a16b-5b4d42b20115/duplicate' -d '{"destination_node_id": "e97a5cfc-4ac1-409c-a909-93a9902ae606"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/5e8cf930-0ad4-4ebd-a16b-5b4d42b20115/duplicate HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination_node_id": "e97a5cfc-4ac1-409c-a909-93a9902ae606"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 4
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/duplicate
|
||||||
|
|
||||||
|
true
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/59be71df-e2e3-4f0b-bfe8-acace5dddcd6/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/59be71df-e2e3-4f0b-bfe8-acace5dddcd6/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/4422948c-70b0-42ab-8448-ad136e433915/start' -d '{"destination": "192.168.1.2"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/4422948c-70b0-42ab-8448-ad136e433915/start HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination": "192.168.1.2"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 487
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/start
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "",
|
||||||
|
"name": "TraceNG TEST 1",
|
||||||
|
"node_directory": "/var/folders/qy/g6blgc5n7y93pzg61zyt7cmr0000gn/T/tmp_svt10ce/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/4422948c-70b0-42ab-8448-ad136e433915",
|
||||||
|
"node_id": "4422948c-70b0-42ab-8448-ad136e433915",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/1b41defb-4fae-4681-89d1-a62fff2bfb70/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/1b41defb-4fae-4681-89d1-a62fff2bfb70/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/stop
|
||||||
|
|
@ -0,0 +1,31 @@
|
|||||||
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/51010203-0405-0607-0809-0a0b0c0d0e0f' -d '{"variables": [{"name": "TEST1", "value": "VAL1"}]}'
|
||||||
|
|
||||||
|
PUT /v2/compute/projects/51010203-0405-0607-0809-0a0b0c0d0e0f HTTP/1.1
|
||||||
|
{
|
||||||
|
"variables": [
|
||||||
|
{
|
||||||
|
"name": "TEST1",
|
||||||
|
"value": "VAL1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 183
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:25 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"variables": [
|
||||||
|
{
|
||||||
|
"name": "TEST1",
|
||||||
|
"value": "VAL1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/865521e4-1ebf-4c23-bedf-01263f49e78d' -d '{"ip_address": "192.168.1.1", "name": "test"}'
|
||||||
|
|
||||||
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/865521e4-1ebf-4c23-bedf-01263f49e78d HTTP/1.1
|
||||||
|
{
|
||||||
|
"ip_address": "192.168.1.1",
|
||||||
|
"name": "test"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 488
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "192.168.1.1",
|
||||||
|
"name": "test",
|
||||||
|
"node_directory": "/var/folders/qy/g6blgc5n7y93pzg61zyt7cmr0000gn/T/tmp_svt10ce/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/865521e4-1ebf-4c23-bedf-01263f49e78d",
|
||||||
|
"node_id": "865521e4-1ebf-4c23-bedf-01263f49e78d",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/20aef678-88ed-4b4e-b834-df52f40d90f4/adapters/0/ports/0/nio' -d '{"filters": {}, "lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||||
|
|
||||||
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/20aef678-88ed-4b4e-b834-df52f40d90f4/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"filters": {},
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 108
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Thu, 07 Jun 2018 08:13:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.1.7dev1
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"filters": {},
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue