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

22 lines
574 B
Plaintext
Raw Normal View History

2016-08-25 12:43:19 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/3f70d171-a7c7-483c-b0c3-031de0f52d2e/snapshots' -d '{"name": "snap1"}'
2016-07-26 17:57:53 +00:00
2016-08-25 12:43:19 +00:00
POST /v2/projects/3f70d171-a7c7-483c-b0c3-031de0f52d2e/snapshots HTTP/1.1
2016-07-26 17:57:53 +00:00
{
"name": "snap1"
}
HTTP/1.1 201
CONTENT-LENGTH: 170
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/2.0.0dev1
X-ROUTE: /v2/projects/{project_id}/snapshots
{
2016-08-25 12:43:19 +00:00
"created_at": 1472128867,
2016-07-26 17:57:53 +00:00
"name": "snap1",
2016-08-25 12:43:19 +00:00
"project_id": "3f70d171-a7c7-483c-b0c3-031de0f52d2e",
"snapshot_id": "2ffacd88-e742-4fe2-a1a3-5c64a74132e2"
2016-07-26 17:57:53 +00:00
}