/v2/projects/{project_id}/snapshots ------------------------------------------------------------------------------------------------------------------------------------------ .. contents:: 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 ******* .. raw:: html <table> <tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr> <tr><td>name</td> <td>✔</td> <td></td> <td>Snapshot name</td> </tr> </table> Output ******* .. raw:: html <table> <tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr> <tr><td>created_at</td> <td>✔</td> <td>integer</td> <td>Date of the snapshot (UTC timestamp)</td> </tr> <tr><td>name</td> <td>✔</td> <td>string</td> <td>Project name</td> </tr> <tr><td>project_id</td> <td>✔</td> <td>string</td> <td>Project UUID</td> </tr> <tr><td>snapshot_id</td> <td>✔</td> <td>string</td> <td>Snapshot UUID</td> </tr> </table> Sample session *************** .. literalinclude:: ../../../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 *************** .. literalinclude:: ../../../examples/controller_get_projectsprojectidsnapshots.txt