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

23 lines
592 B
Plaintext
Raw Normal View History

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
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
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
{
"created_at": 1528965321,
2018-01-08 08:26:44 +00:00
"name": "snap1",
"project_id": "8ad8d8bd-8179-4f60-8a59-e3031882b864",
"snapshot_id": "2494bd41-220d-452b-929d-d3d53be75f3d"
2018-01-08 08:26:44 +00:00
}