Microsoft Azure Scan Rulesets API

The Scan Rulesets API from Microsoft Azure, for scan rulesets.

GitHub OpenAPI

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /scanrulesets/{scanRulesetName} Get a scan rule set · Microsoft Azure Get Scanrulesets Scanrulesetname #
Ask an LLM
“How do I view the settings of one Purview scan rule set?”
“Which file types and classifications does a given scan rule set include?”
Tell an agent
Show scan rule set {name}.
Get the definition of scan rule set {name}.
PUT /scanrulesets/{scanRulesetName} Create or update a scan rule set · Microsoft Azure Put Scanrulesets Scanrulesetname #
Ask an LLM
“How do I create a custom scan rule set for a data source type?”
“Can I change the status of an existing scan rule set?”
Tell an agent
Create scan rule set {name} for data source kind {kind}.
Set the status of scan rule set {name} to {status}.
DELETE /scanrulesets/{scanRulesetName} Delete a scan rule set · Microsoft Azure Delete Scanrulesets Scanrulesetname #
Ask an LLM
“How do I remove a custom scan rule set I no longer use?”
“Can I delete a scan rule set from the data catalog?”
Tell an agent destructive · confirm first
Delete scan rule set {name}.
Remove the custom scan rule set {name}.
GET /scanrulesets List scan rule sets · Microsoft Azure Get Scanrulesets #
Ask an LLM
“What scan rule sets are defined in my data catalog?”
“Which custom rule sets can I pick from when setting up a scan?”
Tell an agent
List all scan rule sets.
Show every scan rule set in the catalog using API version {apiVersion}.

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-azure:microsoft-azure-scan-rulesets-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-azure-scan-rulesets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure MicrosoftScanningClient Scan Rulesets API
  description: Creates a Microsoft.Scanning management client.
  version: 2022-07-01-preview
servers:
- url: https://purview.azure.com/scan
security:
- azure_auth:
  - user_impersonation
tags:
- name: Scan Rulesets
paths:
  /scanrulesets/{scanRulesetName}:
    get:
      tags:
      - Scan Rulesets
      description: Get a scan ruleset
      operationId: microsoftAzureScanrulesetsGet
      parameters:
      - in: path
        name: scanRulesetName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanRuleset'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ScanRulesets_Get:
          $ref: ./examples/ScanRulesets_Get.json
      summary: Microsoft Azure Get Scanrulesets Scanrulesetname
    put:
      tags:
      - Scan Rulesets
      description: Creates or Updates a scan ruleset
      operationId: microsoftAzureScanrulesetsCreateorupdate
      parameters:
      - in: path
        name: scanRulesetName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanRuleset'
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanRuleset'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ScanRulesets_CreateOrUpdate:
          $ref: ./examples/ScanRulesets_CreateOrUpdate.json
      summary: Microsoft Azure Put Scanrulesets Scanrulesetname
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanRuleset'
    delete:
      tags:
      - Scan Rulesets
      description: Deletes a scan ruleset
      operationId: microsoftAzureScanrulesetsDelete
      parameters:
      - in: path
        name: scanRulesetName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanRuleset'
        '204':
          description: Success
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ScanRulesets_Delete:
          $ref: ./examples/ScanRulesets_Delete.json
      summary: Microsoft Azure Delete Scanrulesets Scanrulesetname
  /scanrulesets:
    get:
      tags:
      - Scan Rulesets
      description: List scan rulesets in Data catalog
      operationId: microsoftAzureScanrulesetsListall
      parameters:
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanRulesetList'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ScanRulesets_ListAll:
          $ref: ./examples/ScanRulesets_ListAll.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Scanrulesets
components:
  schemas:
    ScanRuleset:
      required:
      - kind
      type: object
      allOf:
      - $ref: '#/components/schemas/VersionedScanRuleset'
      properties:
        kind:
          enum:
          - None
          - AzureSubscription
          - AzureResourceGroup
          - AzureSynapseWorkspace
          - AzureSynapse
          - AdlsGen1
          - AdlsGen2
          - AmazonAccount
          - AmazonS3
          - AmazonSql
          - AzureCosmosDb
          - AzureDataExplorer
          - AzureFileService
          - AzureSqlDatabase
          - AmazonPostgreSql
          - AzurePostgreSql
          - SqlServerDatabase
          - AzureSqlDatabaseManagedInstance
          - AzureSqlDataWarehouse
          - AzureMySql
          - AzureStorage
          - Teradata
          - Oracle
          - SapS4Hana
          - SapEcc
          - PowerBI
          type: string
          x-ms-enum:
            name: DataSourceType
            modelAsString: true
      discriminator:
        propertyName: kind
    VersionedScanRuleset:
      type: object
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
      properties:
        scanRulesetType:
          enum:
          - Custom
          - System
          type: string
          x-ms-enum:
            name: ScanRulesetType
            modelAsString: true
        status:
          enum:
          - Enabled
          - Disabled
          type: string
          readOnly: true
          x-ms-enum:
            name: ScanRulesetStatus
            modelAsString: true
        version:
          format: int32
          type: integer
          readOnly: true
    ErrorModel:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        target:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    ErrorResponseModel:
      type: object
      properties:
        error:
          allOf:
          - $ref: '#/components/schemas/ErrorModel'
    ScanRulesetList:
      required:
      - value
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/ScanRuleset'
        nextLink:
          type: string
        count:
          format: int64
          type: integer
    ProxyResource:
      type: object
      properties:
        id:
          type: string
          readOnly: true
        name:
          type: string
          readOnly: true
  parameters:
    api-version:
      in: query
      name: api-version
      description: The api version to use.
      required: true
      x-ms-client-name: ApiVersion
      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'