Loading TOC...

xdmp.foreignClusterStatus

xdmp.foreignClusterStatus(
   $host-id as String,
   $foreign-cluster-id as String
) as ObjectNode

Summary

Returns the status of a foreign cluster from a host's point of view as a JSON node.

Parameters
$host-id A host ID.
$foreign-cluster-id A foreign cluster ID.

Required Privileges

http://marklogic.com/xdmp/privileges/status

Usage Notes

The structure of the data returned is as follows:

foreignClusterId

The foreign cluster ID.

foreignClusterName

The foreign cluster name.

hostId

The unique key of the host

interesting

Is this interesting.

bootstrapped

Is this bootstrapped.

lastSuccessfulBootstrap

The time of the last bootstrap.

foreignHosts

Information about foreign hosts.

This is an object with the following properties:

foreignHost

This is an object with the following properties:

foreignHostId

The ID of the foreign host.

foreignHostName

The name of the foreign host.

foreignConnectPort

The connect port for the foreign host.

online

Is this online.

secure

Is SSL enabled.

lastOnline

The time it was last online.

lastOffline

The time it was last offline.

foreignDatabases

Information about foreign databases.

This is an object with the following properties:

foreignDatabase

Information about a particular foreign database.

This is an object with the following properties:

foreignDatabaseId

The ID of the foreign database.

foreignDatabaseName

The name of the foreign database.

enabled

Is this enabled.

foreignForestIds

This is an object with the following properties:

foreignForestId

The ID of the foreign forest.

foreignForests

Information about foreign forests.

This is an object with the following properties:

foreignForest

Information about a particular foreign forest.

This is an object with the following properties:

foreignForestId

The ID of the foreign forest.

foreignForestName

The name of the foreign forest.

foreignHostId

The ID of the foreign host.

Example

xdmp.foreignClusterStatus(xdmp.host(),xdmp.cluster("SanFrancisco"));
=>

<foreign-cluster-status
  xmlns="http://marklogic.com/xdmp/status/foreign-cluster">
</foreign-cluster-status> 

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy