Authorizations
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Path Parameters
Project ID
1
Region ID
1
Namespace name
"namespace-name"
Function name
"function-name"
Body
Autoscaling configuration for the function. Keys must be 'min_instances
' or 'max_instances
', and values must be integers between 0 and 50.
{ "max_instances": 5, "min_instances": 1 }
Function code text.
1 - 100000
"def main():\n return 'Hello World'"
Dependencies for the function to install.
100000
"numpy==1.21.0\npandas==1.3.0"
Description of the function.
255
"This is a sample function."
Set to true if the function is disabled.
false
Enable or disable API key authentication. Enable api key is temporarily disabled. As a result, using Functions with authorization is currently not supported.
true
Environment variables for the function. Keys must match a specific regex pattern and be 1-255 characters long, and values must be 0-255 characters long.
{ "ENV_VAR": "value" }
The name of the flavor associated with the function.
"128m-128MB"
List of used authentication API keys, matching a specific regex pattern.
["key1", "key2"]
The main startup method name.
1 - 100
"run"
Function timeout in seconds.
0 <= x <= 180
60
Response
OK
List of task IDs
["d478ae29-dedc-4869-82f0-96104425f565"]