Creating a Secret Version
Learn how to create a version for a specified secret. When you create a version, you update its contents.
Use the oci vault secret update or oci vault secret update-base64 command to update a secret's contents. Updating the contents of a secret creates a new secret version.
oci vault secret update --secret-id <secret_OCID> [OPTIONS]
oci vault secret update-base64 --secret-id <secret_OCID> [OPTIONS]
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 contents of a secret. Updating the contents of a secret creates a new secret version.
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 KMSMANAGEMENT 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.