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'); const config = admin.getConfiguration() const groups = admin.getGroupIds(config) admin.appserverExists(config, groups, "Admin") //Returns true, if the Admin App Server exists.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.