1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 01:38:08 +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/8b5dfbc7-79eb-46f5-b2d5-387be884e502/snapshots' -d '{"name": "snap1"}'
2018-01-08 08:26:44 +00:00
POST /v2/projects/8b5dfbc7-79eb-46f5-b2d5-387be884e502/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, 16 Aug 2018 14:23:32 GMT
Server: Python/3.5 GNS3/2.2.0dev2
2018-01-08 08:26:44 +00:00
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1534429412,
2018-01-08 08:26:44 +00:00
"name": "snap1",
"project_id": "8b5dfbc7-79eb-46f5-b2d5-387be884e502",
"snapshot_id": "a1670df1-d080-407f-ad08-abf49caa119d"
2018-01-08 08:26:44 +00:00
}