Adding Vault Secret Tags

Add tags to a secret in OCI Vault service.

    1. Open the navigation menu, click Identity & Security, and then click Vault.
    2. Under List Scope, in the Compartment list, click the name of the compartment that contains the vault that has the secret for which you want to manage tags.
    3. From the list of vaults in the compartment, click the vault name.

    4. Click Secrets, locate the secret you want to manage, and then click the secret name. (If needed, first change the list scope to the compartment that contains the vault secret, and then click the secret name.)
    5. On the Secret Details page, click the Tags tab to view or edit existing tags. Or, click 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 cannot be performed using the API.