Loading TOC...

MarkLogic Server 11.0 Product Documentation
xdmp:server

xdmp:server(
   [$name as xs:string],
   [$group as xs:unsignedLong]
) as xs:unsignedLong+

Summary

Return the ID(s) of the App Servers, XDBC Servers, ODBC Servers, or Task Servers with the given name. Returns the ID of the current server if no parameter is specified.

Parameters
name A server name.
group A group to search. If not specified, all groups are searched.

Example

xdmp:server("MyAppServer")
=> 15495681647217162987

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.