cinder/api-ref/source/v3/group-replication.inc
Sean McGinnis fffdac20c2 api-ref: Make v3 enclosing objects consistent
Some request details provided information about the other
JSON value while others didn't. To make things consistent
and to make sure API consumers understand how the requests
need to be structured, this adds missing instances. It also
reorders some parameter lists to be a little more logical,
so even though we can't show the nested nature of some of
these, it at least doesn't show inner values before outer
ones.

This also corrects many errors seen while going through
the API ref. This is by no means exhaustive, and is already
somewhat out of the scope for this patch, so it is expected
that there are some (many) cases that are not addressed by
this patch. Those will be fixed with ongoing effort in
future patches.

Partial-bug: #1713517
Change-Id: I30964ba8d829778fd01174d639d44ba07e4b77a6
2017-09-01 09:54:34 -05:00

129 lines
2.4 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.
Normal response codes: 202
Error response codes: badRequest(400), itemNotFound(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.
Normal response codes: 202
Error response codes: badRequest(400), itemNotFound(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.
Normal response codes: 202
Error response codes: badRequest(400), itemNotFound(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.
Normal response codes: 202
Error response codes: badRequest(400), itemNotFound(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