Microsoft Azure Classification Rules API

The Classification Rules API from Microsoft Azure, for classification rules.

GitHub OpenAPI
Business capability
Data Governance Management BC-610.10

Operations 6

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 /classificationrules/{classificationRuleName} Get a classification rule · Microsoft Azure Get Classificationrules Classificationrulename #
Ask an LLM
“What does a specific data classification rule look like in my account?”
“Can I fetch one classification rule by name?”
Tell an agent
Get classification rule {classificationRuleName}.
Show the definition of rule {classificationRuleName}.
PUT /classificationrules/{classificationRuleName} Create or update a classification rule · Microsoft Azure Put Classificationrules Classificationrulename #
Ask an LLM
“How do I add a custom classification rule for scanning my data?”
“Can I change an existing classification rule's definition?”
Tell an agent
Create classification rule {classificationRuleName} of kind {kind}.
Update rule {classificationRuleName} as a {kind} classification rule.
DELETE /classificationrules/{classificationRuleName} Delete a classification rule · Microsoft Azure Delete Classificationrules Classificationrulename #
Ask an LLM
“Can I remove a custom classification rule I no longer want applied?”
“What deletes a classification rule from the account?”
Tell an agent destructive · confirm first
Delete classification rule {classificationRuleName}.
Remove rule {classificationRuleName} from the account.
GET /classificationrules List classification rules in the account · Microsoft Azure Get Classificationrules #
Ask an LLM
“Which classification rules are defined in my account?”
“Can I see every classification rule in the account at once?”
Tell an agent
List all classification rules in the account using API version {api-version}.
Show me every classification rule we have.
GET /classificationrules/{classificationRuleName}/versions List versions of a classification rule · Microsoft Azure Get Classificationrules Classificationrulename Versions #
Ask an LLM
“What earlier versions exist of a classification rule?”
“Can I see the version history for one rule?”
Tell an agent
List versions of classification rule {classificationRuleName}.
Show the revision history of {classificationRuleName}.
POST /classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag Set the classification action on a rule version · Microsoft Azure Post Classificationrules Classificationrulename Versions… #
Ask an LLM
“How do I promote or keep a specific version of a classification rule?”
“Can I apply a classification action to one version of a rule?”
Tell an agent
Apply action {action} to version {classificationRuleVersion} of rule {classificationRuleName}.
Tag rule {classificationRuleName} version {classificationRuleVersion} with classification action {action}.

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-classification-rules-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-classification-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure MicrosoftScanningClient Classification…
  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: Classification Rules
paths:
  /classificationrules/{classificationRuleName}:
    get:
      tags:
      - Classification Rules
      description: Get a classification rule
      operationId: microsoftAzureClassificationrulesGet
      parameters:
      - in: path
        name: classificationRuleName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationRule'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ClassificationRules_Get:
          $ref: ./examples/ClassificationRules_Get.json
      summary: Microsoft Azure Get Classificationrules Classificationrulename
    put:
      tags:
      - Classification Rules
      description: Creates or Updates a classification rule
      operationId: microsoftAzureClassificationrulesCreateorupdate
      parameters:
      - in: path
        name: classificationRuleName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationRule'
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationRule'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ClassificationRules_CreateOrUpdate:
          $ref: ./examples/ClassificationRules_CreateOrUpdate.json
      summary: Microsoft Azure Put Classificationrules Classificationrulename
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassificationRule'
    delete:
      tags:
      - Classification Rules
      description: Deletes a classification rule
      operationId: microsoftAzureClassificationrulesDelete
      parameters:
      - in: path
        name: classificationRuleName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationRule'
        '204':
          description: Success
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ClassificationRules_Delete:
          $ref: ./examples/ClassificationRules_Delete.json
      summary: Microsoft Azure Delete Classificationrules Classificationrulename
  /classificationrules:
    get:
      tags:
      - Classification Rules
      description: List classification rules in Account
      operationId: microsoftAzureClassificationrulesListall
      parameters:
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationRuleList'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ClassificationRules_ListAll:
          $ref: ./examples/ClassificationRules_ListAll.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Classificationrules
  /classificationrules/{classificationRuleName}/versions:
    get:
      tags:
      - Classification Rules
      description: Lists the rule versions of a classification rule
      operationId: microsoftAzureClassificationrulesListversionsbyclassificationrulename
      parameters:
      - in: path
        name: classificationRuleName
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationRuleList'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ClassificationRules_ListVersionsByClassificationRuleName:
          $ref: ./examples/ClassificationRules_ListVersionsByClassificationRuleName.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Classificationrules Classificationrulename Versions
  /classificationrules/{classificationRuleName}/versions/{classificationRuleVersion}/:tag:
    post:
      tags:
      - Classification Rules
      description: Sets Classification Action on a specific classification rule version.
      operationId: microsoftAzureClassificationrulesTagclassificationversion
      parameters:
      - in: path
        name: classificationRuleName
        required: true
        schema:
          type: string
      - in: path
        name: classificationRuleVersion
        required: true
        schema:
          type: integer
          format: int32
      - in: query
        name: action
        required: true
        x-ms-enum:
          name: ClassificationAction
          modelAsString: true
        schema:
          type: string
          enum:
          - Keep
          - Delete
      - $ref: '#/components/parameters/api-version'
      responses:
        '202':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
        default:
          description: An error response received from the Scanning Service
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        ClassificationRules_TagClassificationVersion:
          $ref: ./examples/ClassificationRules_TagClassificationVersion.json
      summary: Microsoft Azure Post Classificationrules Classificationrulename Versions…
components:
  schemas:
    ErrorInfo:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        target:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorInfo'
    ErrorModel:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        target:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    ClassificationRule:
      required:
      - kind
      type: object
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
      properties:
        kind:
          enum:
          - System
          - Custom
          type: string
          x-ms-enum:
            name: ClassificationRuleType
            modelAsString: true
      discriminator:
        propertyName: kind
    OperationResponse:
      type: object
      properties:
        scanResultId:
          format: uuid
          type: string
        startTime:
          format: date-time
          type: string
        endTime:
          format: date-time
          type: string
        status:
          enum:
          - Accepted
          - InProgress
          - TransientFailure
          - Succeeded
          - Failed
          - Canceled
          type: string
          x-ms-enum:
            name: OperationStatus
            modelAsString: true
        error:
          allOf:
          - $ref: '#/components/schemas/ErrorInfo'
    ErrorResponseModel:
      type: object
      properties:
        error:
          allOf:
          - $ref: '#/components/schemas/ErrorModel'
    ProxyResource:
      type: object
      properties:
        id:
          type: string
          readOnly: true
        name:
          type: string
          readOnly: true
    ClassificationRuleList:
      required:
      - value
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/ClassificationRule'
        nextLink:
          type: string
        count:
          format: int64
          type: integer
  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'