Skip to main content
GET
/
cloud
/
v1
/
faas
/
namespaces
/
{project_id}
/
{region_id}
List namespaces
curl --request GET \
  --url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id} \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "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

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: x <= 1000
offset
integer
default:0

Optional. Offset value is used to exclude the first set of records from the result

Required range: x >= 0
order_by
enum<string>
default:created_at.desc

Ordering fields and directions.

Available options:
created_at.asc,
created_at.desc,
name.asc,
name.desc

Search through which value

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
NamespaceSerializer · object[]
required

Objects