a96fad9f3b
Using the wrong character resulted in the wrong title level being used for the response codes, which in turn caused the "detail" show/hide toggle to not be able to hide all of the per-endpoint details. This corrects these to be at the correct level. Also ran into issues after changing them where sphinx was not happy with the random title levels. This appears to be due to the order processed and whether not earlier included files had all subsequent levels. Adding an additional title in our first included file resolved that problem. Change-Id: I19405778980310f2d6d06eb7b23102f74a3d6e03 Closes-bug: #1755566
40 lines
775 B
ReStructuredText
40 lines
775 B
ReStructuredText
.. -*- rst -*-
|
|
|
|
====================================
|
|
Snapshot actions (snapshots, action)
|
|
====================================
|
|
|
|
Administrator only. Resets status for a snapshot.
|
|
|
|
|
|
Reset a snapshot's status
|
|
=========================
|
|
|
|
.. rest_method:: POST /v2/{project_id}/snapshots/{snapshot_id}/action
|
|
|
|
Resets the status. Specify the ``os-reset_status`` action in the request body.
|
|
|
|
Response codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
- 202
|
|
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- status: status_2
|
|
- os-reset_status: os-reset_status
|
|
- project_id: project_id_path
|
|
- snapshot_id: snapshot_id
|
|
|
|
Request Example
|
|
---------------
|
|
|
|
.. literalinclude:: ./samples/snapshot-status-reset-request.json
|
|
:language: javascript
|