Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:filesystem-file-encryption-status

xdmp:filesystem-file-encryption-status(
   $pathname as xs:string
) as element(file-encryption-status)?

Summary

Return the encryption status of a file. Returns empty sequence if there is no file.

Parameters
pathname Pathname of the file.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-filesystem-file

Example

xdmp:filesystem-file-encryption-status("/var/opt/MarkLogic/Forests/Documents/Label")
=>
  <file-encryption-status xmlns="http://marklogic.com/xdmp/status/fileEncryption">
    <pathname>/var/opt/MarkLogic/Forests/Documents/Label</pathname>
    <encrypted>true</encrypted>
    <encryption-key-id>317085c9-5c65-4b08-b8bf-2ac5a5c0943e</encryption-key-id>
    <encryption-size>1920</encryption-size>
  </file-encryption-status>

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