Updating a Secret
Learn how to update the properties of a secret.
Not that to update the contents of a secret using the Console, you must create a new version of the secret. See Creating a Secret Version for instructions.
Use the update-base64 command to update the properties of a secret in a vault.
Open a command prompt and run
oci vault secret update-base64
to update a secret:Note
You must specify a symmetric key to encrypt the secret during import to the vault. You can't encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.oci vault secret update --secret-id <secret_OCID> --description <updated description>
For example:
oci vault secret update --secret-id ocid1.vaultsecret.oc1.eu-paris-1.amaaaaaaryab66aaoipd6v6orjaric2k6ssgucsvg6gr6l237da4cyj3xniq --description "Updates the secret description"
Avoid entering confidential information.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Use the UpdateSecret API with the Management Endpoint to update the properties of a secret.
Note
The Management Endpoint is used for management operations including Create, Update, List, Get, and Delete. The Management Endpoint is also called the control plane URL or the KMSMANAGMENT endpoint.
The Cryptographic Endpoint is used for cryptographic operations including Encrypt, Decrypt, Generate Data Encryption Key, Sign, and Verify. The Cryptographic Endpoint is also called the data plane URL or the KMSCRYPTO endpoint.
You can find the management and cryptographic endpoints in a vault's details metadata. See Getting a Vault's Details for instructions.
For regional endpoints for the Key Management, Secret Management, and Secret Retrieval APIs, see API Reference and Endpoints.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.