import { Functions } from "https://deno.land/x/appwrite@8.0.1/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 Build
Create a new build for an Appwrite Function deployment. This endpoint can be used to retry a failed build.
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 entrypoint 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 environment variable. These variables can be accessed in the function at runtime as environment variables.
Delete Deployment
Delete a code deployment by its unique ID.
Delete Variable
Delete a variable by its unique ID.
Download Deployment
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.
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.
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.