1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 17:58:08 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt

23 lines
592 B
Plaintext
Raw Normal View History

2017-06-29 15:14:09 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/f7b4e81b-00cf-4e92-a783-f7a9ad71d225/snapshots' -d '{"name": "snap1"}'
2017-03-21 12:32:04 +00:00
2017-06-29 15:14:09 +00:00
POST /v2/projects/f7b4e81b-00cf-4e92-a783-f7a9ad71d225/snapshots HTTP/1.1
2017-03-21 12:32:04 +00:00
{
"name": "snap1"
}
HTTP/1.1 201
Connection: close
Content-Length: 170
Content-Type: application/json
2017-06-29 15:14:09 +00:00
Date: Thu, 29 Jun 2017 15:08:09 GMT
Server: Python/3.6 GNS3/2.1.0dev1
2017-03-21 12:32:04 +00:00
X-Route: /v2/projects/{project_id}/snapshots
{
2017-06-29 15:14:09 +00:00
"created_at": 1498748890,
2017-03-21 12:32:04 +00:00
"name": "snap1",
2017-06-29 15:14:09 +00:00
"project_id": "f7b4e81b-00cf-4e92-a783-f7a9ad71d225",
"snapshot_id": "f87df065-9340-4421-b67d-f1ecd81258b4"
2017-03-21 12:32:04 +00:00
}