---
title: "Gets a paginated list of execution log entries for all maintenance tasks."
method: GET
path: "/api/v{version}/maintenance/logs"
tags: ["Maintenance"]
---

# Gets a paginated list of execution log entries for all maintenance tasks.

`GET /api/v{version}/maintenance/logs`

## Path parameters

- `version` string, required

## Query parameters

- `pageNumber` integer
- `pageSize` integer
- `includeDryRun` boolean

## Response `200`

Returns a paginated list of log entries.

- PaginatedLogResponse — Represents a paginated response containing a subset of BDMS.Maintenance.MaintenanceTaskLogEntry along with pagination info.
  - `totalCount` integer — The total count of matching log entries.
  - `pageNumber` integer — The current page number (1-based).
  - `pageSize` integer — The number of entries per page.
  - `logEntries` MaintenanceTaskLogEntry[] — The log entries on the current page.
    - `taskType` 'LocationMigration' | 'CoordinateMigration' | 'UserMerge' — Represents the type of a maintenance task.
    - `status` 'Idle' | 'Running' | 'Completed' | 'Failed' — Represents the status of a maintenance task.
    - `affectedCount` integer, nullable — Gets the number of records affected by the task execution.
    - `message` string, nullable — Gets the error message if the task failed.
    - `parameters` string, nullable — Gets the parameters used for this task execution, stored as JSON.
    - `isDryRun` boolean — Gets a value indicating whether this was a dry-run execution.
    - `onlyMissing` boolean — Gets a value indicating whether only missing values were processed.
    - `startedByName` string, nullable — Gets the display name of the user who started the task.
    - `startedAt` string, date-time — Gets when the task execution started.
    - `completedAt` string, date-time — Gets when the task execution completed.

---

[API](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2.md) · [All operations](https://skmtc.net/geoadmin/apis/boreholes-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geoadmin/boreholes-rest-api-v2/revisions/e6d0b4ee0f52/schema)
