---
title: "GET /datasource-preferences"
method: GET
path: "/datasource-preferences"
tags: ["DatasourcePreferences"]
---

# GET /datasource-preferences

`GET /datasource-preferences`

Get Datasource Preferences for a given scope.

## Query parameters

- `scope` string, required
- `isProjectGondor` boolean
- `api-version` string, required

## Response `200`

Success

- DatasourcePreferencesResponse — Provides the consent information for a data source.
  - `consent` Consent — Consent information related to a resource.
    - `properties` Properties — Consent properties.
      - `scanner` Scanner — Represents the collection of consent information for scanning service.
        - `metadata` boolean — Consent for metadata discovery.
        - `classification` boolean — Consent for classification discovery.
      - `dataUseGovernance` boolean — Consent for data use governance.
    - `excludedScopes` string[] — Child scopes that need to be excluded (optional).
  - `accountInfo` AccountModelBase — Represents a purview account.
    - `id` string — Id of the purview account.
    - `name` string — Name of the purview account.
    - `location` string — Region where purview account is created.
    - `tenantId` string — Tenant id of the purview account.
    - `gatewayEndpoint` string — Purview account gateway endpoint.
  - `frequency` integer — This represents the frequency at which the RPs will check for consent information.

## Other responses

- `default` — An unexpected error occurred

---

[API](https://skmtc.dev/azure/apis/purview-pds.md) · [All operations](https://skmtc.dev/azure/apis/purview-pds/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/purview-pds/revisions/ddd2f6744549/schema)
