MarkLogic 9 Product Documentation
xdmp:host

xdmp:host(
   [$name as xs:string]
) as xs:unsignedLong

Summary

Returns the ID of the host named in the parameter. Returns the ID of the current host if no parameter is specified.

Parameters
name The name of the host. The default value is the name of the current host.

Example

xdmp:host("foo.example.com")
=> 15495681647217162987
Powered by MarkLogic Server | Terms of Use | Privacy Policy