[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:
parent
2d62329abd
commit
1e6967c95b
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"promote": null
|
||||||
|
}
|
3
api-ref/source/samples/share-replica-resync-request.json
Normal file
3
api-ref/source/samples/share-replica-resync-request.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"resync": null
|
||||||
|
}
|
@ -154,6 +154,12 @@ Request
|
|||||||
- project_id: project_id_path
|
- project_id: project_id_path
|
||||||
- share_replica_id: share_replica_id_path
|
- share_replica_id: share_replica_id_path
|
||||||
|
|
||||||
|
Request example
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. literalinclude:: samples/share-replica-promote-request.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
Resync share replica
|
Resync share replica
|
||||||
====================
|
====================
|
||||||
@ -187,6 +193,13 @@ Request
|
|||||||
- share_replica_id: share_replica_id_path
|
- share_replica_id: share_replica_id_path
|
||||||
|
|
||||||
|
|
||||||
|
Request example
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. literalinclude:: samples/share-replica-resync-request.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
|
|
||||||
List share replicas
|
List share replicas
|
||||||
===================
|
===================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user