Example: Creating a new data connection to IBM Cloud® Object Storage

Before you create a schedule source connection to IBM Cloud® Object Storage, AWS S3 or Azure Blob Storage, you must create an instance in the required storage provider.

In this example, you can learn how to create a schedule source connection to IBM Cloud® Object Storage. You can also learn to locate the values that are required for the Connect page of the wizard.

In this example, the Data Source menu is used to demonstrate how to create a schedule source connection to upload a file to a project by using an event log.

Prerequisites

Before you create a schedule source connection, do the following steps:

  1. Create an instance and bucket for IBM Cloud Object Storage. For demonstration purpose, this example uses the following objects:
    • An Instance named Cloud Object Storage-ob.
    • A Bucket named datastorageforpm.
  2. Go to Instance > Bucket.
  3. Click the more options button, and then click Configuration.
  4. In the Configuration section, collect the values for the following parameters:
    • Bucket name
    • Location
    • Bucket instance CRN
  5. In the Endpoints section, collect the value for the Public parameter.
  6. Create service credentials for the instance. For more information, see Service credentials.
  7. Go to Instance > Bucket > Service credentials.
  8. Expand created service credential, and collect the value for apikey.

Procedure

Use the following steps to create a schedule source connection and upload a single file to a project:

  1. Open the project and go to Data & Settings > Data > Data source.

  2. In the Upload data source section, click the down arrow, and then click Upload file from a cloud storage.

  3. On the Estabish a connection page, click Connect to a cloud storage, and then click IBM Cloud® Object Storage.

  4. In the Name field, type a name for the connection, for example Cloudstoragefile.

  5. Optional: In the Description field, type a description for the connection.

  6. In the Bucket name field, type datastorageforpm.

  7. In the Location field, type the location value.

  8. In the Bucket instance CRN field, type the Bucket instance CRN value.

  9. In the Public endpoint field, type the Public value.

  10. In the Api key field, type the API Key, and then click Next.

  11. On the Choose file page, select the file that you want to upload, and then click Upload.