Microsoft Purview System Scan Rulesets API

The SystemScanRulesets API from Microsoft Purview — 5 operation(s) for systemscanrulesets.

GitHub OpenAPI

Operations 5

GET /systemScanRulesets System scan rulesets list #
GET /systemScanRulesets/datasources/{dataSourceType} System scan rulesets get #
GET /systemScanRulesets/versions/{version} System scan rulesets get by version #
GET /systemScanRulesets/versions/latest System scan rulesets get latest #
GET /systemScanRulesets/versions System scan rulesets list versions by data source #

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-systemscanrulesets-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-systemscanrulesets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MicrosoftScanningClient System Scan Rulesets API
  description: Creates a Microsoft.Scanning management client.
  version: '2023-09-01'
servers:
- url: https://purview.azure.com/scan
security:
- azure_auth:
  - user_impersonation
tags:
- name: SystemScanRulesets
paths:
  /systemScanRulesets:
    get:
      tags:
      - SystemScanRulesets
      description: Lists all system scan rulesets for an account.
      operationId: SystemScanRulesets_List
      parameters:
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemScanRulesetList'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: System scan rulesets list
      x-summary-source: derived
  /systemScanRulesets/datasources/{dataSourceType}:
    get:
      tags:
      - SystemScanRulesets
      description: Gets a system scan ruleset for a data source.
      operationId: SystemScanRulesets_Get
      parameters:
      - $ref: '#/components/parameters/dataSourceTypeInPath'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemScanRuleset'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: System scan rulesets get
      x-summary-source: derived
  /systemScanRulesets/versions/{version}:
    get:
      tags:
      - SystemScanRulesets
      description: Gets a scan ruleset by version.
      operationId: SystemScanRulesets_GetByVersion
      parameters:
      - $ref: '#/components/parameters/dataSourceTypeInQuery'
      - in: path
        name: version
        required: true
        description: The version number.
        schema:
          type: integer
          format: int32
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemScanRuleset'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: System scan rulesets get by version
      x-summary-source: derived
  /systemScanRulesets/versions/latest:
    get:
      tags:
      - SystemScanRulesets
      description: Gets the latest version of a system scan ruleset.
      operationId: SystemScanRulesets_GetLatest
      parameters:
      - $ref: '#/components/parameters/dataSourceTypeInQuery'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemScanRuleset'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      summary: System scan rulesets get latest
      x-summary-source: derived
  /systemScanRulesets/versions:
    get:
      tags:
      - SystemScanRulesets
      description: Lists system scan ruleset versions in data catalog.
      operationId: SystemScanRulesets_ListVersionsByDataSource
      parameters:
      - $ref: '#/components/parameters/dataSourceTypeInQuery'
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SystemScanRulesetList'
        default:
          description: An error response received from the Scanning Service.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: System scan rulesets list versions by data source
      x-summary-source: derived
