MarkLogic 9 Product Documentation
dls:retention-rules

dls:retention-rules(
   $names as xs:string*
) as element(dls:retention-rule)*

Summary

This function returns the specified retention rules from the database.

Parameters
names The names of the retention rules to be returned. The name can include wild cards. For example, a * can be used to retrieve all of the retention rules.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

You must have read permissions on the rentention-rule document to see the rules.

Example

  xquery version "1.0-ml";

  import module namespace dls = "http://marklogic.com/xdmp/dls" 
      at "/MarkLogic/dls.xqy";

  dls:retention-rules("Rule1")

  (: Returns the 'Rule1' retention rule in XML format. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy