admin.appserverExists( config as element(configuration), group-ids as (Number|String)[], appserver-name as String ) as Boolean
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.
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var groups = admin.getGroupIds(config) admin.appserverExists(config, groups, "Admin") //Returns true, if the Admin App Server exists.