Loading TOC...

xdmp:database-encryption-key-id

xdmp:database-encryption-key-id(
   $database-id as xs:unsignedLong
) as xs:string

Summary

Returns the encryption key ID for the database identified by database-id

Parameters
$database-id The ID of the database.

Example

xquery version "1.0-ml";
let $dbid := xdmp:database("Documents")
return xdmp:database-encryption-key-id($dbid)
==> 4ba7bc6a-dbd6-4d5f-b573-f874c72c0c79
(: returns the encryption key ID:)

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