Creating an Object Storage API Key for a Cluster

Create an API key to connect a Big Data Service cluster to Object Storage.

    1. Open the navigation menu and click Analytics & AI. Under Data Lake, click Big Data Service.
    2. Under Compartment, select the compartment that contains the cluster.
    3. In the list of clusters, click the name of the cluster that has the API key.
    4. On the Cluster details page, under Resources click API keys.
    5. Click Create key.
    6. In the Create API key panel, enter a key alias to uniquely identify this key in the cluster.
    7. Enter the OCID of the user that can use this API key.
      • To retrieve the user OCID for tenancies in regions that don't use identity domains:
        1. Open the navigation menu, and click Identity & Security.
        2. Click Users, and then click the username.
        3. By the OCID field, click Copy.
      • To retrieve the user OCID for IAM with identity domains:
        1. Open the navigation menu, and click Identity & Security.
        2. Click Domains, and then click the name of the domain that lists the user.
        3. Click Users, and then click the username.
        4. By the OCID field, click Copy.
    8. Enter and confirm a passphrase. This passphrase is used to encrypt the API key and can't be changed later.
    9. Select a default region that's used to establish the Object Storage endpoint name.
    10. Click Create.
    The API key is listed in the Object Storage API keys page. When the API key is successfully created, its status changes to Active.
  • Use the oci bds bds-api-key create command and required parameters to create an Object Storage API key.

    oci bds bds-api-key create --bds-instance-id <bds_instance_id> --key-alias <key_alias> --passphrase <passphrase> --user-id <user_id> [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Big Data.

  • Use the CreateBdsApiKey operation to create an Object Storage API key.