Loading TOC...

admin:appserver-exists

admin:appserver-exists(
   config as element(configuration),
   group-ids as xs:unsignedLong*,
   appserver-name as xs:string
) as xs: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


  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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.