Example: Creating a new data connection to IBM Cloud® Object Storage
Before creating a schedule source connection to IBM Cloud® Object Storage or AWS S3, you must create an instance in the required storage provider.
The following example demonstrates how to create a schedule source connection to IBM Cloud® Object Storage. It also demonstrates how 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 single files to the process.
Prerequisites
-
Create an instance and bucket for IBM Cloud Object Storage. For demonstration purpose, this example uses the following objects:
- An Instance that is named Cloud Object Storage-ob is created.
- A Bucket that is named datastorageforpm is created.
-
Go to Instance > Bucket, click the more options button (
), and then click Configuration.
-
In the Bucket details section of the Configuration, collect the values for the following parameters:
- Bucket name
- Location
- Bucket instance CRN
-
In the Endpoints section, collect the value for the following parameter:
- Public
- Public
-
Create service credentials for the instance. For more information, see Service credentials.
-
Go to Instance > Bucket > Service credentials, and then expand created service credential, and then collect the value for apikey.
Procedure
You can use the following steps to create a schedule source connection and upload a single file to the process:
-
In the left pane of the Manage tab of the selected process, click Data source.
-
In the Upload data source section, click the down arrow (
), and then click Upload file from a cloud storage.
-
On the Connect page of the Upload data source from a cloud storage wizard, click Create a new connection to create a new schedule source connection.
-
On the Connect page, click IBM Cloud® Object Storage.
-
In the Name field, type a name for the connection (for example, Cloudstoragefile).
-
Optional. In the Description field, type a description for the connection.
-
In the Bucket name field, type datastorageforpm.
-
In the Location field, type the location value in the IBM Cloud® Object Storage instance.
-
In the Bucket instance CRN field, type the Bucket instance CRN value in the IBM Cloud® Object Storage instance.
-
In the Public endpoint field, type the Public value in the IBM Cloud® Object Storage instance.
-
In the Api key field, type the API Key which is obtained from the IBM Cloud® Object Storage instance.
-
Click Verify connection and if the connection is valid, click Next.
-
On the Choose file page, select the file that you want to upload, and then click Upload.
-
On the Data source page, click Visualize to include the uploaded data in the process.