cURL
curl --request POST \ --url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "description": "This is a sample namespace.", "envs": { "ENV_VAR": "value" }, "name": "namespace-name" }'
{ "tasks": [ "d478ae29-dedc-4869-82f0-96104425f565" ] }
Create a new namespace for serverless functions. The namespace will be created in the specified project and region.
255
Was this page helpful?