Show / Hide Table of Contents

Class InvokeFunctionRequest

Inheritance
object
InvokeFunctionRequest
Implements
IOciRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.FunctionsService.Requests
Assembly: OCI.DotNetSDK.Functions.dll
Syntax
public class InvokeFunctionRequest : IOciRequest
Examples

Click here to see an example of how to use InvokeFunction request.

Properties

FnIntent

Declaration
[HttpConverter(TargetEnum.Header, "fn-intent")]
public InvokeFunctionRequest.FnIntentEnum? FnIntent { get; set; }
Property Value
Type Description
InvokeFunctionRequest.FnIntentEnum?

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

FnInvokeType

Declaration
[HttpConverter(TargetEnum.Header, "fn-invoke-type")]
public InvokeFunctionRequest.FnInvokeTypeEnum? FnInvokeType { get; set; }
Property Value
Type Description
InvokeFunctionRequest.FnInvokeTypeEnum?

Indicates whether Oracle Functions should execute the request and return the result ('sync') of the execution, or whether Oracle Functions should return as soon as processing has begun ('detached') and leave result handling to the function.

FunctionId

Declaration
[Required(ErrorMessage = "FunctionId is required.")]
[HttpConverter(TargetEnum.Path, "functionId")]
public string FunctionId { get; set; }
Property Value
Type Description
string

The OCID of this function.

Remarks

Required

InvokeFunctionBody

Declaration
[HttpConverter(TargetEnum.Body)]
public Stream InvokeFunctionBody { get; set; }
Property Value
Type Description
Stream

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.

IsDryRun

Declaration
[HttpConverter(TargetEnum.Header, "is-dry-run")]
public bool? IsDryRun { get; set; }
Property Value
Type Description
bool?

Indicates that the request is a dry run, if set to "true". A dry run request does not execute the function.

OpcRequestId

Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type Description
string

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

Implements

IOciRequest
In this article
Back to top