Creating a Vault

Learn how to create a vault in OCI.

    1. Open the navigation menu , select Identity & Security, and then select Vault.
    2. Under List scope, select the compartment in which you want to create the vault.
    3. Select Create Vault.
    4. 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.
    5. Select Show advanced options to add tags to the vault.
    6. 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.
    7. Select one of the following options:
  • Open a command prompt and run oci kms management vault create to create a new vault:

    Note

    You cannot change the vault type after the vault is created.
    oci kms management vault create --compartment-id  <vault_name> 

    For example:

    
    oci kms management vault create --compartment-id compartment

    For a complete list of parameters and values for CLI commands, see KMS 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.