1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00
gns3-server/docs/api/examples/compute_put_projectsprojectidcloudnodesnodeid.txt

93 lines
2.1 KiB
Plaintext
Raw Normal View History

2016-09-14 13:24:27 +00:00
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/e7b150e3-b03a-4a17-a28f-90e7a84e89d3' -d '{"name": "test"}'
2016-08-25 12:43:19 +00:00
2016-09-14 13:24:27 +00:00
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/e7b150e3-b03a-4a17-a28f-90e7a84e89d3 HTTP/1.1
2016-08-25 12:43:19 +00:00
{
"name": "test"
}
HTTP/1.1 200
2016-09-14 13:24:27 +00:00
CONTENT-LENGTH: 1590
2016-08-25 12:43:19 +00:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/2.0.0dev1
X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
{
"interfaces": [
{
"name": "bridge0",
"type": "ethernet"
},
{
"name": "en0",
"type": "ethernet"
},
{
"name": "en1",
"type": "ethernet"
},
{
"name": "en2",
"type": "ethernet"
},
{
"name": "fw0",
"type": "ethernet"
},
{
"name": "lo0",
"type": "ethernet"
},
{
"name": "p2p0",
"type": "ethernet"
},
{
2016-09-14 13:24:27 +00:00
"name": "vmnet1",
2016-08-25 12:43:19 +00:00
"type": "ethernet"
},
{
2016-09-14 13:24:27 +00:00
"name": "vmnet10",
2016-08-25 12:43:19 +00:00
"type": "ethernet"
},
{
2016-09-14 13:24:27 +00:00
"name": "vmnet2",
2016-08-25 12:43:19 +00:00
"type": "ethernet"
},
{
"name": "vmnet3",
"type": "ethernet"
},
{
"name": "vmnet4",
"type": "ethernet"
},
{
"name": "vmnet5",
"type": "ethernet"
},
{
"name": "vmnet6",
"type": "ethernet"
},
{
"name": "vmnet7",
"type": "ethernet"
},
{
"name": "vmnet8",
"type": "ethernet"
},
{
"name": "vmnet9",
"type": "ethernet"
}
],
"name": "test",
2016-09-14 13:24:27 +00:00
"node_id": "e7b150e3-b03a-4a17-a28f-90e7a84e89d3",
"ports_mapping": [],
2016-08-25 12:43:19 +00:00
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"status": "started"
}