mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-27 09:18:09 +00:00
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
curl -i -X PUT 'http://localhost:3080/v2/projects/265f0fef-ac97-4c5a-b7a5-a3474d9fcfd1/nodes/ff8a4b59-a8f9-4a79-8a56-d2f8ca5e5598' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
|
|
|
PUT /v2/projects/265f0fef-ac97-4c5a-b7a5-a3474d9fcfd1/nodes/ff8a4b59-a8f9-4a79-8a56-d2f8ca5e5598 HTTP/1.1
|
|
{
|
|
"compute_id": "example.com",
|
|
"name": "test",
|
|
"node_type": "vpcs",
|
|
"properties": {
|
|
"startup_script": "echo test"
|
|
}
|
|
}
|
|
|
|
|
|
HTTP/1.1 201
|
|
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
|
CONTENT-LENGTH: 309
|
|
CONTENT-TYPE: application/json
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
|
X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}
|
|
|
|
{
|
|
"compute_id": "example.com",
|
|
"console": 2048,
|
|
"console_type": "telnet",
|
|
"name": "test",
|
|
"node_id": "ff8a4b59-a8f9-4a79-8a56-d2f8ca5e5598",
|
|
"node_type": "vpcs",
|
|
"project_id": "265f0fef-ac97-4c5a-b7a5-a3474d9fcfd1",
|
|
"properties": {
|
|
"startup_script": "echo test"
|
|
}
|
|
}
|