Skip to main content
REST API reference
A newer release of this product is available.

Manage event based retention policies

Event-based retention policies enable you to specify how long a file or files within a directory should be retained, based on defined timeframes. These policies are particularly useful for managing file retention in compliance with organizational or regulatory requirements. Note that only users with the vsadmin-snaplock security login role can apply these policies, and they cannot be used for files under Legal-Hold.

An event retention policy consists of a policy-name and a retention-period. The policy can be applied to a single file or files in a directory. Only a user with the security login role vsadmin-snaplock can perform the operation. EBR policies cannot be applied to files under a Legal-Hold.

Examples

  1. Creates an EBR policy policy_name with a retention period of "10 years":

 POST "/api/storage/snaplock/event-retention/policies/" '{"name": "policy_name","retention_period": "P10Y"}'
  1. Creates an EBR policy policy_name1 with a retention period of "infinite":

 POST "/api/storage/snaplock/event-retention/policies/" '{"name": "policy_name1","retention_period": "infinite"}'