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-id
foreign-cluster-name
host-id
interesting
bootstrapped
last-successful-bootstrap
foreign-hosts
This is a complex element with the following element children:
foreign-host
This is a complex element with the following element children:
foreign-host-id
foreign-host-name
foreign-connect-port
online
secure
last-online
last-offline
foreign-databases
This is a complex element with the following element children:
foreign-database
This is a complex element with the following element children:
foreign-database-id
foreign-database-name
enabled
foreign-forest-ids
This is a complex element with the following element children:
foreign-forest-id
foreign-forests
This is a complex element with the following element children:
foreign-forest
This is a complex element with the following element children:
foreign-forest-id
foreign-forest-name
foreign-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.