Loading TOC...


   config as element(configuration),
   host-ids as (Number|String)[]
) as element(configuration)


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.

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



  const admin = require('/MarkLogic/admin.xqy');
  const cfg = admin.getConfiguration()
  admin.clusterSetXdqpBootstrapHosts(cfg, 11043766148104991860)

   //Sets the specified host as the bootstrap host for this cluster.//Use
   //admin.saveConfiguration 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.