
admin:appserver-exists( $config as element(configuration), $group-ids as xs:unsignedLong*, $appserver-name as xs:string ) as xs: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.
  
  xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";
  let $config := admin:get-configuration()
  let $groups := admin:get-group-ids($config)
  return admin:appserver-exists($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.