import { Functions } from "https://deno.land/x/appwrite@6.0.0/mod.ts";
Constructors
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 Deployment
Create a new function code deployment. 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 deployment to use your new deployment 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.
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 Variable
Create a new function variable. These variables can be accessed within
function in the env
object under the request variable.
Delete Deployment
Delete a code deployment by its unique ID.
Delete Variable
Delete a variable by its unique ID.
Get Function
Get a function by its unique ID.
Get Deployment
Get a code deployment by its unique ID.
Get Execution
Get a function execution log by its unique ID.
Get Variable
Get a variable 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 Deployments
Get a list of all the project's code deployments. 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 runtimes
Get a list of all runtimes that are currently active on your instance.
List Variables
Get a list of all variables of a specific function.
Retry Build
Update Function
Update function by its unique ID.
Update Function Deployment
Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
Update Variable
Update variable by its unique ID.