Creating a Vault

Learn how to create a vault in OCI.

    1. On the Vaults list page, select Create Vault. If you need help finding the list page, see Listing Vaults.
    2. In the Create Vault dialog box, provide the following details:
      • If needed, select a different compartment in which you want to create the vault.
      • Enter a name for the vault.
      • Select Make it virtual private vault if you want a dedicated partition in a hardware security module (HSM).
        Note

        You cannot change the vault type after the vault is created.
    3. Select Tags to add tags to the vault. If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option (you can apply tags later) or ask your administrator.
    4. Select one of the following options:
  • use the oci kms management vault create command and required parameters to create a new vault.

    Tip

    You can't change the vault type after the vault is created.
    oci kms management vault create --compartment-id <compartment_ocid> --display-name <vault_name> --vault-type <vault_type [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Use the CreateVault operation with the KMSVAULT API endpoint to create a vault.

    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.