Microsoft Purview Datasource Preferences API

The DatasourcePreferences API from Microsoft Purview — 1 operation(s) for datasourcepreferences.

GitHub OpenAPI

Operations 1

GET /datasource-preferences Datasource preferences list #

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/
📖
Authentication
https://learn.microsoft.com/en-us/purview/tutorial-using-rest-apis
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/data-gov-api-create-assets
📖
Authentication
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/how-to-purview-custom-lineage-api-user-guide
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/legacy/tutorial-metadata-policy-collections-apis
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-api-overview
📖
Authentication
https://learn.microsoft.com/en-us/purview/data-gov-api-rest-data-plane
📖
Documentation
https://learn.microsoft.com/en-us/rest/api/purview/unified-catalog-data-quality
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-ediscovery-apioverview?view=graph-rest-1.0
📖
Authentication
https://learn.microsoft.com/en-us/graph/security-ediscovery-appauthsetup
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/edisc-ref-api-guide
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-information-protection-overview
📖
Documentation
https://learn.microsoft.com/en-us/graph/security-datasecurityandgovernance-overview
📖
GettingStarted
https://learn.microsoft.com/en-us/purview/developer/use-the-api
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-recordsmanagement-overview?view=graph-rest-1.0

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-purview:microsoft-purview-datasourcepreferences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-purview-datasourcepreferences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Purview Distribution Service REST API Document Datasource…
  description: Purview distribution service enables various Azure RPs to fetch the policies and attributes for data governance.
  version: '2023-01-01'
servers:
- url: /pds
security:
- azure_auth:
  - user_impersonation
tags:
- name: DatasourcePreferences
paths:
  /datasource-preferences:
    get:
      tags:
      - DatasourcePreferences
      description: Get Datasource Preferences for given scope.
      operationId: DatasourcePreferences_List
      parameters:
      - in: query
        name: scope
        description: Id for any resource managed by Purview.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasourcePreferencesResponseUpdated'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: Datasource preferences list
      x-summary-source: derived
components:
  schemas:
    ConsentServiceModelSimplified:
      description: Consent details.
      type: object
      properties:
        kind:
          description: Consent kind.
          type: string
        status:
          description: Consent status.
          type: string
        excludedScopes:
          description: List of scopes opted out of this consent.
          type: array
          items:
            type: string
    TimeSpan:
      description: This is an ISO8601 time span value.
      type: string
    ErrorResponseModel:
      description: Default error response model.
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
    AccountModelBase:
      description: Details of the purview account governing the requested resource.
      type: object
      properties:
        id:
          description: Id of the Purview account.
          type: string
        name:
          description: Name of the Purview account.
          type: string
        location:
          description: Location (Region) of the Purview account.
          type: string
        tenantId:
          description: Tenant Id of the Purview account.
          type: string
        gatewayEndpoint:
          description: Endpoint of the Purview account. This will be used by the RPs to call Purview APIs.
          type: string
    ErrorModel:
      description: Default error model.
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Error code.
          minLength: 1
          type: string
        message:
          description: Error message.
          minLength: 1
          type: string
        target:
          description: Error description.
          type: string
        details:
          description: Error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    DatasourcePreferencesResponseUpdated:
      description: Response model for datasource preference API.
      type: object
      properties:
        value:
          description: Consent details.
          type: array
          items:
            $ref: '#/components/schemas/ConsentServiceModelSimplified'
        accountInfo:
          $ref: '#/components/schemas/AccountModelBase'
        frequency:
          $ref: '#/components/schemas/TimeSpan'
  parameters:
    api-version:
      in: query
      name: api-version
      description: The api-version of the service.
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/endpoint'