Microsoft Defender for Cloud Data Scanners API

The DataScanners API from Microsoft Defender for Cloud — 2 operation(s) for datascanners.

GitHub OpenAPI

Operations 4

GET /{scopeId}/providers/Microsoft.Security/dataScanners Data scanners list #
GET /{scopeId}/providers/Microsoft.Security/dataScanners/{scannerName} Data scanners get #
PUT /{scopeId}/providers/Microsoft.Security/dataScanners/{scannerName} Data scanners create or update #
DELETE /{scopeId}/providers/Microsoft.Security/dataScanners/{scannerName} Data scanners delete #

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-defender-for-cloud:microsoft-defender-for-cloud-datascanners-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-defender-for-cloud-datascanners-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Security Center Data Scanners API
  version: '2026-08-01'
  description: API spec for Microsoft.Security (Azure Security Center) data scanners resource provider.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DataScanners
paths:
  /{scopeId}/providers/Microsoft.Security/dataScanners:
    get:
      operationId: DataScanners_List
      tags:
      - DataScanners
      description: Lists all data scanner resources for the specified scope.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: scopeId
        in: path
        description: 'The scope of the data scanner. Valid scopes are a subscription (format: ''subscriptions/{subscriptionId}'') or a resource group (format: ''subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'').'
        required: true
        x-ms-skip-url-encoding: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataScannerList'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Data scanners list
      x-summary-source: derived
  /{scopeId}/providers/Microsoft.Security/dataScanners/{scannerName}:
    get:
      operationId: DataScanners_Get
      tags:
      - DataScanners
      description: Gets a data scanner resource for the specified scope.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: scopeId
        in: path
        description: 'The scope of the data scanner. Valid scopes are a subscription (format: ''subscriptions/{subscriptionId}'') or a resource group (format: ''subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'').'
        required: true
        x-ms-skip-url-encoding: true
        schema:
          type: string
      - name: scannerName
        in: path
        description: The name of the data scanner.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{1,260}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataScanner'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      summary: Data scanners get
      x-summary-source: derived
    put:
      operationId: DataScanners_CreateOrUpdate
      tags:
      - DataScanners
      description: Creates or updates a data scanner resource for the specified scope.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: scopeId
        in: path
        description: 'The scope of the data scanner. Valid scopes are a subscription (format: ''subscriptions/{subscriptionId}'') or a resource group (format: ''subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'').'
        required: true
        x-ms-skip-url-encoding: true
        schema:
          type: string
      - name: scannerName
        in: path
        description: The name of the data scanner.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{1,260}$
      responses:
        '200':
          description: Resource 'DataScanner' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataScanner'
        '201':
          description: Resource 'DataScanner' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataScanner'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DataScanner'
        description: The data scanner resource.
        required: true
      summary: Data scanners create or update
      x-summary-source: derived
    delete:
      operationId: DataScanners_Delete
      tags:
      - DataScanners
      description: Deletes a data scanner resource for the specified scope.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - name: scopeId
        in: path
        description: 'The scope of the data scanner. Valid scopes are a subscription (format: ''subscriptions/{subscriptionId}'') or a resource group (format: ''subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'').'
        required: true
        x-ms-skip-url-encoding: true
        schema:
          type: string
      - name: scannerName
        in: path
        description: The name of the data scanner.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{1,260}$
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.CloudError'
      summary: Data scanners delete
      x-summary-source: derived
components:
  schemas:
    Common.CloudErrorBody:
      type: object
      description: The error detail.
      properties:
        code:
          type: string
          description: The error code.
          readOnly: true
        message:
          type: string
          description: The error message.
          readOnly: true
        target:
          type: string
          description: The error target.
          readOnly: true
        details:
          type: array
          description: The error details.
          items:
            $ref: '#/components/schemas/Common.CloudErrorBody'
          readOnly: true
          x-ms-identifiers: []
        additionalInfo:
          type: array
          description: The error additional info.
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          readOnly: true
          x-ms-identifiers: []
      x-ms-external: true
    ErrorAdditionalInfo:
      type: object
      description: The resource management error additional info.
      properties:
        type:
          type: string
          description: The additional info type.
          readOnly: true
        info:
          type: object
          description: The additional info.
          readOnly: true
    Common.CloudError:
      type: object
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/Common.CloudErrorBody'
          description: The error object.
      x-ms-external: true
    DataScanner:
      type: object
      description: The data scanner resource used by Defender for Storage to scan data for malware and sensitive data discovery.
      properties:
        properties:
          $ref: '#/components/schemas/DataScannerProperties'
          description: Data scanner resource properties.
        identity:
          $ref: '#/components/schemas/SystemAssignedServiceIdentity'
          description: The managed service identities assigned to this resource.
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    DataScannerProperties:
      type: object
      description: Data scanner resource properties. The data scanner is an identity-only resource defined solely by its assigned managed identity.
    DataScannerList:
      type: object
      description: List of data scanner resources.
      properties:
        value:
          type: array
          description: The list of data scanner resources.
          items:
            $ref: '#/components/schemas/DataScanner'
        nextLink:
          type: string
          format: uri
          description: The URI to fetch the next page.
      required:
      - value
    SystemAssignedServiceIdentity:
      type: object
      description: Managed service identity (either system assigned, or none)
      properties:
        principalId:
          type: string
          format: uuid
          description: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
          readOnly: true
        tenantId:
          type: string
          format: uuid
          description: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
          readOnly: true
        type:
          $ref: '#/components/schemas/SystemAssignedServiceIdentityType'
      required:
      - type
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  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.