components:
  schemas:
    VersionedScanRuleset:
      description: The versioned scan ruleset.
      type: object
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
      properties:
        scanRulesetType:
          enum:
          - Custom
          - System
          type: string
          description: Versioned scan ruleset properties.
          x-ms-enum:
            name: ScanRulesetType
            values:
            - value: Custom
              description: the scan ruleset type is custom
            - value: System
              description: the scan ruleset type is system default
            modelAsString: true
        status:
          enum:
          - Enabled
          - Disabled
          type: string
          description: Status of versioned scan ruleset properties.
          readOnly: true
          x-ms-enum:
            name: ScanRulesetStatus
            modelAsString: true
        version:
          format: int32
          type: integer
          description: Version of versioned scan ruleset properties.
          readOnly: true
    DataSourceType:
      description: The data source type.
      enum:
      - None
      - Fabric
      - AzureSubscription
      - AzureResourceGroup
      - AzureSynapseWorkspace
      - AzureSynapse
      - AdlsGen1
      - AdlsGen2
      - AmazonAccount
      - AmazonS3
      - AmazonSql
      - AzureCosmosDb
      - AzureDataExplorer
      - AzureFileService
      - AzureSqlDatabase
      - ArcEnabledSqlServer
      - AmazonPostgreSql
      - AzurePostgreSql
      - Databricks
      - SqlServerDatabase
      - AzureSqlDatabaseManagedInstance
      - AzureSqlDataWarehouse
      - AzureMySql
      - Hdfs
      - TableauServer
      - AzureStorage
      - Teradata
      - Oracle
      - PostgreSql
      - AmazonRedShift
      - DatabricksHms
      - SapS4Hana
      - SapEcc
      - Snowflake
      - PowerBI
      - Trident
      - Dataverse
      - DatabricksUnityCatalog
      type: string
      x-ms-enum:
        name: DataSourceType
        modelAsString: true
    ProxyResource:
      description: The proxy resource.
      type: object
      properties:
        id:
          description: The resource identifier.
          type: string
          readOnly: true
        name:
          description: The resource name.
          type: string
          readOnly: true
    SystemScanRuleset:
      description: The system scan ruleset.
      required:
      - kind
      type: object
      allOf:
      - $ref: '#/components/schemas/VersionedScanRuleset'
      properties:
        kind:
          $ref: '#/components/schemas/DataSourceType'
      discriminator:
        propertyName: kind
    ErrorResponseModel:
      description: The error response model.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
      required:
      - error
    SystemScanRulesetList:
      description: List of system scan rulesets.
      required:
      - value
      type: object
      properties:
        value:
          description: List of system scan rulesets.
          type: array
          items:
            $ref: '#/components/schemas/SystemScanRuleset'
        nextLink:
          description: The link to the next page of results, if any remaining results exist.
          type: string
        count:
          description: The number of system scan rulesets.
          format: int64
          type: integer
    ErrorModel:
      description: The error model.
      type: object
      properties:
        code:
          description: A unique error code that identifies the specific error.
          type: string
        message:
          description: A human-readable error message that provides more details about the error.
          type: string
        target:
          description: The specific component that the error is associated with.
          type: string
        details:
          description: An array of nested ErrorModel objects that provides additional error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
      required:
      - code
      - message
  parameters:
    dataSourceTypeInQuery:
      in: query
      name: dataSourceType
      description: The data source type.
      x-ms-enum:
        name: DataSourceType
        modelAsString: true
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - None
        - Fabric
        - AzureSubscription
        - AzureResourceGroup
        - AzureSynapseWorkspace
        - AzureSynapse
        - AdlsGen1
        - AdlsGen2
        - AmazonAccount
        - AmazonS3
        - AmazonSql
        - AzureCosmosDb
        - AzureDataExplorer
        - AzureFileService
        - AzureSqlDatabase
        - ArcEnabledSqlServer
        - AmazonPostgreSql
        - AzurePostgreSql
        - Databricks
        - SqlServerDatabase
        - AzureSqlDatabaseManagedInstance
        - AzureSqlDataWarehouse
        - AzureMySql
        - Hdfs
        - TableauServer
        - AzureStorage
        - Teradata
        - Oracle
        - PostgreSql
        - AmazonRedShift
        - DatabricksHms
        - SapS4Hana
        - SapEcc
        - Snowflake
        - PowerBI
        - Trident
        - Dataverse
        - DatabricksUnityCatalog
    api-version:
      in: query
      name: api-version
      description: The api version to use.
      required: true
      x-ms-client-name: ApiVersion
      x-ms-parameter-location: client
      schema:
        type: string
    dataSourceTypeInPath:
      in: path
      name: dataSourceType
      description: The data source type.
      required: true
      x-ms-enum:
        name: DataSourceType
        modelAsString: true
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - None
        - Fabric
        - AzureSubscription
        - AzureResourceGroup
        - AzureSynapseWorkspace
        - AzureSynapse
        - AdlsGen1
        - AdlsGen2
        - AmazonAccount
        - AmazonS3
        - AmazonSql
        - AzureCosmosDb
        - AzureDataExplorer
        - AzureFileService
        - AzureSqlDatabase
        - ArcEnabledSqlServer
        - AmazonPostgreSql
        - AzurePostgreSql
        - Databricks
        - SqlServerDatabase
        - AzureSqlDatabaseManagedInstance
        - AzureSqlDataWarehouse
        - AzureMySql
        - Hdfs
        - TableauServer
        - AzureStorage
        - Teradata
        - Oracle
        - PostgreSql
        - AmazonRedShift
        - DatabricksHms
        - SapS4Hana
        - SapEcc
        - Snowflake
        - PowerBI
        - Trident
        - Dataverse
        - DatabricksUnityCatalog
  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'