GET
/
cloud
/
v1
/
faas
/
namespaces
/
{project_id}
/
{region_id}
/
{namespace_name}
/
functions
curl --request GET \
  --url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions \
  --header 'APIKey: <api-key>'
{
  "count": 1,
  "results": [
    {
      "autoscaling": {
        "max_instances": 2,
        "min_instances": 1
      },
      "build_message": "Building",
      "build_status": "Building",
      "code_text": "def main():\n    return 'Hello World'",
      "created_at": "2023-08-22T11:21:00Z",
      "dependencies": "numpy==1.21.0\npandas==1.3.0",
      "deploy_status": {
        "deployed": 1
      },
      "description": "This is a sample function.",
      "enable_api_key": true,
      "endpoint": "https://example.com/function-name",
      "envs": {
        "ENV_VAR": "value"
      },
      "flavor": "64m-64MB",
      "id": "c8a920ad-b5a4-47d5-b8b9-0e6c35cd800f",
      "main_method": "run",
      "name": "function-name",
      "runtime": "python3.7.12",
      "status": "Running",
      "timeout": 5
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

namespace_name
string
required

Namespace name

Examples:

"namespace-name"

Query Parameters

limit
integer
default:1000

Optional. Limit the number of returned items

Required range: 0 < x <= 1000
Examples:

1000

offset
integer
default:0

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

Required range: x >= 0
Examples:

0

order_by
enum<string>

Ordering fields and directions.

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

Search through which value

Examples:

"search-value"

Response

200 - application/json

OK

The response is of type object.