2016-08-15 10:08:59 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/40536e06-c138-4cb1-8202-ae562227bfc3/snapshots' -d '{"name": "snap1"}'
|
2016-07-26 17:57:53 +00:00
|
|
|
|
2016-08-15 10:08:59 +00:00
|
|
|
POST /v2/projects/40536e06-c138-4cb1-8202-ae562227bfc3/snapshots HTTP/1.1
|
2016-07-26 17:57:53 +00:00
|
|
|
{
|
|
|
|
"name": "snap1"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 201
|
|
|
|
CONTENT-LENGTH: 170
|
|
|
|
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}/snapshots
|
|
|
|
|
|
|
|
{
|
2016-08-15 10:08:59 +00:00
|
|
|
"created_at": 1471255682,
|
2016-07-26 17:57:53 +00:00
|
|
|
"name": "snap1",
|
2016-08-15 10:08:59 +00:00
|
|
|
"project_id": "40536e06-c138-4cb1-8202-ae562227bfc3",
|
|
|
|
"snapshot_id": "74e0d54a-84c5-4cda-99ee-86acb1f6dcca"
|
2016-07-26 17:57:53 +00:00
|
|
|
}
|