
xdmp:foreign-cluster-status( $host-id as xs:unsignedLong, $foreign-cluster-id as xs:unsignedLong ) as element(foreign-cluster-status)
Returns the status of a foreign cluster from a host's point of view.
| Parameters | |
|---|---|
| host-id | A bootstrap host ID on the local cluster. |
| foreign-cluster-id | A foreign cluster ID. |
http://marklogic.com/xdmp/privileges/status
The structure of the data returned is as follows:
foreign-cluster-idforeign-cluster-namehost-idinterestingbootstrappedlast-successful-bootstrapforeign-hostsThis is a complex element with the following element children:
foreign-hostThis is a complex element with the following element children:
foreign-host-idforeign-host-nameforeign-connect-portonlinesecurelast-onlinelast-offlineforeign-databasesThis is a complex element with the following element children:
foreign-databaseThis is a complex element with the following element children:
foreign-database-idforeign-database-nameenabledforeign-forest-idsThis is a complex element with the following element children:
foreign-forest-idforeign-forestsThis is a complex element with the following element children:
foreign-forestThis is a complex element with the following element children:
foreign-forest-idforeign-forest-nameforeign-host-id
xquery version "1.0-ml";
xdmp:foreign-cluster-status(xdmp:bootstrap-hosts()[1],xdmp:cluster("SanFrancisco"))
=>
<foreign-cluster-status
xmlns="http://marklogic.com/xdmp/status/foreign-cluster">
</foreign-cluster-status>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.