5.0

Data polices

View data policies 

lenses-cli policies

View a specific policy 

lenses-cli policy view --name my-policy

Create a policy 

Fields are set by specifying a comma separated set of fields.

lenses-cli policy create \
    --name my-policy \
    --category my-category \
    --impact HIGH \
    --redaction First-1 \
    --fields f1,f2,f3

From a file.

lenses-cli policy create --field f1,f2,f3 ./policy.yaml

Example file

name: my-policy
category: my-category
impactType: HIGH
obfuscation: First-1

Update a policy 

Fields are set by specifying a comma separated string to the field flag.

lenses-cli policy update \
    --id my-policy-id \
    --name my-policy \
    --category my-category \
    --impact HIGH \
    --redaction First-1 \
    --fields f1,f2,f3

Delete a policy 

lenses-cli policy delete --id my-policy-id