Download the specified snapshot file. Only project admins are allowed to do this.
| Name | Type | Description |
|---|---|---|
| id | string | Name of the file to be downloaded |
List snapshot requests, optionally filtering by project
| Name | Type | Description |
|---|---|---|
| id | mixed | The project unixName or ID to check. Provided as part of the route. |
Object with succeeded (boolean), data (boolean for this method), and message (not used for this method).
Gets a list of available snapshots. IF a project ID or unixName is provided, only snapshots for that project will be returned.
| Name | Type | Description |
|---|---|---|
| int|string | id (optional) ID or unixName of the project for which to list snapshots. This is taken from the route. |
page_size and page_num parameters to control the set of records
returned.Assoc array of unixName => snapshot file name
Create a snapshot file from chunked upload
| Name | Type | Description |
|---|---|---|
| hash | string | The unique hash code for the chunked upload. Should be part of the route /snapshot/0/import/:hash |
| file | string | The file name to be used for the file in VARDIR/exportProjects destination. |
Create a new project from the specified snapshot file
| Name | Type | Description |
|---|---|---|
| id | string | The unique identifier for the snapshot to be used. Should be in the route /snapshot/:id/import |
| unixName | string | The unix name for the project to be created. This unix name cannot already exist. |
Create a project snapshot request, iff it does not already exist
| Name | Type | Description |
|---|---|---|
| id | int | The project for which the request should be checked and created. |
Object with succeeded (boolean), data (boolean for this method), and message (not used for this method).
Delete an existing project snapshot request, iff it exists
| Name | Type | Description |
|---|---|---|
| id | int | The project for which the request should be checked and deleted. |
Object with succeeded (boolean), data (boolean for this method), and message (not used for this method).
Delete an existing project snapshot file, iff it exists
| Name | Type | Description |
|---|---|---|
| id | int | The project for which the request should be checked and deleted. |
Object with succeeded (boolean), data (boolean for this method), and message (not used for this method).