THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Replicate to multiple agents
Code Block |
---|
...
POST /system/replication/all/replicate |
...
Request |
...
{ |
...
"action" : |
...
"add", |
...
"paths" : [ "/content/tree1", "/content/tree2" ], |
...
"agents" : [ "publish1", "publish2" ] |
...
} |
...
Response |
...
{ |
...
"statusList" : [ { "agent" : "publish1", "status" : "queued" }, |
...
{ "agent" : "publish2", "status" : "error" } ] |
...
"id" : "ds54eaw543rft4" |
...
} |
code
Import to multiple agents
Code Block |
---|
POST /system/replication/all/import |
...
Request |
...
{ |
...
"action" : |
...
"import", |
...
"paths" : [ "/content/tree1", "/content/tree2" ], |
...
"agents" : [ "publish1", "publish2" ], |
...
"package": "packagestream" |
...
} |
...
-----------------------------separator |
...
Content-Disposition: form-data; name="packagestream"; filename="vltpackage.zip" |
...
Content-Type: application/octetstream |
...
(binary data) |
...
-----------------------------separator |
...
Response
{
Response { "statusList" : [ { "agent" : "publish1", "status" : "queued" }, |
...
{ "agent" : "publish2", "status" : "error" } ], |
...
"id": "dfqw43t3g" |
...
}
...
}
|