---
title: "Get Data Source"
method: GET
path: "/v1/dataSources/{dataSourceId}"
tags: ["Cloud"]
---

# Get Data Source

`GET /v1/dataSources/{dataSourceId}`

Gets a specific existing data source. If the creator of the data source is the user making the request, the link parameters will be returned with the data source.

## Path parameters

- `dataSourceId` string, required — Cloud data source ID

## Response `200`

OK. Returns the specified data source.

- union
  - AwsDataSourceObject
    - `dataSourceId` string, required — AWS data source ID
    - `type` 'aws', required
    - `params` object, required
      - `name` string, required
      - `importType` 'crossAccount' | 'cliJson', required
      - `awsAccountId` string — The ID of the linked AWS account (only for crossAccount import types)
      - `regions` string[] — List of AWS regions selected for the data source (only for crossAccount import types)
      - `resourceSelection` string[] — List of AWS resources included in the data source (only for crossAccount import types)
  - AzureDataSourceObject
    - `dataSourceId` string, required — Azure data source ID
    - `type` 'azure', required
    - `params` object, required
      - `name` string, required
      - `importType` 'adApp' | 'cliJson', required
      - `subscriptionId` string — The ID of the linked Azure subscription (only for adApp import types)
      - `resourceSelection` string[] — List of Azure resources included in the data source (only for adApp import types)
  - GoogleCloudDataSourceObject
    - `dataSourceId` string, required — Google Cloud data source ID
    - `type` 'googleCloud', required
    - `params` object, required
      - `name` string, required
      - `importType` 'serviceAccount' | 'cliJson', required
      - `projectIds` string[] — The ID of the linked Google Cloud project (only for serviceAccount import types)
      - `resourceSelection` string[] — List of Google Cloud resources included in the data source (only for serviceAccount import types)

## Other responses

- `400` — Bad Request. Occurs when the data source ID is malformatted.
- `403` — Forbidden. Occurs when the data source does not exist or the user does not have access to it.

---

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