Skip to main content
GET
/
cloud
/
v1
/
faas
/
namespaces
/
{project_id}
/
{region_id}
/
{namespace_name}
Get namespace
curl --request GET \
  --url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name} \
  --header 'Authorization: <api-key>'
{
  "created_at": "<string>",
  "functions": [
    {
      "autoscaling": {
        "max_instances": 25,
        "min_instances": 25
      },
      "build_message": "<string>",
      "build_status": "<string>",
      "code_text": "<string>",
      "created_at": "<string>",
      "dependencies": "<string>",
      "deploy_status": {},
      "description": "<string>",
      "endpoint": "<string>",
      "flavor": "<string>",
      "id": "<string>",
      "main_method": "<string>",
      "name": "<string>",
      "runtime": "<string>",
      "status": "<string>",
      "timeout": 90,
      "enable_api_key": true,
      "envs": {
        "ENV_VAR": "value"
      }
    }
  ],
  "functions_deploy_status": {},
  "name": "<string>",
  "status": "<string>",
  "description": "This is a sample namespace.",
  "envs": {
    "ENV_VAR": "value"
  }
}

Authorizations

Authorization
string
header
required

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
integer
required

Project ID

region_id
integer
required

Region ID

namespace_name
string
required

Namespace name

Response

200 - application/json

OK

created_at
string
required

Namespace creation date.

functions
FunctionSerializer · object[]
required

Namespace functions.

functions_deploy_status
Functions Deploy Status · object
required

Deploy status of namespace functions.

name
string
required

Namespace name.

status
string
required

Namespace status.

description
string | null

Namespace description.

Maximum string length: 255
Example:

"This is a sample namespace."

envs
Envs · object

Namespace environment variables. Keys must match a specific regex pattern and be 1-255 characters long, and values must be 0-255 characters long.

Example:
{ "ENV_VAR": "value" }