2016-08-25 15:43:19 +03:00
|
|
|
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
|
2016-09-14 16:24:27 +03:00
|
|
|
CONTENT-LENGTH: 1593
|
2016-08-25 15:43:19 +03: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
|
|
|
|
|
|
|
|
{
|
|
|
|
"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 16:24:27 +03:00
|
|
|
"name": "vmnet1",
|
2016-08-25 15:43:19 +03:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2016-09-14 16:24:27 +03:00
|
|
|
"name": "vmnet10",
|
2016-08-25 15:43:19 +03:00
|
|
|
"type": "ethernet"
|
|
|
|
},
|
|
|
|
{
|
2016-09-14 16:24:27 +03:00
|
|
|
"name": "vmnet2",
|
2016-08-25 15:43:19 +03: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": "Cloud 1",
|
2016-09-14 16:24:27 +03:00
|
|
|
"node_id": "6f4beb91-7921-4f1c-b9cd-ffeac5aa93f2",
|
|
|
|
"ports_mapping": [],
|
2016-08-25 15:43:19 +03:00
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
|
|
"status": "started"
|
|
|
|
}
|