2016-10-20 08:54:07 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/d7a48971-8970-4028-89f7-057e1bc58042/snapshots' -d '{"name": "snap1"}'
|
2016-07-26 17:57:53 +00:00
|
|
|
|
2016-10-20 08:54:07 +00:00
|
|
|
POST /v2/projects/d7a48971-8970-4028-89f7-057e1bc58042/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
|
2016-10-20 08:54:07 +00:00
|
|
|
Date: Thu, 20 Oct 2016 08:52:58 GMT
|
|
|
|
Server: Python/3.5 GNS3/2.0.0dev2
|
2016-09-27 15:15:40 +00:00
|
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
2016-07-26 17:57:53 +00:00
|
|
|
|
|
|
|
{
|
2016-10-20 08:54:07 +00:00
|
|
|
"created_at": 1476953578,
|
2016-07-26 17:57:53 +00:00
|
|
|
"name": "snap1",
|
2016-10-20 08:54:07 +00:00
|
|
|
"project_id": "d7a48971-8970-4028-89f7-057e1bc58042",
|
|
|
|
"snapshot_id": "14e376d2-6cf9-4070-9e0e-d7a1170c5d63"
|
2016-07-26 17:57:53 +00:00
|
|
|
}
|