Listing a Secret's Rules
Learn how to view a list of secret rules created for a secret stored in an OCI vault.
- Open the navigation menu , select Identity & Security, and then select Vault.
- Under List scope, select the compartment that contains the secret for which you want to view configured rules.
-
From the list of vaults in the compartment, select a vault name.
- Select Secrets, and then select the name of the secret to open its details page.
- Under Resources, select Rules.
Open a command prompt and run
oci vault secret get
to view a secret's configured rules:oci vault secret get --secret-id <target_secret_id>
For example:
oci vault secret get --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
This task can't be performed using the API.