mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Doc runreplication task.
This commit is contained in:
@@ -21,7 +21,8 @@ Every lifepreserver class request contains the following parameters:
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
| action | | supported actions include "listcron", "cronsnap", "cronscrub", "listsnap", "revertsnap", "removesnap", |
|
||||
| | | "addreplication", "removereplication", "listreplication", "initreplication", "settings", and "savesettings" |
|
||||
| | | "addreplication", "removereplication", "listreplication", "runreplication", "initreplication", "settings", and |
|
||||
| | | "savesettings" |
|
||||
| | | |
|
||||
+---------------------------------+---------------+----------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -712,6 +713,68 @@ dataset on the remote system to store the replicated data ("rdset"), and the nam
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. _Start Replication:
|
||||
|
||||
Start Replication
|
||||
=================
|
||||
|
||||
The "runreplication" action can be used to manually replicate the specified dataset to the specified remote server.
|
||||
|
||||
**REST Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
PUT /sysadm/lifepreserver
|
||||
{
|
||||
"host" : "10.0.10.100",
|
||||
"dataset" : "mypool",
|
||||
"action" : "runreplication"
|
||||
}
|
||||
|
||||
**REST Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"runreplication": {
|
||||
"dataset": "mypool",
|
||||
"host": "10.0.10.100"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
**WebSocket Request**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"id" : "fooid",
|
||||
"name" : "lifepreserver",
|
||||
"args" : {
|
||||
"host" : "10.0.10.100",
|
||||
"dataset" : "mypool",
|
||||
"action" : "runreplication"
|
||||
},
|
||||
"namespace" : "sysadm"
|
||||
}
|
||||
|
||||
**WebSocket Response**
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
{
|
||||
"args": {
|
||||
"runreplication": {
|
||||
"dataset": "mypool",
|
||||
"host": "10.0.10.100"
|
||||
}
|
||||
},
|
||||
"id": "fooid",
|
||||
"name": "response",
|
||||
"namespace": "sysadm"
|
||||
}
|
||||
|
||||
.. _Initialize Replication:
|
||||
|
||||
Initialize Replication
|
||||
|
||||
Reference in New Issue
Block a user