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

# GET /scan-requests/{id}

`GET /scan-requests/{id}`

## Path parameters

- `id` number, required

## Response `200`

ScanRequest model instance

- ScanRequestWithRelations — (tsType: ScanRequestWithRelations, schemaOptions: { includeRelations: true })
  - `id` number
  - `dataSourceConfig` object, required
    - `connector` 'databricks' | 'postgresql', required
    - `token` string, required
    - `host` string, required
    - `path` string, required
  - `scanParameters` object
  - `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

## Changes

- **2022-11-28** `8517ac9eef50` — 3 breaking, 7 warning, 2 info
  - the `connector` response property const value `databricks` was removed for the status `200`
  - the `logs/items/modelDefinition/properties/additionalProperties/databricks/comment` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - removed the required property `scanParameters/profile` from the response with the `200` status
  - removed the optional property `dataSourceConfig/anyOf[subschema #1: DatabricksConfig]/port` from the response with the `200` status
  - …8 more

[Change history](https://skmtc.dev/ohdsi/apis/data-connection/changes/scan-requests/:id/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/8517ac9eef50/schema)
