Microsoft Azure Devops Policy API

The DevopsPolicy API from Microsoft Azure, for devopspolicy.

GitHub OpenAPI

Operations 7

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 /devops-policies List all DevOps policies · Microsoft Azure Get Devops Policies #
Ask an LLM
“What DevOps policies are defined in Microsoft Purview?”
“Can I see every DevOps data policy in one list?”
Tell an agent
List all DevOps policies.
Show every Purview DevOps policy that exists.
PUT /devops-policies/{purviewResourceName}/sql-security-auditor-roles Create or replace the SQL Security Auditor policy · Microsoft Azure Put Devops Policies Purviewresourcename Sql Security Auditor… #
Ask an LLM
“Can I grant the SQL Security Auditor role through a DevOps policy?”
“How do I replace the decision rules on a SQL security auditor policy safely with an ETag?”
Tell an agent
Create the SQL Security Auditor DevOps policy on {resource} with decision rules {rules}.
Replace the security auditor policy for {resource} with rules {rules}, only if ETag matches {etag}.
DELETE /devops-policies/{purviewResourceName}/sql-security-auditor-roles Delete the SQL Security Auditor DevOps policy · Microsoft Azure Delete Devops Policies Purviewresourcename Sql Security Auditor… #
Ask an LLM
“Can I revoke the SQL Security Auditor DevOps policy on a data source?”
“Does deleting a security auditor policy require the current ETag?”
Tell an agent destructive · confirm first
Delete the SQL Security Auditor DevOps policy on {resource} with ETag {etag}.
Remove the security auditor role policy from {resource}, matching ETag {etag}.
GET /devops-policies/{purviewResourceName}/sql-security-auditor-roles Get the SQL Security Auditor DevOps policy · Microsoft Azure Get Devops Policies Purviewresourcename Sql Security Auditor… #
Ask an LLM
“Who is granted the SQL Security Auditor role by a Purview DevOps policy?”
“How do I read the SQL security auditor policy for a data source?”
Tell an agent
Get the SQL Security Auditor DevOps policy for {resource}.
Show the security auditor role decision rules on {resource}.
DELETE /devops-policies/{purviewResourceName}/sql-perf-monitor-roles Delete the SQL Performance Monitor DevOps policy · Microsoft Azure Delete Devops Policies Purviewresourcename Sql Perf Monitor… #
Ask an LLM
“Can I revoke the SQL Performance Monitor DevOps policy on a data source?”
“Does removing a perf monitor policy need the current ETag?”
Tell an agent destructive · confirm first
Delete the SQL Performance Monitor DevOps policy on {resource} with ETag {etag}.
Remove the perf monitor role policy from {resource}, matching ETag {etag}.
PUT /devops-policies/{purviewResourceName}/sql-perf-monitor-roles Create or replace the SQL Performance Monitor policy · Microsoft Azure Put Devops Policies Purviewresourcename Sql Perf Monitor Roles #
Ask an LLM
“Can I grant SQL performance monitoring access through a DevOps policy?”
“How do I overwrite a SQL perf monitor policy's decision rules with an ETag check?”
Tell an agent
Create the SQL Performance Monitor DevOps policy on {resource} with decision rules {rules}.
Replace the perf monitor policy for {resource} with rules {rules}, only if ETag matches {etag}.
GET /devops-policies/{purviewResourceName}/sql-perf-monitor-roles Get the SQL Performance Monitor DevOps policy · Microsoft Azure Get Devops Policies Purviewresourcename Sql Perf Monitor Roles #
Ask an LLM
“Who can monitor SQL performance under a Purview DevOps policy?”
“How do I read the SQL performance monitor policy for a data source?”
Tell an agent
Get the SQL Performance Monitor DevOps policy for {resource}.
Show the perf monitor role decision rules on {resource}.

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-devopspolicy-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-devopspolicy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Purview devops policies REST API Document…
  version: 2022-11-01-preview
