
admin.forestGetFailoverEnable( config as element(configuration), forest-id as (Number|String) ) as Boolean
This function returns the state of whether failover is enabled for the specified forest.
http://marklogic.com/xdmp/privileges/admin/forest
http://marklogic.com/xdmp/privileges/admin/forest/{id}
  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
  admin.forestGetFailoverEnable(config,
         admin.forestGetId(config, "test"))
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.