Microsoft Purview · Capability

Microsoft Purview Scanning API — Data Sources

Microsoft Purview Scanning API — Data Sources. 4 operations. Lead operation: Microsoft Purview List data sources. Self-contained Naftiko capability covering one Microsoft Purview business surface.

Run with Naftiko Microsoft PurviewData Sources

What You Can Do

GET
Listdatasources — Microsoft Purview List data sources
/v1/scan/datasources
PUT
Createorreplacedatasource — Microsoft Purview Create or replace a data source
/v1/scan/datasources/{datasourcename}
GET
Getdatasource — Microsoft Purview Get a data source
/v1/scan/datasources/{datasourcename}
DELETE
Deletedatasource — Microsoft Purview Delete a data source
/v1/scan/datasources/{datasourcename}

MCP Tools

microsoft-purview-list-data-sources

Microsoft Purview List data sources

read-only idempotent
microsoft-purview-create-replace-data

Microsoft Purview Create or replace a data source

idempotent
microsoft-purview-get-data-source

Microsoft Purview Get a data source

read-only idempotent
microsoft-purview-delete-data-source

Microsoft Purview Delete a data source

idempotent

Capability Spec

scanning-data-sources.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Purview Scanning API — Data Sources
  description: 'Microsoft Purview Scanning API — Data Sources. 4 operations. Lead operation: Microsoft Purview List data sources.
    Self-contained Naftiko capability covering one Microsoft Purview business surface.'
  tags:
  - Microsoft Purview
  - Data Sources
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_PURVIEW_API_KEY: MICROSOFT_PURVIEW_API_KEY
capability:
  consumes:
  - type: http
    namespace: scanning-data-sources
    baseUri: https://{accountName}.scan.purview.azure.com
    description: Microsoft Purview Scanning API — Data Sources business capability. Self-contained, no shared references.
    resources:
    - name: scan-datasources
      path: /scan/datasources
      operations:
      - name: listdatasources
        method: GET
        description: Microsoft Purview List data sources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: api-version
          in: query
          type: string
          required: true
    - name: scan-datasources-dataSourceName
      path: /scan/datasources/{dataSourceName}
      operations:
      - name: createorreplacedatasource
        method: PUT
        description: Microsoft Purview Create or replace a data source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dataSourceName
          in: path
          type: string
          description: The name of the data source
          required: true
        - name: api-version
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: getdatasource
        method: GET
        description: Microsoft Purview Get a data source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dataSourceName
          in: path
          type: string
          description: The name of the data source
          required: true
        - name: api-version
          in: query
          type: string
          required: true
      - name: deletedatasource
        method: DELETE
        description: Microsoft Purview Delete a data source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: dataSourceName
          in: path
          type: string
          description: The name of the data source
          required: true
        - name: api-version
          in: query
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_PURVIEW_API_KEY}}'
  exposes:
  - type: rest
    namespace: scanning-data-sources-rest
    port: 8080
    description: REST adapter for Microsoft Purview Scanning API — Data Sources. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/scan/datasources
      name: scan-datasources
      description: REST surface for scan-datasources.
      operations:
      - method: GET
        name: listdatasources
        description: Microsoft Purview List data sources
        call: scanning-data-sources.listdatasources
        with:
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/scan/datasources/{datasourcename}
      name: scan-datasources-datasourcename
      description: REST surface for scan-datasources-dataSourceName.
      operations:
      - method: PUT
        name: createorreplacedatasource
        description: Microsoft Purview Create or replace a data source
        call: scanning-data-sources.createorreplacedatasource
        with:
          dataSourceName: rest.dataSourceName
          api-version: rest.api-version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getdatasource
        description: Microsoft Purview Get a data source
        call: scanning-data-sources.getdatasource
        with:
          dataSourceName: rest.dataSourceName
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedatasource
        description: Microsoft Purview Delete a data source
        call: scanning-data-sources.deletedatasource
        with:
          dataSourceName: rest.dataSourceName
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: scanning-data-sources-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Purview Scanning API — Data Sources. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: microsoft-purview-list-data-sources
      description: Microsoft Purview List data sources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: scanning-data-sources.listdatasources
      with:
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-create-replace-data
      description: Microsoft Purview Create or replace a data source
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: scanning-data-sources.createorreplacedatasource
      with:
        dataSourceName: tools.dataSourceName
        api-version: tools.api-version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-get-data-source
      description: Microsoft Purview Get a data source
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: scanning-data-sources.getdatasource
      with:
        dataSourceName: tools.dataSourceName
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-purview-delete-data-source
      description: Microsoft Purview Delete a data source
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: scanning-data-sources.deletedatasource
      with:
        dataSourceName: tools.dataSourceName
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.