azure.com

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

🔑 oauth2 13 endpoints cloud
📄 Docs 📋 OpenAPI spec 🔬 Try in Swagger UI

SDKs by language (9 total)

azure-sdk-for-python ✓ Official
pip install azure-sdk-for-python
azure-sdk-for-js ✓ Official
npm install azure-sdk-for-js
azure-sdk-for-node ✓ Official
npm install azure-sdk-for-node
azure-sdk-for-go ✓ Official
go get github.com/Azure/azure-sdk-for-go
azure-sdk-for-java ✓ Official
# Maven: see https://github.com/Azure/azure-sdk-for-java
dotnet add package cognitive-services-speech-sdk
azure-sdk-for-net ✓ Official
dotnet add package azure-sdk-for-net
# See https://github.com/microsoft/Azure-Kinect-Sensor-SDK
# See https://github.com/Azure/MachineLearningNotebooks
curl examples
Gets a policy assignment by ID.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /{policyAssignmentId}
Gets all the policy assignments for a subscription.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments
Gets all the policy definitions for a subscription.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions
Endpoints (13 total)
GET
/{policyAssignmentId}
Gets a policy assignment by ID.
GET
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments
Gets all the policy assignments for a subscription.
GET
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions
Gets all the policy definitions for a subscription.
GET
/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
Gets a policy assignment.
GET
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
Gets the policy definition.
GET
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments
Gets policy assignments for the resource group.
GET
/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments
Gets policy assignments for a resource.
PUT
/{policyAssignmentId}
Creates a policy assignment by ID.
PUT
/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
Creates a policy assignment.
PUT
/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}
Creates or updates a policy definition.
DELETE
/{policyAssignmentId}
Deletes a policy assignment by ID.
DELETE
/{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}
Deletes a policy assignment.
At a glance
Total SDKs9
Languages8
Endpoints13
Authoauth2
Categories1