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:
foreignClusterId
foreignClusterName
hostId
interesting
bootstrapped
lastSuccessfulBootstrap
foreignHosts
This is an object with the following properties:
foreignHost
This is an object with the following properties:
foreignHostId
foreignHostName
foreignConnectPort
online
secure
lastOnline
lastOffline
foreignDatabases
This is an object with the following properties:
foreignDatabase
This is an object with the following properties:
foreignDatabaseId
foreignDatabaseName
enabled
foreignForestIds
This is an object with the following properties:
foreignForestId
foreignForests
This is an object with the following properties:
foreignForest
This is an object with the following properties:
foreignForestId
foreignForestName
foreignHostId
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.