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

23 lines
592 B
Plaintext
Raw Normal View History

2020-01-08 02:52:15 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/25402c96-0aeb-4b65-9bce-4b36ed725b1b/snapshots' -d '{"name": "snap1"}'
2018-01-08 08:26:44 +00:00
2020-01-08 02:52:15 +00:00
POST /v2/projects/25402c96-0aeb-4b65-9bce-4b36ed725b1b/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
2020-01-08 02:52:15 +00:00
Date: Wed, 08 Jan 2020 02:29:18 GMT
Server: Python/3.6 GNS3/2.2.4dev1
2018-01-08 08:26:44 +00:00
X-Route: /v2/projects/{project_id}/snapshots
{
2020-01-08 02:52:15 +00:00
"created_at": 1578450535,
2018-01-08 08:26:44 +00:00
"name": "snap1",
2020-01-08 02:52:15 +00:00
"project_id": "25402c96-0aeb-4b65-9bce-4b36ed725b1b",
"snapshot_id": "d7f7b452-0f8b-4f9d-b67e-8119fcf93898"
2018-01-08 08:26:44 +00:00
}