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"
Body
Autoscaling configuration for the function. Keys must be 'min_instances
' or 'max_instances
', and values must be integers between 0 and 50.
Function code text.
1 - 100000
"def main():\n return 'Hello World'"
The name of the flavor associated with the function.
"64m-64MB"
The main startup method name.
1 - 100
"handler"
Function name.
"function-name"
Function runtime.
"python3.7.12"
Function timeout in seconds.
0 <= x <= 180
5
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."
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" }
Response
OK
List of task IDs
["d478ae29-dedc-4869-82f0-96104425f565"]