servers:
- url: /policyStore
security:
- azure_auth:
  - user_impersonation
tags:
- name: DevopsPolicy
paths:
  /devops-policies:
    get:
      tags:
      - DevopsPolicy
      description: List all devops policies.
      operationId: microsoftAzureDevopspolicyList
      parameters:
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicyList'
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: value
      x-ms-examples:
        DevopsPolicy_List:
          $ref: ./examples/DevopsPolicy_List.json
      summary: Microsoft Azure Get Devops Policies
  /devops-policies/{purviewResourceName}/sql-security-auditor-roles:
    put:
      tags:
      - DevopsPolicy
      description: Create/replace sql security auditor devops policy
      operationId: microsoftAzureDevopssqlsecurityauditorpolicyCreateorreplace
      parameters:
      - in: path
        name: purviewResourceName
        description: Name of resource as registered on the Azure purview portal
        required: true
        schema:
          type: string
      - in: header
        name: If-Match
        description: Http Etag value of a policy to be updated. Required only during the replace operation
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          headers:
            ETag:
              description: An HTTP entity tag associated with the policy entity
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicy'
        '201':
          description: Created
          headers:
            ETag:
              description: An HTTP entity tag associated with the policy entity
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicy'
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        DevopsSqlSecurityAuditorPolicy_CreateOrReplace:
          $ref: ./examples/DevopsSqlSecurityAuditorPolicy_CreateOrReplace.json
      summary: Microsoft Azure Put Devops Policies Purviewresourcename Sql Security Auditor…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DevopsPolicy'
        description: Devops policy object to create or update..
        required: true
    delete:
      tags:
      - DevopsPolicy
      description: Deletes a devops sql security auditor policy
      operationId: microsoftAzureDevopssqlsecurityauditorpolicyDelete
      parameters:
      - in: path
        name: purviewResourceName
        description: Name of resource as registered on the Azure purview portal
        required: true
        schema:
          type: string
      - in: header
        name: If-Match
        description: Http Etag value of a policy to be deleted.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '204':
          description: No Content
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        DevopsSqlSecurityAuditorPolicy_Delete:
          $ref: ./examples/DevopsSqlSecurityAuditorPolicy_Delete.json
      summary: Microsoft Azure Delete Devops Policies Purviewresourcename Sql Security Auditor…
    get:
      tags:
      - DevopsPolicy
      description: Get devops sql security auditor policy
      operationId: microsoftAzureDevopssqlsecurityauditorpolicyGet
      parameters:
      - in: path
        name: purviewResourceName
        description: Name of resource as registered on the Azure purview portal
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          headers:
            ETag:
              description: An HTTP entity tag associated with the policy entity
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicy'
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        DevopsSqlSecurityAuditorPolicy_Get:
          $ref: ./examples/DevopsSqlSecurityAuditorPolicy_Get.json
      summary: Microsoft Azure Get Devops Policies Purviewresourcename Sql Security Auditor…
  /devops-policies/{purviewResourceName}/sql-perf-monitor-roles:
    delete:
      tags:
      - DevopsPolicy
      description: Deletes a devops sql perf monitor policy
      operationId: microsoftAzureDevopssqlperfmonitorpolicyDelete
      parameters:
      - in: path
        name: purviewResourceName
        description: Name of resource as registered on the Azure purview portal
        required: true
        schema:
          type: string
      - in: header
        name: If-Match
        description: Http Etag value of a policy to be deleted.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '204':
          description: No Content
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        DevopsSqlPerfMonitorPolicy_Delete:
          $ref: ./examples/DevopsSqlPerfMonitorPolicy_Delete.json
      summary: Microsoft Azure Delete Devops Policies Purviewresourcename Sql Perf Monitor…
    put:
      tags:
      - DevopsPolicy
      description: Create/replace devops sql perf monitor policy
      operationId: microsoftAzureDevopssqlperfmonitorpolicyCreateorreplace
      parameters:
      - in: path
        name: purviewResourceName
        description: Name of resource as registered on the Azure purview portal
        required: true
        schema:
          type: string
      - in: header
        name: If-Match
        description: Etag value of a policy to be updated. Required only during the replace operation
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          headers:
            ETag:
              description: An HTTP entity tag associated with the policy entity
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicy'
        '201':
          description: Created
          headers:
            ETag:
              description: An HTTP entity tag associated with the policy entity
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicy'
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        DevopsSqlPerfMonitorPolicy_CreateOrReplace:
          $ref: ./examples/DevopsSqlPerfMonitorPolicy_CreateOrReplace.json
      summary: Microsoft Azure Put Devops Policies Purviewresourcename Sql Perf Monitor Roles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DevopsPolicy'
        description: Devops policy object to create or update..
        required: true
    get:
      tags:
      - DevopsPolicy
      description: Get devops sql perf monitor policy
      operationId: microsoftAzureDevopssqlperfmonitorpolicyGet
      parameters:
      - in: path
        name: purviewResourceName
        description: Name of resource as registered on the Azure purview portal
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          headers:
            ETag:
              description: An HTTP entity tag associated with the policy entity
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DevopsPolicy'
        default:
          description: An error response received from the Policy Service
          headers:
            x-ms-error-code:
              description: The error code
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-examples:
        DevopsSqlPerfMonitorPolicy_Get:
          $ref: ./examples/DevopsSqlPerfMonitorPolicy_Get.json
      summary: Microsoft Azure Get Devops Policies Purviewresourcename Sql Perf Monitor Roles
