mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Add missing files for API documentation.
This commit is contained in:
1 parent
53928b884f
commit
1289d20a14
38 files changed
+927
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/e6bc5a49-d2ce-4799-a65b-f118646eca13/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/cloud/nodes/e6bc5a49-d2ce-4799-a65b-f118646eca13/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 104
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 05:59:53 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/pytest-of-grossmj/pytest-36/test_json4/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/abfd8d3a-3c56-4b15-95d8-1da6c1c8faf3/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/abfd8d3a-3c56-4b15-95d8-1da6c1c8faf3/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 05:59:53 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/2edccb95-7fae-4448-bd31-16994adbadac/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/nat/nodes/2edccb95-7fae-4448-bd31-16994adbadac/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 104
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:00:01 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/pytest-of-grossmj/pytest-36/test_json4/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/7971dba5-3e69-4171-a2eb-4d536306de70/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/7971dba5-3e69-4171-a2eb-4d536306de70/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:00:01 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3cccca4a-df04-435b-9005-d5958ad2313e/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/qemu/nodes/3cccca4a-df04-435b-9005-d5958ad2313e/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 123
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:00:37 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/tmph4dpdlx_/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8550cc69-3698-4397-a0f6-4fde1152de95/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8550cc69-3698-4397-a0f6-4fde1152de95/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:00:37 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/837982bc-0f0c-4869-b121-fb59ee30bc85/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/traceng/nodes/837982bc-0f0c-4869-b121-fb59ee30bc85/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 123
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:00:39 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/tmph4dpdlx_/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/d49396d8-b927-4a55-a99b-b5f858e60cf5/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/d49396d8-b927-4a55-a99b-b5f858e60cf5/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:00:39 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a8bd1f77-0840-47ab-9cfa-895ce462d3fc/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/virtualbox/nodes/a8bd1f77-0840-47ab-9cfa-895ce462d3fc/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 123
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:00:40 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/tmph4dpdlx_/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/452ccaf9-fc46-47ae-b36d-30370ce380c6/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/452ccaf9-fc46-47ae-b36d-30370ce380c6/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:00:40 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/a860e414-f9c6-4135-a72b-465eb93eb898/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/vmware/nodes/a860e414-f9c6-4135-a72b-465eb93eb898/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 123
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:00:54 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/tmph4dpdlx_/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/246d16ac-c644-4ad5-8614-b0edc0a954c5/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/246d16ac-c644-4ad5-8614-b0edc0a954c5/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:00:55 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/05aec68c-9d56-48cb-aa00-7a693aede93e/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/vpcs/nodes/05aec68c-9d56-48cb-aa00-7a693aede93e/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 123
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:00:59 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/tmp/tmph4dpdlx_/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/96e6d109-d260-4bbb-9765-149098ac4fb3/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/96e6d109-d260-4bbb-9765-149098ac4fb3/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:00:59 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/appliances/259b41b8-d70a-4882-8ba3-017ee11ecd99'
|
||||
|
||||
DELETE /v2/appliances/259b41b8-d70a-4882-8ba3-017ee11ecd99 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 204
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
Content-Type: application/octet-stream
|
||||
Date: Tue, 20 Nov 2018 06:01:00 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/appliances/{appliance_id}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/appliances/0579a18f-77c6-4da6-b410-a9a1ab790606'
|
||||
|
||||
GET /v2/appliances/0579a18f-77c6-4da6-b410-a9a1ab790606 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 380
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:01:00 GMT
|
||||
ETag: "80cc9ad2c2b83a9f439433f47ad78f62"
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/appliances/{appliance_id}
|
||||
|
||||
{
|
||||
"appliance_id": "0579a18f-77c6-4da6-b410-a9a1ab790606",
|
||||
"appliance_type": "vpcs",
|
||||
"base_script_file": "vpcs_base_config.txt",
|
||||
"builtin": false,
|
||||
"category": "guest",
|
||||
"compute_id": "local",
|
||||
"console_auto_start": false,
|
||||
"console_type": "telnet",
|
||||
"default_name_format": "PC{0}",
|
||||
"name": "VPCS_TEST",
|
||||
"symbol": ":/symbols/vpcs_guest.svg"
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/appliances' -d '{"appliance_type": "ethernet_hub", "compute_id": "local", "name": "Ethernet hub appliance"}'
|
||||
|
||||
POST /v2/appliances HTTP/1.1
|
||||
{
|
||||
"appliance_type": "ethernet_hub",
|
||||
"compute_id": "local",
|
||||
"name": "Ethernet hub appliance"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 978
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:01:01 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/appliances
|
||||
|
||||
{
|
||||
"appliance_id": "a5ee20d1-1217-4c2f-93d8-eefc1fba7a92",
|
||||
"appliance_type": "ethernet_hub",
|
||||
"builtin": false,
|
||||
"category": "switch",
|
||||
"compute_id": "local",
|
||||
"default_name_format": "Hub{0}",
|
||||
"name": "Ethernet hub appliance",
|
||||
"ports_mapping": [
|
||||
{
|
||||
"name": "Ethernet0",
|
||||
"port_number": 0
|
||||
},
|
||||
{
|
||||
"name": "Ethernet1",
|
||||
"port_number": 1
|
||||
},
|
||||
{
|
||||
"name": "Ethernet2",
|
||||
"port_number": 2
|
||||
},
|
||||
{
|
||||
"name": "Ethernet3",
|
||||
"port_number": 3
|
||||
},
|
||||
{
|
||||
"name": "Ethernet4",
|
||||
"port_number": 4
|
||||
},
|
||||
{
|
||||
"name": "Ethernet5",
|
||||
"port_number": 5
|
||||
},
|
||||
{
|
||||
"name": "Ethernet6",
|
||||
"port_number": 6
|
||||
},
|
||||
{
|
||||
"name": "Ethernet7",
|
||||
"port_number": 7
|
||||
}
|
||||
],
|
||||
"symbol": ":/symbols/hub.svg"
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/appliances/226095d7-c228-46d7-a7d6-dd488a9027a4/duplicate' -d '{}'
|
||||
|
||||
POST /v2/appliances/226095d7-c228-46d7-a7d6-dd488a9027a4/duplicate HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
Connection: close
|
||||
Content-Length: 380
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:01:00 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/appliances/{appliance_id}/duplicate
|
||||
|
||||
{
|
||||
"appliance_id": "79876d13-3e21-434e-9b4c-3ace1c88493c",
|
||||
"appliance_type": "vpcs",
|
||||
"base_script_file": "vpcs_base_config.txt",
|
||||
"builtin": false,
|
||||
"category": "guest",
|
||||
"compute_id": "local",
|
||||
"console_auto_start": false,
|
||||
"console_type": "telnet",
|
||||
"default_name_format": "PC{0}",
|
||||
"name": "VPCS_TEST",
|
||||
"symbol": ":/symbols/vpcs_guest.svg"
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/appliances/a96be97e-5ffe-4225-af8b-6347f858a2e5' -d '{"appliance_id": "a96be97e-5ffe-4225-af8b-6347f858a2e5", "appliance_type": "vpcs", "base_script_file": "vpcs_base_config.txt", "category": "guest", "compute_id": "local", "console_auto_start": false, "console_type": "telnet", "default_name_format": "PC{0}", "name": "VPCS_TEST_RENAMED", "symbol": ":/symbols/vpcs_guest.svg"}'
|
||||
|
||||
PUT /v2/appliances/a96be97e-5ffe-4225-af8b-6347f858a2e5 HTTP/1.1
|
||||
{
|
||||
"appliance_id": "a96be97e-5ffe-4225-af8b-6347f858a2e5",
|
||||
"appliance_type": "vpcs",
|
||||
"base_script_file": "vpcs_base_config.txt",
|
||||
"category": "guest",
|
||||
"compute_id": "local",
|
||||
"console_auto_start": false,
|
||||
"console_type": "telnet",
|
||||
"default_name_format": "PC{0}",
|
||||
"name": "VPCS_TEST_RENAMED",
|
||||
"symbol": ":/symbols/vpcs_guest.svg"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
Connection: close
|
||||
Content-Length: 388
|
||||
Content-Type: application/json
|
||||
Date: Tue, 20 Nov 2018 06:01:00 GMT
|
||||
Server: Python/3.6 GNS3/2.2.0dev4
|
||||
X-Route: /v2/appliances/{appliance_id}
|
||||
|
||||
{
|
||||
"appliance_id": "a96be97e-5ffe-4225-af8b-6347f858a2e5",
|
||||
"appliance_type": "vpcs",
|
||||
"base_script_file": "vpcs_base_config.txt",
|
||||
"builtin": false,
|
||||
"category": "guest",
|
||||
"compute_id": "local",
|
||||
"console_auto_start": false,
|
||||
"console_type": "telnet",
|
||||
"default_name_format": "PC{0}",
|
||||
"name": "VPCS_TEST_RENAMED",
|
||||
"symbol": ":/symbols/vpcs_guest.svg"
|
||||
}
|
||||
Reference in new issue
Block a user