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

snaplock event-retention policy create

Contributors
Suggest changes

Create SnapLock Event Based Retention policies for a Vserver

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The snaplock event-retention policy create command is used to create Event Based Retention (EBR) policies for a Vserver. A policy consists of a policy-name and a retention-period . Only a user with security login role vsadmin-snaplock is allowed to perform this operation.

Parameters

-vserver <vserver name> - Vserver Name

Specifies the name of the Vserver for which a policy needs to be created.

-name <text> - Policy Name

Specifies the name of the EBR policy to be created.

-retention-period {{<integer> seconds|minutes|hours|days|months|years} | infinite} - Event Retention Period

Specifies the retention period for an EBR policy.

Examples

The following example creates a new EBR policy "p1" for Vserver "vs1" with a retention period of "10 years" :

vs1::> snaplock event-retention policy create -name p1 -retention-period "10 years"