cinder/api-ref/source/v3/group-replication.inc
Sean McGinnis a96fad9f3b Fix api-ref response code title levels
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
2018-03-13 15:57:54 -05:00

161 lines
2.6 KiB
ReStructuredText

.. -*- rst -*-
Group replication
=================
Lists targets, enables, disables, and fails over group replication.
Available since API microversion 3.38.
List replication targets
~~~~~~~~~~~~~~~~~~~~~~~~
.. rest_method:: POST /v3/{project_id}/groups/{group_id}/action
Lists replication targets for a group.
Response codes
--------------
.. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- group_id: group_id
Request Example
---------------
.. literalinclude:: ./samples/group-replication-list-targets.json
:language: javascript
Response Parameters
-------------------
.. rest_parameters:: parameters.yaml
- backend_id: backend_id_target
- unique_key: replication_targets_unique_key
Response Example
----------------
.. literalinclude:: ./samples/group-replication-target.json
:language: javascript
Enable group replication
~~~~~~~~~~~~~~~~~~~~~~~~
.. rest_method:: POST /v3/{project_id}/groups/{group_id}/action
Enable replication for a group.
Response codes
--------------
.. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- group_id: group_id
Request Example
---------------
.. literalinclude:: ./samples/group-replication-enable.json
:language: javascript
Disable group replication
~~~~~~~~~~~~~~~~~~~~~~~~~
.. rest_method:: POST /v3/{project_id}/groups/{group_id}/action
Disable replication for a group.
Response codes
--------------
.. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- group_id: group_id
Request Example
---------------
.. literalinclude:: ./samples/group-replication-disable.json
:language: javascript
Failover replication
~~~~~~~~~~~~~~~~~~~~
.. rest_method:: POST /v3/{project_id}/groups/{group_id}/action
Failover a replicated group.
Response codes
--------------
.. rest_status_code:: success ../status.yaml
- 202
.. rest_status_code:: error ../status.yaml
- 400
- 404
Request
-------
.. rest_parameters:: parameters.yaml
- project_id: project_id_path
- group_id: group_id
- allow_attached_volume: allow_attached_volume
- secondary_backend_id: backend_id_target
Request Example
---------------
.. literalinclude:: ./samples/group-replication-failover.json
:language: javascript