Loading TOC...

dls.retentionRules

dls.retentionRules(
   names as String[]
) as Sequence

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 retention-rule document to see the rules.

Example

// Returns the 'Rule1' retention rule in XML format.

const dls = require('/MarkLogic/dls');

dls.retentionRules('Rule1');
   

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