components:
  schemas:
    ErrorModel:
      description: The error model for policy
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: The error code
          minLength: 1
          type: string
        message:
          description: The error message
          minLength: 1
          type: string
        details:
          description: The error details
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    DevopsPolicyDecisionRule:
      type: object
      required:
      - effect
      - principals
      - principalGroups
      properties:
        effect:
          description: The effect for rule
          enum:
          - Permit
          type: string
          x-ms-enum:
            name: Decision
            modelAsString: true
        purviewRoleName:
          type: string
          description: This is field will indicate the role of a devops policy.
        principals:
          type: array
          description: Azure Active Directory Ids for users
          items:
            type: string
            description: Azure Active Directory Id
        principalGroups:
          type: array
          description: Azure Active Directory Ids for groups
          items:
            type: string
            description: Azure Active Directory Id
        resourceAzurePath:
          type: string
          description: Optional resource path of the azure resource
    ErrorResponseModel:
      description: The error response model for policy
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
    DevopsPolicyList:
      required:
      - value
      type: object
      properties:
        value:
          type: array
          description: List of policies
          items:
            $ref: '#/components/schemas/DevopsPolicy'
        nextLink:
          type: string
          description: Pagination link
    DevopsPolicy:
      required:
      - decisionRules
      - purviewResourceName
      type: object
      properties:
        systemData:
          $ref: '#/components/schemas/SystemData'
        decisionRules:
          type: array
          description: Array of decisionRules for the policy
          items:
            $ref: '#/components/schemas/DevopsPolicyDecisionRule'
        purviewResourceName:
          type: string
          description: Purview resource name
    SystemData:
      type: object
      readOnly: true
      properties:
        createdBy:
          type: string
          description: Created by
        createdByType:
          type: string
          description: Created by type
        createdAt:
          format: date-time
          type: string
          description: Created at
        lastModifiedBy:
          type: string
          description: last modified by
        lastModifiedByType:
          type: string
          description: last modified by type
        lastModifiedAt:
          format: date-time
          type: string
          description: last modified at
  parameters:
    api-version:
      in: query
      name: api-version
      description: The api version to use.
      required: true
      x-ms-client-name: ApiVersion
      x-ms-parameter-location: method
      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'