GET
/
cloud
/
v3
/
inference
/
{project_id}
/
deployments
/
{deployment_name}
/
logs
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.cloud.inference.deployments.logs.list(
    deployment_name="my-instance",
    project_id=1,
)
page = page.results[0]
print(page.region_id)
{
  "count": 1,
  "results": [
    {
      "message": "GET /v1/predictions",
      "pod": "iate-container-8568ff8fc7-z7vx9",
      "region_id": 7,
      "time": "2024-10-14T14:54:04.82851142Z"
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

deployment_name
string
required

Inference instance name.

Required string length: 4 - 30
Examples:

"my-instance"

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>

Order by field

Available options:
time.asc,
time.desc
region_id
integer | null

Region ID

Examples:

1

Response

200 - application/json

OK

The response is of type object.