gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
grossmj 7f72b90b0e The server has now 2 notification streams
* A new one for controller related events (compute, appliance templates etc.)
* The existing one for project related events (links, nodes etc.)
2018-08-16 21:31:57 +07:00

23 lines
592 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/8b5dfbc7-79eb-46f5-b2d5-387be884e502/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/8b5dfbc7-79eb-46f5-b2d5-387be884e502/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Connection: close
Content-Length: 170
Content-Type: application/json
Date: Thu, 16 Aug 2018 14:23:32 GMT
Server: Python/3.5 GNS3/2.2.0dev2
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1534429412,
"name": "snap1",
"project_id": "8b5dfbc7-79eb-46f5-b2d5-387be884e502",
"snapshot_id": "a1670df1-d080-407f-ad08-abf49caa119d"
}