Function as a Service
Create namespace
Create a new namespace for serverless functions. The namespace will be created in the specified project and region.
post/cloud/v1/faas/namespaces/{project_id}/{region_id}
Path parameters
project_idinteger required
Project ID
Example:1
Project ID
region_idinteger required
Region ID
Example:1
Region ID
Request body
Example request
{
"description": "This is a sample namespace.",
"envs": {
"ENV_VAR": "value"
},
"name": "namespace-name"
}Response
OK
Example response
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}