foliolib.folio.api.dataExport.DataExportLogs

class foliolib.folio.api.dataExport.DataExportLogs(tenant: str, okapi: Optional[foliolib.okapi.okapiClient.OkapiClient] = None)

Bases: foliolib.folio.FolioApi

Data export Error Logs API

APIs for managing Error Logs

Parameters
  • tenant (str) – Tenant id

  • okapi (OkapiClient, optional) – Instance of OkapiClient. Defaults to None.

Methods

get_logs(**kwargs)

Retrieve log item with given {logId}

get_logs(**kwargs)

Retrieve log item with given {logId}

GET /data-export/logs

Parameters

**kwargs (properties) – Keyword Arguments

Keyword Arguments
  • offset (int) –

    (default=0) Skip over a number of elements by specifying an offset value for the query

    Example

    • 0

  • limit (int) –

    (default=10) Limit the number of elements returned in the response

    Example

    • 10

  • query (str) –

    A query expressed as a CQL string (see [dev.folio.org/reference/glossary#cql](https://dev.folio.org/reference/glossary#cql)) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.

    with valid searchable fields

    Example

    • (username==”ab*” or personal.firstName==”ab*” or personal.lastName==”ab*”) and active==”true” sortby personal.lastName personal.firstName barcode

    • jobExecutionId=67dfac11-1caf-4470-9ad1-d533f6360bdd

Returns

See Schema below

Return type

dict

Raises
  • OkapiRequestError – Bad Request

  • OkapiRequestUnauthorized – Authentication is required

  • OkapiRequestNotFound – Not Found

  • OkapiFatalError – Server Error

  • OkapiRequestUnprocessableEntity – Unprocessable Entity

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Collection of Error Logs",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "errorLogs": {
      "description": "List of Error Logs",
      "type": "array",
      "id": "errorLogList",
      "items": {
        "type": "object",
        "$ref": "errorLog.json"
      }
    },
    "totalRecords": {
      "description": "Total number of Error Logs",
      "type": "integer"
    }
  },
  "required": [
    "errorLogs",
    "totalRecords"
  ]
}