Data Policies

This page describes command to manage data policies in Lenses via the CLI.

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

Last updated

Logo

2024 © Lenses.io Ltd. Apache, Apache Kafka, Kafka and associated open source project names are trademarks of the Apache Software Foundation.