admin.clusterSetXdqpBootstrapHosts( 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.
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. |
http://marklogic.com/xdmp/privileges/admin/cluster
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.