<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.server.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.server</api:function-name><api:suggest>xdmp.server</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>server</api:suggest><api:function-link mode="xquery" fullname="xdmp:server">/apidoc/8.0/xdmp:server.xml</api:function-link><api:function mode="javascript" name="server" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.server"><api:summary>
  Returns the ID(s) of the App Server specified in the parameter.
  Returns the ID of the current App Server if no parameter is specified.
</api:summary><api:params><api:param name="name" type="xs:string" optional="true"><api:param-description>
    The name of the App Server.
    The default value is the name of the current App Server.
  </api:param-description><api:param-name>name</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="group" type="xs:unsignedLong" optional="true"><api:param-description>
    The group of the App Server.
    If not specified, the ids of the named App Server in each group is returned.
  </api:param-description><api:param-name>group</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>ValueIterator</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.server("MyAppServer");
=&gt; 15495681647217162987
</pre></api:example></api:function></api:function-page>