Microsoft Azure Metadata Policy API

The Metadata Policy API from Microsoft Azure, for metadata policy.

GitHub OpenAPI

Operations 3

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 /metadataPolicies List metadata policies · Microsoft Azure Get Metadatapolicies #
Ask an LLM
“Which metadata policies are defined in my data catalog account?”
“Can I get only the metadata policy for one collection?”
Tell an agent
List all metadata policies.
Show the metadata policy for collection {collection}.
PUT /metadataPolicies/{policyId} Update a metadata policy · Microsoft Azure Put Metadatapolicies Policyid #
Ask an LLM
“How do I change who has access in a metadata policy?”
“Does updating a metadata policy need its current version?”
Tell an agent
Update metadata policy {policy} with properties {props}.
Replace metadata policy {policy} at version {version} with {props}.
GET /metadataPolicies/{policyId} Get a metadata policy by id · Microsoft Azure Get Metadatapolicies Policyid #
Ask an LLM
“What does a specific metadata policy contain?”
“Can I fetch a metadata policy by its policy id?”
Tell an agent
Get metadata policy {policy}.
Show the full contents of metadata policy {policy}.

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-metadata-policy-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-metadata-policy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Purview Metadata Policies Service REST API…
  version: 2021-07-01-preview
servers:
- url: /policyStore
security:
- azure_auth:
  - user_impersonation
tags:
- name: Metadata Policy
paths:
  /metadataPolicies:
    get:
      tags:
      - Metadata Policy
      description: List or Get metadata policies
      operationId: microsoftAzureMetadatapolicyListall
      parameters:
      - in: query
        name: collectionName
        description: The name of an existing collection for which one policy needs to be fetched.
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataPolicyList'
        default:
          description: An error response received from the Metadata 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: values
      x-ms-examples:
        MetadataPolicy_ListAll:
          $ref: ./examples/MetadataPolicy_ListAll.json
      summary: Microsoft Azure Get Metadatapolicies
  /metadataPolicies/{policyId}:
    put:
      tags:
      - Metadata Policy
      description: Updates a metadata policy
      operationId: microsoftAzureMetadatapolicyUpdate
      parameters:
      - in: path
        name: policyId
        description: Unique policy id.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataPolicy'
        default:
          description: An error response received from the Metadata 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:
        MetadataPolicy_Update:
          $ref: ./examples/MetadataPolicy_Update.json
      summary: Microsoft Azure Put Metadatapolicies Policyid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetadataPolicy'
        description: Policy to be updated.
    get:
      tags:
      - Metadata Policy
      description: Gets a metadata policy
      operationId: microsoftAzureMetadatapolicyGet
      parameters:
      - in: path
        name: policyId
        description: Id of an existing policy that needs to be fetched.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataPolicy'
        default:
          description: An error response received from the Metadata 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:
        MetadataPolicy_Get:
          $ref: ./examples/MetadataPolicy_Get.json
      summary: Microsoft Azure Get Metadatapolicies Policyid
components:
  schemas:
    ErrorModel:
      description: The error model for metadata policy
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: The error code
          type: string
        message:
          description: The error message
          type: string
        target:
          description: The error target
          type: string
        details:
          description: The error details
          type: array
          items:
            $ref: '#/components/schemas/ErrorModel'
    MetadataPolicy:
      type: object
      properties:
        name:
          description: The name of policy
          type: string
        id:
          description: The id of policy
          type: string
        version:
          format: int32
          description: The version of policy
          type: integer
        properties:
          $ref: '#/components/schemas/MetadataPolicyProperties'
    AttributeMatcher:
      description: Attribute matcher for a rule
      type: object
      properties:
        attributeName:
          description: AttributeName
          type: string
        attributeValueIncludes:
          description: Value for attribute
          type: string
        attributeValueIncludedIn:
          description: List of values for attribute
          type: array
          items:
            type: string
        attributeValueExcludes:
          description: Value excluded for attribute
          type: string
        attributeValueExcludedIn:
          description: List of values excluded for attribute
          type: array
          items:
            type: string
    ErrorResponseModel:
      description: The error response model for metadata policy
      required:
      - error
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ErrorModel'
    MetadataPolicyList:
      description: List of Metadata Policies
      required:
      - values
      type: object
      properties:
        values:
          type: array
          items:
            $ref: '#/components/schemas/MetadataPolicy'
        nextLink:
          type: string
    AttributeRule:
      description: The attribute rule for a policy
      type: object
      properties:
        kind:
          description: The kind of rule
          enum:
          - attributerule
          type: string
          readOnly: true
          x-ms-enum:
            name: Kind
            modelAsString: true
        id:
          description: The id for rule
          type: string
        name:
          description: The name for rule
          type: string
        dnfCondition:
          $ref: '#/components/schemas/DnfCondition'
    DnfCondition:
      description: The dnf Condition for a rule
      type: array
      items:
        type: array
        items:
          $ref: '#/components/schemas/AttributeMatcher'
    MetadataPolicyProperties:
      type: object
      properties:
        description:
          description: The description of policy
          type: string
        decisionRules:
          description: The DecisionRules of policy
          type: array
          items:
            $ref: '#/components/schemas/DecisionRule'
        attributeRules:
          description: The AttributeRules of policy
          type: array
          items:
            $ref: '#/components/schemas/AttributeRule'
        collection:
          $ref: '#/components/schemas/CollectionReference'
        parentCollectionName:
          description: The parent collection of the policy
          type: string
    DecisionRule:
      description: The decision rule for a policy
      type: object
      properties:
        kind:
          description: The kind of rule
          enum:
          - decisionrule
          type: string
          readOnly: true
          x-ms-enum:
            name: Kind
            modelAsString: true
        effect:
          description: The effect for rule
          enum:
          - Deny
          - Permit
          type: string
          x-ms-enum:
            name: Decision
            modelAsString: true
        dnfCondition:
          $ref: '#/components/schemas/DnfCondition'
    CollectionReference:
      description: The collection reference for a policy
      type: object
      properties:
        type:
          description: The type of reference
          default: CollectionReference
          type: string
        referenceName:
          description: The name of reference
          type: string
  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'