Before creating the functions you must understand that Functions must have the privileges or policies for the functions.
There are a few ways that you can invoke a function:
Invoke types: 1. CLI 2. SDK 3. HTTP Request
Environment: 1. Invoke shell and 2: Authentication
Invoke 1. Function Invoke 2. OCI Function Invoke.