---
title: "GET /scan-requests"
method: GET
path: "/scan-requests"
tags: ["ScanRequestController"]
---

# GET /scan-requests

`GET /scan-requests`

## Response `200`

Array of ScanRequest model instances

- ScanRequestWithRelations[]
  - `id` number
  - `dataSourceConfig` union, required
    - object
      - `connector` string, required
      - `token` string
      - `host` string, required
      - `path` string, required
      - `port` number
      - `protocol` string
      - `profileNotebook` string
    - object
      - `connector` string, required
  - `scanParameters` object
    - `profile` boolean, required
    - `modelDefinitions` object[]
      - `name` string
      - `properties` object
      - `settings` object
        - `databricks` object
          - `catalog` string
          - `database` string
          - `tableName` string
          - `isTemporary` boolean
  - `logs` ScanRequestLogWithRelations[]
    - `id` number
    - `scanRequestId` number, required
    - `status` 'complete' | 'in progress', required
    - `modelDefinition` object
      - `name` string
      - `properties` object
      - `settings` object
        - `databricks` object
          - `catalog` string
          - `database` string
          - `tableName` string
          - `isTemporary` boolean
    - `modelProfile` object
      - `rowCount` number, required
      - `propertyProfiles` object[]
        - `frequencyDistribution` object[], required
          - `bucketName` string, required
          - `bucketCount` number, required
        - `distinctValues` number, required
        - `databricks` object
          - `col_name` string
      - `settings` object, required
        - `databricks` object
          - `catalog` string
          - `database` string
          - `tableName` string
          - `isTemporary` boolean

## Changes

> 5 revisions in range; 1 could not be searched.

- **2022-12-15** `17f92620449e` — 1 info
  - added the optional property `items/logs/items/modelProfile` to the response with the `200` status
- **2022-11-29** `f9eb0e2fcd7e` — 1 breaking, 5 info
  - the `items/logs/items/modelDefinition/properties/additionalProperties/databricks/comment` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - added the optional property `items/dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/port` to the response with the `200` status
  - added the optional property `items/dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/profileNotebook` to the response with the `200` status
  - added the optional property `items/dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/protocol` to the response with the `200` status
  - …2 more
- **2022-11-28** `e74eebc73540` — 1 breaking
  - the response property `items/dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/token` became optional for the status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/ohdsi/apis/data-connection/changes/scan-requests/get.md)

---

[API](https://skmtc.dev/ohdsi/apis/data-connection.md) · [All operations](https://skmtc.dev/ohdsi/apis/data-connection/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ohdsi/data-connection/revisions/b5ead99a1d44/schema)
