/oracle-functions-samples

Examples demonstrating how to use Oracle Functions

Universal Permissive License v1.0UPL-1.0

Oracle Functions Samples

Oracle Functions logo

This repository provides examples demonstrating how to use Oracle Functions.

Setup

How To

Description Python Java
Hello World sample sample
List OCI Compute instances sample sample
Control OCI Compute instances (start/stop/status) sample
List OCI compartments sample
List objects in OCI Object Storage sample sample
Read an object in OCI Object Storage sample sample
Create an object in OCI Object Storage sample sample
Create a PAR in OCI Object Storage sample
Display an OCI Cloud Event sample
Invoke another Function sample
Run a SQL statement against Autonomous DB using ORDS sample
Run a SQL statement against Autonomous DB using DB Client sample
Publish a notification using ONS sample
Send an email using Email Delivery Service sample
Decrypt cipher using Vault keys sample
Get a secret from Vault sample
API Gateway Function authorizer for IDCS sample
Function that returns the API Gateway HTTP request information sample
Function for API Gateway that validates an API key sample
Write IAM policies that enables Functions in a tenancy to access resources in other tenancies sample

Use Cases

Description Code Docs
Provide the size of an image (Custom Dockerfile, image library) repo
Automatically load data from Object Storage into Autonomous DataWarehouse repo
Automatically resize VM on High Memory Alerts (Notifications trigger a function) repo
Check if a compute instance is tagged correctly on provisioning, if not, stop it repo

Community-led Examples

Description Code Blog
Serverless SaaS Extensions using Oracle Functions, API Gateway and VBCS repo blog
Function that demonstrates connectivity between Oracle SaaS applications with OIC repo

Documentation

You can find the online documentation for Oracle Functions at docs.oracle.com and information about the Fn project at https://fnproject.io/.

Contributing

See CONTRIBUTING

License

See LICENSE