Azure Resource Manager: Policy
To manage and control access to your resources, you can define customized policies and assign them at a scope.
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
PolicyAssignments
- GETPolicyAssignments_Get
/:scope/providers/Microsoft.Authorization/policyassignments/:policyAssignmentName?api-version=stringGets a policy assignment. - PUTCreates a policy assignment.
/:scope/providers/Microsoft.Authorization/policyassignments/:policyAssignmentName?api-version=stringPolicy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the… - DELETEPolicyAssignments_Delete
/:scope/providers/Microsoft.Authorization/policyassignments/:policyAssignmentName?api-version=stringDeletes a policy assignment. - GETPolicyAssignments_ListForResourceGroup
/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Authorization/policyAssignments?$filter=string&api-version=stringGets policy assignments for the resource group. - GETPolicyAssignments_ListForResource
/subscriptions/:subscriptionId/resourcegroups/:resourceGroupName/providers/:resourceProviderNamespace/:parentResourcePath/:resourceType/:resourceName/providers/Microsoft.Authorization/policyassignments?$filter=string&api-version=stringGets policy assignments for a resource. - GETPolicyAssignments_List
/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policyassignments?$filter=string&api-version=stringGets all the policy assignments for a subscription. - GETGets a policy assignment by ID.
/:policyAssignmentId?api-version=stringWhen providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions,… - PUTCreates a policy assignment by ID.
/:policyAssignmentId?api-version=stringPolicy assignments are inherited by child resources. For example, when you apply a policy to a resource group that policy is assigned to all resources in the… - DELETEDeletes a policy assignment by ID.
/:policyAssignmentId?api-version=stringWhen providing a scope for the assignment, use '/subscriptions/{subscription-id}/' for subscriptions,…
PolicyDefinitions
- GETPolicyDefinitions_Get
/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policydefinitions/:policyDefinitionName?api-version=stringGets the policy definition. - PUTPolicyDefinitions_CreateOrUpdate
/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policydefinitions/:policyDefinitionName?api-version=stringCreates or updates a policy definition. - DELETEPolicyDefinitions_Delete
/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policydefinitions/:policyDefinitionName?api-version=stringDeletes a policy definition. - GETPolicyDefinitions_List
/subscriptions/:subscriptionId/providers/Microsoft.Authorization/policydefinitions?$filter=string&api-version=stringGets all the policy definitions for a subscription.
API details
- Base URL
https://management.azure.com- Authentication
- OAuth 2.0 (implicit flow) with 1 scope
- Operations
- 13 operations on 7 pathsGET 7PUT 3DELETE 3
- Main resources
- PolicyAssignments 9PolicyDefinitions 4
- Response formats
application/jsontext/json- Description format
- Swagger 2.0, API version
2016-04-01 - Links
- OpenAPI document
How to test the Azure Resource Manager: Policy in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Resource Manager: Policy collection, without the publisher's secrets.
- 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.
- Send a requestPick an endpoint, for example “PolicyAssignments_Get” (GET /:scope/providers/Microsoft.Authorization/policyassignments/:policyAssignmentName?api-version=string), 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?
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?
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?
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?
With OAuth 2.0 (implicit flow) with 1 scope.
How many endpoints does the Azure Resource Manager: Policy have?
13 operations on 7 paths (7 GET, 3 PUT, 3 DELETE). The largest groups are PolicyAssignments, PolicyDefinitions.
Is forking the Azure Resource Manager: Policy free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.