GET
/
cloud
/
v1
/
faas
/
namespaces
/
{project_id}
/
{region_id}
/
{namespace_name}
/
functions
/
{function_name}
/
logs
curl --request GET \
  --url https://api.gcore.com/cloud/v1/faas/namespaces/{project_id}/{region_id}/{namespace_name}/functions/{function_name}/logs \
  --header 'APIKey: <api-key>'
{
  "logs": [
    {
      "Message": " 2022/03/02 15:04:03 192.168.171.79:41386 \"GET / HTTP/1.1\" 200 python-requests/2.25.1",
      "Pod": "function-78-5f5ddf5454-n6s94",
      "Time": "2022-03-02T15:04:03.208677349Z"
    },
    {
      "Message": " 2022/03/02 15:04:05 192.168.171.79:41386 \"GET / HTTP/1.1\" 200 python-requests/2.25.1",
      "Pod": "function-78-5f5ddf5454-n6s94",
      "Time": "2022-03-02T15:04:05.208677349Z"
    }
  ]
}

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"

function_name
string
required

Function name

Examples:

"function-name"

Query Parameters

limit
integer
default:1000

Limit the number of logs lines

Required range: 1 <= x <= 100000
Examples:

10

Response

200 - application/json

OK

The response is of type object.