admin.appserverGetGroupId( config as element(configuration), appserver-id as (Number|String) ) as (Number|String)
This function returns the ID of the specified App Server's group.
http://marklogic.com/xdmp/privileges/admin/app-server
http://marklogic.com/xdmp/privileges/admin/app-server/{id}
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() admin.appserverGetGroupId(config, admin.appserverGetId(config, [], "myAppServer"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.