Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:cluster-set-keystore-logs-encryption-passphrase

admin:cluster-set-keystore-logs-encryption-passphrase(
   $config as element(configuration),
   $passphrase as xs:string
) as element(configuration)

Summary

MarkLogic supports encrypting the logs with a secondary encryption passphrase, this function can be used to set the passphrase. Note that log encryption must be enabled for this passphrase to be used.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
passphrase A passphrase to use when encrypting the logs

Example


xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
  at "/MarkLogic/admin.xqy";

let $config := admin:get-configuration()
let $passphrase := "dazzling zebras"
return
  admin:cluster-set-keystore-logs-encryption-passphrase($config,$passphrase)

  (: returns the new configuration element -- use admin:save-configuration to save
  the changes to the configuration or pass the configuration to other Admin API
  functions to make other changes. :)
     

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