Adding Vault Secret Tags
Learn how to add tags to a secret stored in an OCI vault.
- Open the navigation menu , select Identity & Security, and then select Vault.
- Under List Scope, in the Compartment list, select the name of the compartment that contains the vault that has the secret for which you want to manage tags.
-
From the list of vaults in the compartment, select the vault name.
- Select Secrets, locate the secret you want to manage, and then select the secret name. (If needed, first change the list scope to the compartment that contains the vault secret, and then select the secret name.)
- On the Secret Details page, select the Tags tab to view or edit existing tags. Or, select Add Tags to add new ones.
Open a command prompt and run
oci vault secret update
to manage a secret's tags:oci vault secret update --secret-id <target_secret_id> --defined-tags <defined_tags_in_JSON_format>
For example:
oci vault secret update --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample --defined-tags '{"ProdSecrets" : {"NodePool" : "10"}}'
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.