Properties
NAME | TYPE | DESCRIPTION |
total | integer | Total number of functions documents that matched your query. |
functions | array | List of functions. Can be one of: |
Example
JSON
{
"total": 5,
"functions": [
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"execute": "users",
"name": "My Function",
"enabled": false,
"live": false,
"logging": false,
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": [
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"key": "API_KEY",
"value": "myPa$$word1",
"resourceType": "function",
"resourceId": "myAwesomeFunction"
}
],
"events": "account.create",
"schedule": "5 4 * * *",
"timeout": 300,
"entrypoint": "index.js",
"commands": "npm install",
"version": "v2",
"installationId": "6m40at4ejk5h2u9s1hboo",
"providerRepositoryId": "appwrite",
"providerBranch": "main",
"providerRootDirectory": "functions/helloWorld",
"providerSilentMode": false
}
]
}
JSON
{
"total": 5,
"functions": [
{
"_id": "5e5ea5c16897e",
"_createdAt": "2020-10-15T06:38:00.000+00:00",
"_updatedAt": "2020-10-15T06:38:00.000+00:00",
"execute": "users",
"name": "My Function",
"enabled": false,
"live": false,
"logging": false,
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": [
{
"_id": "5e5ea5c16897e",
"_createdAt": "2020-10-15T06:38:00.000+00:00",
"_updatedAt": "2020-10-15T06:38:00.000+00:00",
"key": "API_KEY",
"value": "myPa$$word1",
"resourceType": "function",
"resourceId": "myAwesomeFunction"
}
],
"events": "account.create",
"schedule": "5 4 * * *",
"timeout": 300,
"entrypoint": "index.js",
"commands": "npm install",
"version": "v2",
"installationId": "6m40at4ejk5h2u9s1hboo",
"providerRepositoryId": "appwrite",
"providerBranch": "main",
"providerRootDirectory": "functions/helloWorld",
"providerSilentMode": false
}
]
}