mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-25 15:31:08 +00:00
23 lines
593 B
Plaintext
23 lines
593 B
Plaintext
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"
|
|
}
|