mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-27 08:12:32 +00:00
2.5 KiB
2.5 KiB
/v2/projects/{project_id}/snapshots
POST /v2/projects/{project_id}/snapshots
Create snapshot of a project
Parameters
- project_id: Project UUID
Response status codes
- 201: Snapshot created
- 404: The project doesn't exist
Input
Name | Mandatory | Type | Description |
---|---|---|---|
name | ✔ | Snapshot name |
Output
Name | Mandatory | Type | Description |
---|---|---|---|
created_at | ✔ | integer | Date of the snapshot (UTC timestamp) |
name | ✔ | string | Project name |
project_id | ✔ | string | Project UUID |
snapshot_id | ✔ | string | Snapshot UUID |
Sample session
../../../examples/controller_post_projectsprojectidsnapshots.txt
GET /v2/projects/{project_id}/snapshots
List snapshots of a project
Parameters
- project_id: Project UUID
Response status codes
- 200: Snapshot list returned
- 404: The project doesn't exist
Sample session
../../../examples/controller_get_projectsprojectidsnapshots.txt