Call API call from OCI Functions and save response in Object Storage

  1. auth — only value supported is OCI, for no auth omit property
  2. url- the URL to invoke
  3. headers- a dict of key/value header values ie. “Accept”:”application/json”
  4. target_bucket- name for the bucket where the results are written
  5. target_objectname — name for the object where the results will be written
  6. method- GET/POST/PUT — if omitted, GET will be used
  7. body- the JSON input payload body
echo '{"auth":"OCI","url":"https://objectstorage.us-ashburn-1.oraclecloud.com/n/yournamespace/b/a_cmd_bucket/o?limit=1000&delimiter=%2F&fields=name%2Csize%2CtimeModified%2CarchivalState%2CstorageTier", "headers":{"Accept":"application/json","Content-Type":"application/json"},"target_bucket":"yourbucket", "target_objectname":"yourobjectname"}' | fn invoke yourappname direst2os
Create a REST task
Configure the payload and HTTP method and URL
Create a task schedule
Parameterize entries in the payload
Define runtime parameter values

--

--

--

Architect at @Oracle developing cloud services for data. Connect on Twitter @i_m_dave

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What I have learnt today

The Laravel PHP Framework

ROS: a simple depth map using Raspberry Pi

RTOS, Tasks and Mutexes to the rescue

Why the time complexity to access an element from an array is constant time?

Receiving data over webhooks with Paystack in Laravel — Part 1

The Awesome CSS mask-image Property

Night Lights With Stripped CSS Mask Image

Twilio +.Net — Incoming and Outgoing Calls

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Allan

David Allan

Architect at @Oracle developing cloud services for data. Connect on Twitter @i_m_dave

More from Medium

Getting Notification of Data Integration Task Executions

How to configure Snowflake Connector for Kafka

Apache airflow dynamic parallel task creation

Getting the Maximum out of your Integration Tests (AWS)