Editing a key to an Object Storage bucket

Editing or modifying a key to an existing Object Storage bucket using the OCI Console and CLI interface.

    1. Open the navigation menu and click Storage. Under Object Storage & Archive Storage, click Buckets.
    2. Under List Scope, in the Compartment list, choose the compartment that contains the bucket that you want to encrypt with a Vault service master encryption key.
    3. From the list of buckets, click the bucket name.

    4. Do one of the following:

      • If the bucket already has a key assigned to it, next to Encryption Key, click Edit to assign a different key.
      • If the bucket does not already have a key assigned to it, next to Encryption Key, click Assign.
    5. Choose the vault compartment, vault, key compartment, and key.

    6. When you are finished, click Assign or Update, as appropriate.

  • This topic describes how to update the key assigned to an Object Storage bucket using the Command Line Interface (CLI)

    Open a command prompt and run oci os bucket update to update the Vault service master encryption key assigned to a bucket:

    
    oci os bucket update --name Bucket-1 --namespace-name example_namespace --kms-key-id ocid1.key.region1.sea.exampleaaacu2.examplesmtpsuqmoy4m5cvblugmizcoeu2nfc6b3zfaux2lmqz245gezevsq

    For example:

    
    oci os bucket update --name Bucket-1 --namespace-name example_namespace --kms-key-id ocid1.key.region1.sea.exampleaaacu2.examplesmtpsuqmoy4m5cvblugmizcoeu2nfc6b3zfaux2lmqz245gezevsq

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

  • This task cannot be performed using the API.