Microsoft Azure Policy Elements API

The PolicyElements API from Microsoft Azure, for policyelements.

GitHub OpenAPI

Operations 1

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 /policy-elements List policy elements for a Purview scope · Microsoft Azure Get Policy Elements #
Ask an LLM
“Which policies apply to a resource managed by Purview?”
“Can I filter Purview policy elements with an OData expression?”
Tell an agent
List policy elements for scope {scope}.
Show policies for scope {scope} filtered by {filter}.

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-policyelements-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-policyelements-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Purview Distribution Service REST API…
  description: Purview distribution service enables various Azure RPs to fetch the policies and attributes for data governance.
  version: '2023-01-01'
servers:
- url: /pds
security:
- azure_auth:
  - user_impersonation
tags:
- name: PolicyElements
paths:
  /policy-elements:
    get:
      tags:
      - PolicyElements
      description: Get policies for given scope.
      operationId: microsoftAzurePolicyelementsList
      parameters:
      - in: query
        name: scope
        description: Id for any resource managed by Purview.
        required: true
        schema:
          type: string
      - in: query
        name: filter
        description: Filter supporting full OData syntax.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponseUpdated'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseModel'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        PolicyElements_List:
          $ref: ./examples/PolicyElements_List.json
      summary: Microsoft Azure Get Policy Elements
components:
  schemas:
    ErrorModel:
      description: Default error model.
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Error code.
          minLength: 1
          type: string
        message:
          description: Error message.
          minLength: 1
          type: string
        target:
          description: Error description.
          type: string
        details:
          description: Error details.
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    ErrorResponseModel:
      description: Default error response model.
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
    PolicyResponseUpdated:
      description: Response model for policy bulk fetch API.
      type: object
      properties:
        syncToken:
          description: This sync token represents the latest checkpoint for policies. Client need to pass this value while fetching subsequent delta changes using policy-events API.
          type: string
        nextLink:
          description: Link to fetch next set of policy elements.
          type: string
        value:
          description: List of policy elements.
          type: array
          items:
            $ref: '#/components/schemas/PolicyElementUpdated'
    PolicyElementKind:
      description: Represents the kind of policy element.
      enum:
      - Policy
      - PolicySet
      - AttributeRule
      type: string
      x-ms-enum:
        name: PolicyElementKind
        modelAsString: true
    PolicyElementUpdated:
      description: Represents a policy, policy set or attribute rule.
      required:
      - id
      - kind
      - updatedAt
      - version
      type: object
      properties:
        id:
          description: Id of the policy element.
          minLength: 1
          type: string
        scopes:
          description: List of scopes included in this policy.
          type: array
          items:
            type: string
        version:
          format: int64
          description: Current version of policy element. This is auto incremented with each change. Starts with 1.
          type: integer
        elementJson:
          description: Policy element serialized json payload.
          type: string
        kind:
          $ref: '#/components/schemas/PolicyElementKind'
        updatedAt:
          format: date-time
          description: Time at which this policy element was last updated.
          type: string
  parameters:
    api-version:
      in: query
      name: api-version
      description: The api-version of the service.
      required: true
      x-ms-parameter-location: client
      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'