Skip to main content
GET
/
fastedge
/
v1
/
apps
/
{id}
/
logs
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.fastedge.apps.logs.list(
    id=0,
)
page = page.logs[0]
print(page.id)
{
  "logs": [
    {
      "id": "<string>",
      "app_name": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "log": "<string>",
      "edge": "<string>",
      "client_ip": "<string>"
    }
  ],
  "offset": 123,
  "total_count": 123
}

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

id
integer<int64>
required

ID of the app

Query Parameters

from
string<date-time>

Reporting period start time, RFC3339 format. Default 1 hour ago.

Example:

"2023-12-31 23:59:59+00:00"

to
string<date-time>

Reporting period end time, RFC3339 format. Default current time in UTC.

Example:

"2024-01-31 23:59:59+00:00"

edge
string<string>

Edge name

sort
enum<string>

Sort order (default desc)

Available options:
desc,
asc
limit
integer<int32>

Limit for pagination

offset
integer<int32>

Offset for pagination

Search string

client_ip
string<ipv4>

Search by client IP

Response

A paged array of logs

logs
object[]
offset
integer<int32>

Current request offset

total_count
integer<int32>

Number of total logs available