Listing Data Masking Rules and Getting Their Details
View the list of existing data masking rules in Cloud Guard, and access details for individual rules.
Prerequisite:
You must create one or more data masking rules:
- For information about data masking rules, see About Data Masking.
- To create a data masking rule, see Creating a Data Masking Rule.
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Use the oci cloud-guard data-mask-rule get command and required parameters to get a specific data mask rule:
oci cloud-guard data-mask-rule get --data-mask-rule-id <data_mask_rule_ocid> [OPTIONS]
Use the oci cloud-guard data-mask-rule list command and required parameters to list all data mask rules in a compartment:
oci cloud-guard data-mask-rule list --compartment-id, -c <compartment_ocid> [OPTIONS]
Run the GetDataMaskRule operation to get a data mask rule.
Run the ListDataMaskRules operation to list data mask rules.
What's Next
To make changes to a data masking rule, see Editing a Data Masking Rule.