Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:keystore-set-current-host

xdmp:keystore-set-current-host(
   [$hostname as xs:string]
) as xs:boolean

Summary

Set current KMS host to the first one matching the user-specified name for all online MarkLogic nodes in the cluster. Returns true if the host is found in the configuration and the operation is complete on all hosts in the cluster; false otherwise.

Parameters
hostname Host name of the KMS. If omitted, the first KMS host is used.

Example

xdmp:keystore-set-current-host("kms.marklogic.com")
=> true

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