Functions Invoke Functions

Package: DBMS_CLOUD_OCI_FNC_FUNCTIONS_INVOKE

INVOKE_FUNCTION Function

Invokes a function

Syntax

FUNCTION invoke_function (
  function_id varchar2,
  invoke_function_body blob DEFAULT NULL,
  fn_intent varchar2 DEFAULT NULL,
  fn_invoke_type varchar2 DEFAULT NULL,
  opc_request_id varchar2 DEFAULT NULL,
  region varchar2 DEFAULT NULL, 
  endpoint varchar2 DEFAULT NULL,
  credential_name varchar2 DEFAULT NULL
) RETURN dbms_cloud_oci_fnc_functions_invoke_invoke_function_response_t;

Parameters

Parameter Description

function_id

(required) The OCID of this function.

invoke_function_body

(optional) The body of the function invocation. Note: The maximum size of the request is limited. This limit is currently 6MB and the endpoint will not accept requests that are bigger than this limit.

fn_intent

(optional) An optional intent header that indicates to the FDK the way the event should be interpreted. E.g. 'httprequest', 'cloudevent'.

Allowed values are: 'httprequest', 'cloudevent'

fn_invoke_type

(optional) Indicates whether the functions platform should execute the request directly and return the result ('sync') or whether the platform should enqueue the request for later processing and acknowledge that it has been processed ('detached').

Allowed values are: 'detached', 'sync'

opc_request_id

(optional) The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.

region

(optional) OCI region id. e.g us-phoenix-1 for US West (Phoenix).

endpoint

(optional) The endpoint of the service to call using this function. e.g https://functions.{region}.oci.{secondLevelDomain}.If both endpoint and region are given, then endpoint takes precedence.

credential_name

(optional) The name of the credential for authenticating with the corresponding cloud native API.