mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-25 23:41:07 +00:00
7f72b90b0e
* A new one for controller related events (compute, appliance templates etc.) * The existing one for project related events (links, nodes etc.)
23 lines
592 B
Plaintext
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"
|
|
}
|