Loading TOC...

MarkLogic 12 EA 2 Product Documentation
admin:cluster-set-xdqp-bootstrap-hosts

admin:cluster-set-xdqp-bootstrap-hosts(
   $config as element(configuration),
   $host-ids as xs:unsignedLong*
) as element(configuration)

Summary

This function sets the bootstrap hosts for the domestic cluster. Bootstrap hosts are accessed by hosts on foreign clusters to establish communication with the domestic cluster.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
host-ids One or more ids for hosts to be used as bootstrap hosts for this cluster.

Required Privileges

http://marklogic.com/xdmp/privileges/admin/cluster

Example


  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  let $cfg := admin:get-configuration()

  return admin:cluster-set-xdqp-bootstrap-hosts($cfg, 11043766148104991860)

  (: Sets the specified host as the bootstrap host for this cluster.  Use
     admin:save-configuration to save the changes to the configuration or
     pass the configuration to other Admin API functions to make other changes. :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.