2018-11-20 06:04:27 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/b8b24edf-6743-4bbd-b071-6fcdae3fcb52/snapshots' -d '{"name": "snap1"}'
|
2018-01-08 08:26:44 +00:00
|
|
|
|
2018-11-20 06:04:27 +00:00
|
|
|
POST /v2/projects/b8b24edf-6743-4bbd-b071-6fcdae3fcb52/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-11-20 06:04:27 +00:00
|
|
|
Date: Tue, 20 Nov 2018 06:01:23 GMT
|
|
|
|
Server: Python/3.6 GNS3/2.2.0dev4
|
2018-01-08 08:26:44 +00:00
|
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
|
|
|
|
|
|
|
{
|
2018-11-20 06:04:27 +00:00
|
|
|
"created_at": 1542693683,
|
2018-01-08 08:26:44 +00:00
|
|
|
"name": "snap1",
|
2018-11-20 06:04:27 +00:00
|
|
|
"project_id": "b8b24edf-6743-4bbd-b071-6fcdae3fcb52",
|
|
|
|
"snapshot_id": "2c6fa4f6-eda6-43ed-a8d6-cee157627759"
|
2018-01-08 08:26:44 +00:00
|
|
|
}
|