1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-10-11 18:38:55 +00:00
gns3-server/docs/api/examples/compute_put_projectsprojectidnatnodesnodeid.txt

30 lines
844 B
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/nat/nodes/b945c3a0-b7f5-4bf3-8173-85f032b61b53' -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/nat/nodes/b945c3a0-b7f5-4bf3-8173-85f032b61b53 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: 336
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}/nat/nodes/{node_id}
{
"name": "test",
2016-09-14 13:24:27 +00:00
"node_id": "b945c3a0-b7f5-4bf3-8173-85f032b61b53",
"ports_mapping": [
2016-08-25 12:43:19 +00:00
{
2016-09-14 13:24:27 +00:00
"interface": "virbr0",
"name": "virbr0",
"port_number": 0,
2016-08-25 12:43:19 +00:00
"type": "ethernet"
}
],
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"status": "started"
}