2018-11-20 09:21:32 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/8e5574d9-d44a-488c-ba2e-b10b9ddf783a/snapshots' -d '{"name": "snap1"}'
|
2018-01-08 08:26:44 +00:00
|
|
|
|
2018-11-20 09:21:32 +00:00
|
|
|
POST /v2/projects/8e5574d9-d44a-488c-ba2e-b10b9ddf783a/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 09:21:32 +00:00
|
|
|
Date: Tue, 20 Nov 2018 08:48:57 GMT
|
|
|
|
Server: Python/3.6 GNS3/2.2.0dev5
|
2018-01-08 08:26:44 +00:00
|
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
|
|
|
|
|
|
|
{
|
2018-11-20 09:21:32 +00:00
|
|
|
"created_at": 1542703727,
|
2018-01-08 08:26:44 +00:00
|
|
|
"name": "snap1",
|
2018-11-20 09:21:32 +00:00
|
|
|
"project_id": "8e5574d9-d44a-488c-ba2e-b10b9ddf783a",
|
|
|
|
"snapshot_id": "9ab0ef3d-4fdb-46a0-ac2d-509308c34ef9"
|
2018-01-08 08:26:44 +00:00
|
|
|
}
|