MarkLogic 9 Product Documentation
xdmp:server-root

xdmp:server-root(
   $id as xs:unsignedLong
) as xs:string?

Summary

Return the root of the App Server, XDBC Server, ODBC Server, or Task Server with the given ID. For a Task Server, return the empty sequence.

Parameters
id An App Server, XDBC Server, ODBC Server, or Task Server ID.

Example

xdmp:server-root(845637403676198)
=> "Docs"
Powered by MarkLogic Server | Terms of Use | Privacy Policy