import { Functions } from "https://deno.land/x/appwrite@2.0.2/mod.ts";
Methods
Create Function
Create a new function. You can pass a list of permissions to allow different project users or team with access to execute the function using the client API.
Create Execution
Trigger a function execution. The returned object will return you the
current execution status. You can ping the Get Execution
endpoint to get
updates on the current execution status. Once this endpoint is called, your
function execution process will start asynchronously.
Create Tag
Create a new function code tag. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's tag to use your new tag UID.
This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the Appwrite Cloud Functions tutorial.
Use the "command" param to set the entry point used to execute your code.
Delete Tag
Delete a code tag by its unique ID.
Get Function
Get a function by its unique ID.
Get Execution
Get a function execution log by its unique ID.
Get Tag
Get a code tag by its unique ID.
List Functions
Get a list of all the project's functions. You can use the query params to filter your results.
List Executions
Get a list of all the current user function execution logs. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's executions. Learn more about different API modes.
List the currently active function runtimes.
Get a list of all runtimes that are currently active in your project.
List Tags
Get a list of all the project's code tags. You can use the query params to filter your results.
Update Function
Update function by its unique ID.
Update Function Tag
Update the function code tag ID using the unique function ID. Use this endpoint to switch the code tag that should be executed by the execution endpoint.