2016-09-27 15:15:40 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/5485e521-146b-4be6-83e8-670f2573e63a/snapshots' -d '{"name": "snap1"}'
|
2016-07-26 17:57:53 +00:00
|
|
|
|
2016-09-27 15:15:40 +00:00
|
|
|
POST /v2/projects/5485e521-146b-4be6-83e8-670f2573e63a/snapshots HTTP/1.1
|
2016-07-26 17:57:53 +00:00
|
|
|
{
|
|
|
|
"name": "snap1"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 201
|
2016-09-27 15:15:40 +00:00
|
|
|
Content-Length: 170
|
|
|
|
Content-Type: application/json
|
|
|
|
Date: Tue, 27 Sep 2016 10:01:24 GMT
|
|
|
|
Server: Python/3.5 GNS3/2.0.0dev1
|
|
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
2016-07-26 17:57:53 +00:00
|
|
|
|
|
|
|
{
|
2016-09-27 15:15:40 +00:00
|
|
|
"created_at": 1474970484,
|
2016-07-26 17:57:53 +00:00
|
|
|
"name": "snap1",
|
2016-09-27 15:15:40 +00:00
|
|
|
"project_id": "5485e521-146b-4be6-83e8-670f2573e63a",
|
|
|
|
"snapshot_id": "1f94aef3-dc18-4b44-abc6-49f04da13aaa"
|
2016-07-26 17:57:53 +00:00
|
|
|
}
|