16.9.4 Using REST Data Source for Bucket Files

Create a REST Data Source for listing and retrieving files in an OCI object bucket.

Create a Bucket Objects REST Data Source of type Oracle Cloud Infrastructure (OCI) for the base URL of a named object bucket in your namespace, using :bucketname in the URL to implicitly define a URL Pattern parameter by that name.

https://objectstorage.eu-frankfurt-1.oraclecloud.com/n/x1y2z3a4b5c6/b/:bucketname/o/

Enter a default bucket name value (e.g. companion-bucket) for the bucketname parameter so the automatic data profile discovery can do its job. On the Authentication step of the Create REST Data Source Wizard, use the OCI Object Bucket web credential created before. Then proceed with the automatic discovery of the data profile and complete the wizard.

Edit the new REST Data Source to add the following additional configuration shown below:
  • Static fields URL Query String parameter with value name,size,md5,timeCreated
  • GET operation named Get File with URL Pattern o/:filename, URL Pattern parameter filename, and static ID get_file
  • POST operation named Get File PAR with URL Pattern p/ with static ID get_file_par

Figure 16-89 Defining Bucket Objects REST Data Source