1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 19:28:07 +00:00
gns3-server/docs/api/examples/compute_post_projectsprojectidcloudnodes.txt
2016-09-14 15:31:58 +02:00

93 lines
2.0 KiB
Plaintext

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
CONTENT-LENGTH: 1593
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"
},
{
"name": "vmnet1",
"type": "ethernet"
},
{
"name": "vmnet10",
"type": "ethernet"
},
{
"name": "vmnet2",
"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",
"node_id": "6f4beb91-7921-4f1c-b9cd-ffeac5aa93f2",
"ports_mapping": [],
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"status": "started"
}