Loading TOC...

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

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