gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt

23 lines
593 B
Plaintext
Raw Normal View History

2017-03-21 12:32:04 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/ca0187d8-c183-49b1-a714-b7160264172b/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/ca0187d8-c183-49b1-a714-b7160264172b/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Connection: close
Content-Length: 170
Content-Type: application/json
Date: Tue, 21 Mar 2017 09:32:04 GMT
Server: Python/3.6 GNS3/2.0.0dev11
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1490088724,
"name": "snap1",
"project_id": "ca0187d8-c183-49b1-a714-b7160264172b",
"snapshot_id": "b5fed8f7-3482-435c-9df0-d25b9afa9cec"
}