gns3-server/docs/api/examples/controller_put_projectsprojectidnodesnodeid.txt

63 lines
1.7 KiB
Plaintext
Raw Normal View History

2016-09-27 18:15:40 +03:00
curl -i -X PUT 'http://localhost:3080/v2/projects/17b6a713-2586-459e-a84f-cf7a5368b367/nodes/38d965aa-7dc2-4287-9719-d6aa069660eb' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
2016-09-27 18:15:40 +03:00
PUT /v2/projects/17b6a713-2586-459e-a84f-cf7a5368b367/nodes/38d965aa-7dc2-4287-9719-d6aa069660eb HTTP/1.1
{
"compute_id": "example.com",
"name": "test",
"node_type": "vpcs",
"properties": {
"startup_script": "echo test"
}
}
2016-06-04 11:40:39 +03:00
HTTP/1.1 200
2016-09-27 18:15:40 +03:00
Content-Length: 1041
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}
{
2016-06-04 11:40:39 +03:00
"command_line": null,
"compute_id": "example.com",
"console": 2048,
2016-06-04 11:40:39 +03:00
"console_host": "example.org",
"console_type": null,
2016-09-14 16:24:27 +03:00
"first_port_name": null,
2016-08-25 15:43:19 +03:00
"height": 59,
2016-06-14 11:24:55 +03:00
"label": {
2016-07-11 16:37:57 +03:00
"rotation": 0,
"style": "font-size: 10;font-familly: Verdana",
2016-07-22 14:54:57 +03:00
"text": "test",
2016-08-25 15:43:19 +03:00
"x": null,
"y": -40
2016-06-14 11:24:55 +03:00
},
"name": "test",
2016-06-04 11:40:39 +03:00
"node_directory": null,
2016-09-27 18:15:40 +03:00
"node_id": "38d965aa-7dc2-4287-9719-d6aa069660eb",
"node_type": "vpcs",
2016-09-14 16:24:27 +03:00
"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"
}
],
2016-09-27 18:15:40 +03:00
"project_id": "17b6a713-2586-459e-a84f-cf7a5368b367",
2016-06-14 11:24:55 +03:00
"properties": {},
"status": "stopped",
"symbol": ":/symbols/computer.svg",
2016-08-25 15:43:19 +03:00
"width": 65,
2016-06-14 11:24:55 +03:00
"x": 0,
"y": 0,
"z": 0
}