[api-ref] Add request examples for share replica APIs

Samples illustrate how to send POST requests to the
/v2/share-replicas/{replica_id}/action to initiate
share replica promotion and resync actions.

Change-Id: I6c4890909406668322e387466620d591f161a93a
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
This commit is contained in:
Goutham Pacha Ravi 2021-11-02 12:23:11 -07:00
parent 2d62329abd
commit 1e6967c95b
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"promote": null
}

View File

@ -0,0 +1,3 @@
{
"resync": null
}

View File

@ -154,6 +154,12 @@ Request
- project_id: project_id_path
- share_replica_id: share_replica_id_path
Request example
---------------
.. literalinclude:: samples/share-replica-promote-request.json
:language: javascript
Resync share replica
====================
@ -187,6 +193,13 @@ Request
- share_replica_id: share_replica_id_path
Request example
---------------
.. literalinclude:: samples/share-replica-resync-request.json
:language: javascript
List share replicas
===================