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