Back to explorehosting

Functions

Serverless compute as a service

Call

Call a function by name

Price: $0.00001 per request

Request Payload

namestring

Name of the function

requestobject

Request body that will be passed to the function

Response

responseobject

Response body that the function returned

Request

Response

1{
2    "response": {
3        "message": "Hello World!"
4    }
5}

Delete

Delete a function by name

Price: Free

Request Payload

namestring

The name of the function

projectstring

Optional project name

Response

Request

Response

1{}

Deploy

Deploy a group of functions

Price: $0.001 per request

Request Payload

entrypointstring

entry point, ie. handler name in the source code if not provided, defaults to the name parameter

namestring

function name

projectstring

project is used for namespacing your functions optional. defaults to "default".

repostring

github url to repo

runtimestring

runtime/language of the function eg: php74, nodejs6, nodejs8, nodejs10, nodejs12, nodejs14, nodejs16 dotnet3 java11 ruby26, ruby27 go111, go113, go116 python37, python38, python39

subfolderstring

optional subfolder path

Response

Request

Response

1{}

Describe

Price: Free

Request Payload

namestring

The name of the function

projectstring

Optional project name

Response

statusstring

timeoutstring

updateTimestring

Request

Response

1{
2    "updateTime": "2021-10-08T10:17:34.914Z",
3    "status": "ACTIVE",
4    "timeout": "60s"
5}

List

List all the deployed functions

Price: Free

Request Payload

projectstring

optional project name

Response

functionsarray

List of functions deployed

Request

Response

1{
2    "functions": [
3        {
4            "project": "a",
5            "name": "test4",
6            "entrypoint": "helloworld",
7            "repo": "github.com/m3o/nodejs-function-example",
8            "subfolder": "",
9            "runtime": "nodejs14",
10            "status": "DEPLOY_IN_PROGRESS"
11        }
12    ]
13}