
xdmp.foreignClusterStatus( host-id as (Number|String), foreign-cluster-id as (Number|String) ) as ObjectNode
Returns the status of a foreign cluster from a host's point of view as a JSON node.
| 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:
foreignClusterIdforeignClusterNamehostIdinterestingbootstrappedlastSuccessfulBootstrapforeignHostsThis is an object with the following properties:
foreignHostThis is an object with the following properties:
foreignHostIdforeignHostNameforeignConnectPortonlinesecurelastOnlinelastOfflineforeignDatabasesThis is an object with the following properties:
foreignDatabaseThis is an object with the following properties:
foreignDatabaseIdforeignDatabaseNameenabledforeignForestIdsThis is an object with the following properties:
foreignForestIdforeignForestsThis is an object with the following properties:
foreignForestThis is an object with the following properties:
foreignForestIdforeignForestNameforeignHostId
xdmp.foreignClusterStatus(fn.head(xdmp.bootstrapHosts()),xdmp.cluster("SanFrancisco"));
=>
{
"foreignClusterId": "5850052649270525451",
"foreignClusterName": "SanFrancisco",
...
}
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.