Microsoft Azure

Azure Resource Manager: Policy Definition Versions

To manage and control access to your resources, you can define customized policies and assign them at a scope.

Developer tools#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

To manage and control access to your resources, you can define customized policies and assign them at a scope.

Endpoints 13

PolicyDefinitionVersions

  • POSTLists all built-in policy definition versions./providers/Microsoft.Authorization/listPolicyDefinitionVersionsThis operation lists all the built-in policy definition versions for all built-in policy definitions.
  • POSTLists all policy definition versions at management group scope./providers/Microsoft.Management/managementGroups/:managementGroupName/providers/Microsoft.Authorization/listPolicyDefinitionVersionsThis operation lists all the policy definition versions for all policy definitions at the management group scope.
  • POSTLists all policy definition versions within a subscription./subscriptions/:subscriptionId/providers/Microsoft.Authorization/listPolicyDefinitionVersionsThis operation lists all the policy definition versions for all policy definitions within a subscription.
  • GETRetrieves a policy definition version in a subscription./subscriptions/:subscriptionId/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation retrieves the policy definition version in the given subscription with the given name.
  • PUTCreates or updates a policy definition in a subscription./subscriptions/:subscriptionId/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation creates or updates a policy definition in the given subscription with the given name.
  • DELETEDeletes a policy definition version in a subscription./subscriptions/:subscriptionId/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation deletes the policy definition version in the given subscription with the given name.
  • GETRetrieves a built-in policy definition version./providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation retrieves the built-in policy definition version with the given name.
  • GETRetrieve a policy definition version in a management group./providers/Microsoft.Management/managementGroups/:managementGroupName/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation retrieves the policy definition version in the given management group with the given name.
  • PUTCreates or updates a policy definition version in a management group./providers/Microsoft.Management/managementGroups/:managementGroupName/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation creates or updates a policy definition version in the given management group with the given name.
  • DELETEDeletes a policy definition in a management group./providers/Microsoft.Management/managementGroups/:managementGroupName/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions/:policyDefinitionVersionThis operation deletes the policy definition in the given management group with the given name.
  • GETRetrieves policy definition versions for a given policy definition in a subscription/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions?$top=1This operation retrieves a list of all the policy definition versions for the given policy definition.
  • GETRetrieve built-in policy definition versions/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions?$top=1This operation retrieves a list of all the built-in policy definition versions for the given policy definition.
  • GETRetrieve policy definition versions in a management group policy definition./providers/Microsoft.Management/managementGroups/:managementGroupName/providers/Microsoft.Authorization/policyDefinitions/:policyDefinitionName/versions?$top=1This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
13 operations on 9 pathsGET 6POST 3PUT 2DELETE 2
Main resources
PolicyDefinitionVersions 13
Response formats
application/json
Description format
Swagger 2.0, API version 2025-01-01

How to test the Azure Resource Manager: Policy Definition Versions in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Resource Manager: Policy Definition Versions collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Lists all built-in policy definition versions.” (POST /providers/Microsoft.Authorization/listPolicyDefinitionVersions), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Resource Manager: Policy Definition Versions?

To manage and control access to your resources, you can define customized policies and assign them at a scope. It is listed under Developer tools and has 13 endpoints.

Who publishes the Azure Resource Manager: Policy Definition Versions?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Resource Manager: Policy Definition Versions?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Resource Manager: Policy Definition Versions?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure Resource Manager: Policy Definition Versions have?

13 operations on 9 paths (6 GET, 3 POST, 2 PUT, 2 DELETE). The largest groups are PolicyDefinitionVersions.

Is forking the Azure Resource Manager: Policy Definition Versions free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.