View the latest documentation 5.5
The CLI allows you to manage the data policies configured on Lenses. The commands for these actions are shown in the table below.
create
delete
update
view
lenses-cli policies
lenses-cli policy view --name [POLICY_NAME]
Fields are set by specifying a comma-separated set of fields.
lenses-cli policy create \ --name [POLICY_NAME] \ --category [CATEGORY_NAME] \ --impact HIGH \ --redaction First-1 \ --fields f1,f2,f3
You can create a data policy using a file. Additionally, you can pass part of the parameter through the CLI and another part in the file.
lenses-cli policy create --fields f1,f2,f3 ./policy.yaml
Example file:
name: [POLICY_NAME] category: [CATEGORY_NAME] impactType: HIGH obfuscation: First-1
Fields are set by specifying a comma-separated string to the field flag:
lenses-cli policy update \ --id [POLICY_ID]\ --name [POLICY_NAME] \ --category [CATEGORY_NAME] \ --impact HIGH \ --redaction First-1 \ --fields f2,f4
You can update a data policy using a file.
lenses-cli policy update --id [POLICY_ID] --fields f1,f2 ./policy.yaml
name: [POLICY_NAME] category: [CATEGORY_NAME] impactType: HIGH obfuscation: First-2
lenses-cli policy delete --id [POLICY_ID]
On this page