Get logs of DBaaS service

POST /dbaas-service-logs/{service-name}

Get logs of DBaaS service

Path parameters

  • service-name string Required
application/json

Body Required

  • limit integer(int64)

    How many log entries to receive at most, up to 500 (default: 100)

    Minimum value is 1, maximum value is 500.

  • sort-order string

    Values are desc or asc.

  • offset string

    Opaque offset identifier

Responses

  • 200 application/json

    200

    Hide response attributes Show response attributes object
    • offset string
    • first-log-offset string
    • logs array[object]
      Hide logs attributes Show logs attributes object
      • unit string
      • time string
      • message string
      • node string
POST /dbaas-service-logs/{service-name}
curl \
 --request POST 'https://api-ch-gva-2.exoscale.com/v2/dbaas-service-logs/{service-name}' \
 --header "Content-Type: application/json" \
 --data '{"limit":42,"sort-order":"desc","offset":"string"}'
Request examples
{
  "limit": 42,
  "sort-order": "desc",
  "offset": "string"
}
Response examples (200)
{
  "offset": "string",
  "first-log-offset": "string",
  "logs": [
    {
      "unit": "string",
      "time": "string",
      "message": "string",
      "node": "string"
    }
  ]
}