Invoke
Invoke executes a function at a specific commit with the provided input data.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Path Parameters
The ID of the function to invoke.
Body
The FunctionsServiceInvokeRequest message.
This message contains a oneof named arg. Only a single field of the following list may be set at a time:
- json
The commit ID specifying which version of the function code to run.
The JSON-encoded input data passed to the function.
This field is part of the arg oneof.
See the documentation for c1.api.functions.v1.FunctionsServiceInvokeRequest for more details.
Optional VFS volume ID to attach to this invocation. If empty, VFS operations will error.
Response
Successful response
The FunctionsServiceInvokeResponse message.
This message contains a oneof named resp. Only a single field of the following list may be set at a time:
- json
The ID of the created invocation, used to track execution status and retrieve results.
Deprecated. The JSON-encoded output returned by the function.
This field is part of the resp oneof.
See the documentation for c1.api.functions.v1.FunctionsServiceInvokeResponse for more details.