Microsoft Azure Metadata Roles API

The Metadata Roles API from Microsoft Azure, for metadata roles.

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 /metadataRoles List Purview metadata roles · Microsoft Azure Get Metadataroles #
Ask an LLM
“What metadata roles exist in my Purview account?”
“Which roles can I assign for Purview data map access?”
Tell an agent
List the metadata roles for this Purview account.
Show all Purview metadata policy roles using API version {apiVersion}.

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-roles-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-roles-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 Roles
paths:
  /metadataRoles:
    get:
      tags:
      - Metadata Roles
      description: Lists roles for Purview Account
      operationId: microsoftAzureMetadatarolesList
      parameters:
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataRoleList'
        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:
        MetadataRoles_List:
          $ref: ./examples/MetadataRoles_List.json
      summary: Microsoft Azure Get Metadataroles
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'
    MetadataRoleProperties:
      type: object
      properties:
        provisioningState:
          description: The provisioningState of role
          type: string
        roleType:
          description: The type of role
          type: string
        friendlyName:
          description: The friendly name of role
          type: string
        description:
          description: The description of role
          type: string
        cnfCondition:
          $ref: '#/components/schemas/CnfCondition'
        dnfCondition:
          $ref: '#/components/schemas/DnfCondition'
        version:
          format: int64
          description: The version of role
          type: integer
    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'
    MetadataRole:
      type: object
      properties:
        id:
          description: The Id of role
          type: string
        name:
          description: The name of role
          type: string
        type:
          description: The type of role
          type: string
        properties:
          $ref: '#/components/schemas/MetadataRoleProperties'
    CnfCondition:
      description: The cnf Condition for a rule
      type: array
      items:
        type: array
        items:
          $ref: '#/components/schemas/AttributeMatcher'
    DnfCondition:
      description: The dnf Condition for a rule
      type: array
      items:
        type: array
        items:
          $ref: '#/components/schemas/AttributeMatcher'
    MetadataRoleList:
      description: List of Metadata roles
      required:
      - values
      type: object
      properties:
        values:
          type: array
          items:
            $ref: '#/components/schemas/MetadataRole'
        nextLink:
          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'