2018-06-14 08:39:31 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/8ad8d8bd-8179-4f60-8a59-e3031882b864/snapshots' -d '{"name": "snap1"}'
|
2018-01-08 08:26:44 +00:00
|
|
|
|
2018-06-14 08:39:31 +00:00
|
|
|
POST /v2/projects/8ad8d8bd-8179-4f60-8a59-e3031882b864/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-06-14 08:39:31 +00:00
|
|
|
Date: Thu, 14 Jun 2018 08:35:21 GMT
|
|
|
|
Server: Python/3.5 GNS3/2.1.8dev1
|
2018-01-08 08:26:44 +00:00
|
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
|
|
|
|
|
|
|
{
|
2018-06-14 08:39:31 +00:00
|
|
|
"created_at": 1528965321,
|
2018-01-08 08:26:44 +00:00
|
|
|
"name": "snap1",
|
2018-06-14 08:39:31 +00:00
|
|
|
"project_id": "8ad8d8bd-8179-4f60-8a59-e3031882b864",
|
|
|
|
"snapshot_id": "2494bd41-220d-452b-929d-d3d53be75f3d"
|
2018-01-08 08:26:44 +00:00
|
|
|
}
|