gns3-server/docs/api/examples/controller_post_projectsprojectidsnapshots.txt
2018-06-07 10:26:06 +02:00

23 lines
592 B
Plaintext

curl -i -X POST 'http://localhost:3080/v2/projects/fb65405c-5698-4712-8a79-68c79991e05c/snapshots' -d '{"name": "snap1"}'
POST /v2/projects/fb65405c-5698-4712-8a79-68c79991e05c/snapshots HTTP/1.1
{
"name": "snap1"
}
HTTP/1.1 201
Connection: close
Content-Length: 170
Content-Type: application/json
Date: Thu, 07 Jun 2018 08:14:22 GMT
Server: Python/3.6 GNS3/2.1.7dev1
X-Route: /v2/projects/{project_id}/snapshots
{
"created_at": 1528359262,
"name": "snap1",
"project_id": "fb65405c-5698-4712-8a79-68c79991e05c",
"snapshot_id": "07cd311f-4591-453f-8cd7-af24ed4b524e"
}