2016-11-21 14:08:44 -05:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
Snapshot actions (snapshots, action)
|
|
|
|
====================================
|
|
|
|
|
2018-06-20 17:00:22 +08:00
|
|
|
Administrator only, depending on policy settings.
|
|
|
|
Resets, updates status for a snapshot.
|
2016-11-21 14:08:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
Reset a snapshot's status
|
2017-09-12 16:58:31 +08:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-11-21 14:08:44 -05:00
|
|
|
|
2017-09-12 16:58:31 +08:00
|
|
|
.. rest_method:: POST /v3/{project_id}/snapshots/{snapshot_id}/action
|
2016-11-21 14:08:44 -05:00
|
|
|
|
|
|
|
Resets the status. Specify the ``os-reset_status`` action in the request body.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 202
|
2016-11-21 14:08:44 -05:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-12 16:58:31 +08:00
|
|
|
- project_id: project_id_path
|
|
|
|
- snapshot_id: snapshot_id_path
|
2016-11-21 14:08:44 -05:00
|
|
|
- os-reset_status: os-reset_status
|
2018-10-30 11:03:09 +05:30
|
|
|
- status: status_snap
|
2016-11-21 14:08:44 -05:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/snapshot-status-reset-request.json
|
|
|
|
:language: javascript
|
2018-06-20 17:00:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
Update status of a snapshot
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. rest_method:: POST /v3/{project_id}/snapshots/{snapshot_id}/action
|
|
|
|
|
|
|
|
Update fields related to the status of a snapshot.
|
|
|
|
Specify the ``os-update_snapshot_status`` action in the request body.
|
|
|
|
|
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- project_id: project_id_path
|
|
|
|
- snapshot_id: snapshot_id_path
|
|
|
|
- os-update_snapshot_status: os-update_snapshot_status
|
2018-10-30 11:03:09 +05:30
|
|
|
- status: status_snap
|
2018-06-20 17:00:22 +08:00
|
|
|
- progress: snapshot_progress
|
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/snapshot-status-update-request.json
|
|
|
|
:language: javascript
|
2018-06-21 23:34:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
Force delete a snapshot
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.. rest_method:: POST /v3/{project_id}/snapshots/{snapshot_id}/action
|
|
|
|
|
|
|
|
Attempts to force delete a snapshot, regardless of state. Specify the
|
|
|
|
``os-force_delete`` action in the request body.
|
|
|
|
|
|
|
|
Response codes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 202
|
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- project_id: project_id_path
|
|
|
|
- snapshot_id: snapshot_id_path
|
|
|
|
- os-force_delete: os-force_delete
|
|
|
|
|
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/snapshot-force-delete-request.json
|
|
|
|
:language: javascript
|