Microsoft Azure Data Masking Policies API

The DataMaskingPolicies API from Microsoft Azure, for datamaskingpolicies.

GitHub OpenAPI

Operations 2

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

PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName} Create or update a SQL database data masking policy · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I enable dynamic data masking on a SQL database?”
“Can I change which logins see unmasked data?”
Tell an agent
Set data masking policy {dataMaskingPolicyName} on database {databaseName} of server {serverName} to {properties}.
Enable data masking on database {databaseName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName} Get a SQL database data masking policy · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Is dynamic data masking turned on for my SQL database?”
“Which users are exempt from data masking on a database?”
Tell an agent
Get data masking policy {dataMaskingPolicyName} for database {databaseName} on server {serverName}.
Show the masking policy on database {databaseName}.

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-datamaskingpolicies-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-datamaskingpolicies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure SQL Database Datamasking Policies and…
  description: Provides create, read, update and delete functionality for Azure SQL Database datamasking policies and rules.
  version: '2014-04-01'
servers:
- url: https://management.azure.com
tags:
- name: DataMaskingPolicies
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}
  : put:
      tags:
      - DataMaskingPolicies
      operationId: microsoftAzureDatamaskingpoliciesCreateorupdate
      description: Creates or updates a database data masking policy
      x-ms-examples:
        Create or update data masking policy max:
          $ref: ./examples/DataMaskingPolicyCreateOrUpdateMax.json
        Create or update data masking policy min:
          $ref: ./examples/DataMaskingPolicyCreateOrUpdateMin.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - $ref: '#/components/parameters/DatabaseNameParameter'
      - $ref: '#/components/parameters/DataMaskingPolicyNameParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataMaskingPolicy'
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DataMaskingPolicy'
        description: Parameters for creating or updating a data masking policy.
        required: true
    get:
      tags:
      - DataMaskingPolicies
      operationId: microsoftAzureDatamaskingpoliciesGet
      description: Gets a database data masking policy.
      x-ms-examples:
        Get data masking policy:
          $ref: ./examples/DataMaskingPolicyGet.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - $ref: '#/components/parameters/DatabaseNameParameter'
      - $ref: '#/components/parameters/DataMaskingPolicyNameParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataMaskingPolicy'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    DataMaskingPolicyProperties:
      properties:
        dataMaskingState:
          type: string
          description: The state of the data masking policy.
          enum:
          - Disabled
          - Enabled
          x-ms-enum:
            modelAsString: false
            name: DataMaskingState
        exemptPrincipals:
          type: string
          description: The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.
        applicationPrincipals:
          type: string
          description: The list of the application principals. This is a legacy parameter and is no longer used.
          readOnly: true
        maskingLevel:
          type: string
          description: The masking level. This is a legacy parameter and is no longer used.
          readOnly: true
      required:
      - dataMaskingState
      description: The properties of a database data masking policy.
    DataMaskingPolicy:
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/DataMaskingPolicyProperties'
          description: The properties of the data masking policy.
        location:
          type: string
          readOnly: true
          description: The location of the data masking policy.
        kind:
          type: string
          readOnly: true
          description: The kind of data masking policy. Metadata, used for Azure portal.
      allOf:
      - $ref: ../../../common/v1/types.json#/definitions/ProxyResource
      description: Represents a database data masking policy.
  parameters:
    ServerNameParameter:
      name: serverName
      in: path
      required: true
      description: The name of the server.
      x-ms-parameter-location: method
      schema:
        type: string
    DatabaseNameParameter:
      name: databaseName
      in: path
      required: true
      description: The name of the database.
      x-ms-parameter-location: method
      schema:
        type: string
    DataMaskingPolicyNameParameter:
      name: dataMaskingPolicyName
      in: path
      required: true
      x-ms-enum:
        modelAsString: false
        name: DataMaskingPolicyName
      description: The name of the database for which the data masking rule applies.
      x-ms-parameter-location: method
      schema:
        type: string
        enum:
        - Default
  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-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/dataMasking.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)