mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-02 21:28:10 +00:00
23 lines
592 B
Plaintext
23 lines
592 B
Plaintext
curl -i -X POST 'http://localhost:3080/v2/projects/0ca9776f-2707-4e57-b31c-4e537652b158/snapshots' -d '{"name": "snap1"}'
|
|
|
|
POST /v2/projects/0ca9776f-2707-4e57-b31c-4e537652b158/snapshots HTTP/1.1
|
|
{
|
|
"name": "snap1"
|
|
}
|
|
|
|
|
|
HTTP/1.1 201
|
|
Connection: close
|
|
Content-Length: 170
|
|
Content-Type: application/json
|
|
Date: Tue, 27 Nov 2018 15:09:54 GMT
|
|
Server: Python/3.6 GNS3/2.2.0dev5
|
|
X-Route: /v2/projects/{project_id}/snapshots
|
|
|
|
{
|
|
"created_at": 1543331391,
|
|
"name": "snap1",
|
|
"project_id": "0ca9776f-2707-4e57-b31c-4e537652b158",
|
|
"snapshot_id": "e3597135-7567-434e-ae9c-09d55cb0d1ec"
|
|
}
|