A newer release of this product is available.
vserver data-policy import
Contributors
Suggest changes
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
Import a data policy
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The vserver data-policy import command sets a new data policy for a Vserver with Infinite Volume. After entering the command, you are prompted to type or paste the content of the new data policy. When you are done, press ENTER on a blank line.
Parameters
-vserver <vserver name>
- Vserver Name-
This specifies the Vserver with Infinite Volume for which the data policy will be changed.
Examples
The following examples attempt to change the Vserver data policy, first with bad content, and then with an acceptable data policy.
cluster1::> vserver data-policy import -vserver vs1 Enter the contents of the file data policy for Vserver "vs1": Press <Enter> when done { "foo" : "bar" } Error: command failed: Data Policy validation failed: 'ruleset_format_version' is a required field. cluster1::> vserver data-policy import -vserver vs1 Enter the contents of the file data policy for Vserver "vs1": Press <Enter> when done { "ruleset_format_version" : "1.0", "rules" : [ { "rule_label" : "default", "rule_id" : "ec17a05f-7785-11e1-baf4-123478563412", "rule_scope" : [], "rule_epoch" : { "epoch_reference" : "ctime" }, "rule_epochs" : { "0" : { "local" : { "metadata" : { "storageservice" : "-" } } } } } ] }