Loading TOC...

MarkLogic 12 EA 1 Product Documentation
admin.appserverExists

admin.appserverExists(
   config as element(configuration),
   group-ids as (Number|String)[],
   appserver-name as String
) as Boolean

Summary

This function determines whether or not the specified App Server (HTTP, XDBC, or ODBC) exists. Returns true if the App Server exists, otherwise false is returned.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
group-ids The list of group IDs returned from the admin:get-group-ids function.
appserver-name The name of the App Server to check.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
  const groups = admin.getGroupIds(config)
  admin.appserverExists(config, groups, "Admin")

   //Returns true, if the Admin App Server exists. 
    

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