<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.foreignClusterStatus.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.foreignClusterStatus</api:function-name><api:suggest>xdmp.foreignclusterstatus</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>foreignclusterstatus</api:suggest><api:function-link mode="xquery" fullname="xdmp:foreign-cluster-status">/apidoc/8.0/xdmp:foreign-cluster-status.xml</api:function-link><api:function mode="javascript" name="foreignClusterStatus" type="builtin" lib="xdmp" category="Server Monitoring" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.foreignClusterStatus"><api:summary>
  Returns the status of a foreign cluster from a host's point of view<span class="javascript" xmlns="http://www.w3.org/1999/xhtml"> as a JSON node</span>.
</api:summary><api:params><api:param name="host-id" type="xs:unsignedLong"><api:param-description>
    A host ID.
  </api:param-description><api:param-name>host-id</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="foreign-cluster-id" type="xs:unsignedLong"><api:param-description>
    A foreign cluster ID.
  </api:param-description><api:param-name>foreign-cluster-id</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return class="javascript">ObjectNode</api:return><api:privilege>
   <code xmlns="http://www.w3.org/1999/xhtml">http://marklogic.com/xdmp/privileges/status</code>
</api:privilege><api:usage schema="foreign-cluster-status.xsd" camel-case="true">
<api:schema-info><api:element><api:element-name>foreignClusterId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">The foreign cluster ID.</xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignClusterName</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">The foreign cluster name.</xs:documentation></api:element-description></api:element><api:element><api:element-name>hostId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">The unique key of the host</xs:documentation></api:element-description></api:element><api:element><api:element-name>interesting</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Is this interesting.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>bootstrapped</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Is this bootstrapped.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>lastSuccessfulBootstrap</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The time of the last bootstrap.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignHosts</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Information about foreign hosts.
      </xs:documentation></api:element-description><api:element><api:element-name>foreignHost</api:element-name><api:element-description/><api:element><api:element-name>foreignHostId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The ID of the foreign host.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignHostName</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The name of the foreign host.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignConnectPort</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The connect port for the foreign host.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>online</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Is this online.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>secure</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Is SSL enabled.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>lastOnline</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The time it was last online.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>lastOffline</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The time it was last offline.
      </xs:documentation></api:element-description></api:element></api:element></api:element><api:element><api:element-name>foreignDatabases</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Information about foreign databases.
      </xs:documentation></api:element-description><api:element><api:element-name>foreignDatabase</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Information about a particular foreign database.
      </xs:documentation></api:element-description><api:element><api:element-name>foreignDatabaseId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The ID of the foreign database.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignDatabaseName</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The name of the foreign database.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>enabled</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Is this enabled.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignForestIds</api:element-name><api:element-description/><api:element><api:element-name>foreignForestId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The ID of the foreign forest.
      </xs:documentation></api:element-description></api:element></api:element></api:element></api:element><api:element><api:element-name>foreignForests</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Information about foreign forests.
      </xs:documentation></api:element-description><api:element><api:element-name>foreignForest</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        Information about a particular foreign forest.
      </xs:documentation></api:element-description><api:element><api:element-name>foreignForestId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The ID of the foreign forest.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignForestName</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The name of the foreign forest.
      </xs:documentation></api:element-description></api:element><api:element><api:element-name>foreignHostId</api:element-name><api:element-description><xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema">
        The ID of the foreign host.
      </xs:documentation></api:element-description></api:element></api:element></api:element></api:schema-info></api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.foreignClusterStatus(xdmp.host(),xdmp.cluster("SanFrancisco"));
=&gt;

&lt;foreign-cluster-status 
  xmlns="http://marklogic.com/xdmp/status/foreign-cluster"&gt;
&lt;/foreign-cluster-status&gt; 
</pre></api:example></api:function></api:function-page>