Microsoft.Authorization (stable:2025-03-01)

2025/02/25 • 59 new methods

PolicyAssignments_Delete (new)
Description This operation deletes a policy assignment, given its name and the scope it was created in. The scope of a policy assignment is the part of its ID preceding '/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'.
Reference Link ¶

⚼ Request

DELETE:  /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_Create (new)
Description This operation creates or updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.
Reference Link ¶

⚼ Request

PUT:  /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
parameters:
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_Get (new)
Description This operation retrieves a single policy assignment, given its name and the scope it was created at.
Reference Link ¶

⚼ Request

GET:  /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_Update (new)
Description This operation updates a policy assignment with the given scope and name. Policy assignments apply to all resources contained within their scope. For example, when you assign a policy at resource group scope, that policy applies to all resources in the group.
Reference Link ¶

⚼ Request

PATCH:  /{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}
{
scope: string ,
policyAssignmentName: string ,
parameters:
{
properties:
{
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
}
,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_ListForResourceGroup (new)
Description This operation retrieves the list of all policy assignments associated with the given resource group in the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource group, including those that apply directly or apply from containing scopes, as well as any applied to resources contained within the resource group. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource group, which is everything in the unfiltered list except those applied to resources contained within the resource group. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments
{
subscriptionId: string ,
resourceGroupName: string ,
$filter: string ,
$expand: string ,
$top: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_ListForResource (new)
Description This operation retrieves the list of all policy assignments associated with the specified resource in the given resource group and subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the resource, including those that apply directly or from all containing scopes, as well as any applied to resources contained within the resource. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the resource, which is everything in the unfiltered list except those applied to resources contained within the resource. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the resource level. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the resource. Three parameters plus the resource name are used to identify a specific resource. If the resource is not part of a parent resource (the more common case), the parent resource path should not be provided (or provided as ''). For example a web app could be specified as ({resourceProviderNamespace} == 'Microsoft.Web', {parentResourcePath} == '', {resourceType} == 'sites', {resourceName} == 'MyWebApp'). If the resource is part of a parent resource, then all parameters should be provided. For example a virtual machine DNS name could be specified as ({resourceProviderNamespace} == 'Microsoft.Compute', {parentResourcePath} == 'virtualMachines/MyVirtualMachine', {resourceType} == 'domainNames', {resourceName} == 'MyComputerName'). A convenient alternative to providing the namespace and type name separately is to provide both in the {resourceType} parameter, format: ({resourceProviderNamespace} == '', {parentResourcePath} == '', {resourceType} == 'Microsoft.Web/sites', {resourceName} == 'MyWebApp').
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyAssignments
{
subscriptionId: string ,
resourceGroupName: string ,
resourceProviderNamespace: string ,
parentResourcePath: string ,
resourceType: string ,
resourceName: string ,
$filter: string ,
$expand: string ,
$top: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_ListForManagementGroup (new)
Description This operation retrieves the list of all policy assignments applicable to the management group that match the given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter=atScope() is provided, the returned list includes all policy assignments that are assigned to the management group or the management group's ancestors. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the management group. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value} that apply to the management group.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyAssignments
{
managementGroupId: string ,
$filter: string ,
$expand: string ,
$top: integer ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_List (new)
Description This operation retrieves the list of all policy assignments associated with the given subscription that match the optional given $filter. Valid values for $filter are: 'atScope()', 'atExactScope()' or 'policyDefinitionId eq '{value}''. If $filter is not provided, the unfiltered list includes all policy assignments associated with the subscription, including those that apply directly or from management groups that contain the given subscription, as well as any applied to objects contained within the subscription. If $filter=atScope() is provided, the returned list includes all policy assignments that apply to the subscription, which is everything in the unfiltered list except those applied to objects contained within the subscription. If $filter=atExactScope() is provided, the returned list only includes all policy assignments that at the subscription. If $filter=policyDefinitionId eq '{value}' is provided, the returned list includes all policy assignments of the policy definition whose id is {value}.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments
{
$filter: string ,
$expand: string ,
$top: integer ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_DeleteById (new)
Description This operation deletes the policy with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid formats for {scope} are: '/providers/Microsoft.Management/managementGroups/{managementGroup}' (management group), '/subscriptions/{subscriptionId}' (subscription), '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' (resource group), or '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}' (resource).
Reference Link ¶

⚼ Request

DELETE:  /{policyAssignmentId}
{
policyAssignmentId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_CreateById (new)
Description This operation creates or updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
Reference Link ¶

⚼ Request

PUT:  /{policyAssignmentId}
{
policyAssignmentId: string ,
parameters:
{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_GetById (new)
Description The operation retrieves the policy assignment with the given ID. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
Reference Link ¶

⚼ Request

GET:  /{policyAssignmentId}
{
policyAssignmentId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyAssignments_UpdateById (new)
Description This operation updates the policy assignment with the given ID. Policy assignments made on a scope apply to all resources contained in that scope. For example, when you assign a policy to a resource group that policy applies to all resources in the group. Policy assignment IDs have this format: '{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}'. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', or resource (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/[{parentResourcePath}/]{resourceType}/{resourceName}'.
Reference Link ¶

⚼ Request

PATCH:  /{policyAssignmentId}
{
policyAssignmentId: string ,
parameters:
{
properties:
{
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
}
,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
displayName: string ,
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
scope: string ,
notScopes:
[
string ,
]
,
parameters: object ,
description: string ,
metadata: object ,
enforcementMode: enum ,
nonComplianceMessages:
[
{
message: string ,
policyDefinitionReferenceId: string ,
}
,
]
,
resourceSelectors:
[
{
name: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
overrides:
[
{
kind: enum ,
value: string ,
selectors:
[
{
kind: enum ,
in:
[
string ,
]
,
notIn:
[
string ,
]
,
}
,
]
,
}
,
]
,
assignmentType: enum ,
instanceId: string ,
}
,
id: string ,
type: string ,
name: string ,
location: string ,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListAllBuiltins (new)
Description This operation lists all the built-in policy definition versions for all built-in policy definitions.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Authorization/listPolicyDefinitionVersions
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListAllAtManagementGroup (new)
Description This operation lists all the policy definition versions for all policy definitions at the management group scope.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicyDefinitionVersions
{
managementGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListAll (new)
Description This operation lists all the policy definition versions for all policy definitions within a subscription.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicyDefinitionVersions
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_CreateOrUpdate (new)
Description This operation creates or updates a policy definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_Delete (new)
Description This operation deletes the policy definition version in the given subscription with the given name.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_Get (new)
Description This operation retrieves the policy definition version in the given subscription with the given name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_GetBuiltIn (new)
Description This operation retrieves the built-in policy definition version with the given name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_CreateOrUpdateAtManagementGroup (new)
Description This operation creates or updates a policy definition version in the given management group with the given name.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_DeleteAtManagementGroup (new)
Description This operation deletes the policy definition in the given management group with the given name.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_GetAtManagementGroup (new)
Description This operation retrieves the policy definition version in the given management group with the given name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policyDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_List (new)
Description This operation retrieves a list of all the policy definition versions for the given policy definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions
{
subscriptionId: string ,
policyDefinitionName: string ,
api-version: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListBuiltIn (new)
Description This operation retrieves a list of all the built-in policy definition versions for the given policy definition.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions
{
policyDefinitionName: string ,
api-version: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitionVersions_ListByManagementGroup (new)
Description This operation retrieves a list of all the policy definition versions for the given policy definition in the given management group.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}/versions
{
managementGroupName: string ,
policyDefinitionName: string ,
api-version: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_CreateOrUpdate (new)
Description This operation creates or updates a policy definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
subscriptionId: string ,
policyDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_Delete (new)
Description This operation deletes the policy definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
subscriptionId: string ,
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_Get (new)
Description This operation retrieves the policy definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
subscriptionId: string ,
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_GetBuiltIn (new)
Description This operation retrieves the built-in policy definition with the given name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_CreateOrUpdateAtManagementGroup (new)
Description This operation creates or updates a policy definition in the given management group with the given name.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
managementGroupId: string ,
policyDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_DeleteAtManagementGroup (new)
Description This operation deletes the policy definition in the given management group with the given name.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
managementGroupId: string ,
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_GetAtManagementGroup (new)
Description This operation retrieves the policy definition in the given management group with the given name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}
{
managementGroupId: string ,
policyDefinitionName: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_List (new)
Description This operation retrieves a list of all the policy definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions
{
api-version: string ,
subscriptionId: string ,
$filter: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_ListBuiltIn (new)
Description This operation retrieves a list of all the built-in policy definitions that match the optional given $filter. If $filter='policyType -eq {value}' is provided, the returned list only includes all built-in policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy definitions whose category match the {value}.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policyDefinitions
{
api-version: string ,
$filter: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyDefinitions_ListByManagementGroup (new)
Description This operation retrieves a list of all the policy definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn, Custom, and Static. If $filter='category -eq {value}' is provided, the returned list only includes all policy definitions whose category match the {value}.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions
{
api-version: string ,
managementGroupId: string ,
$filter: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
mode: string ,
displayName: string ,
description: string ,
policyRule: object ,
metadata: object ,
parameters: object ,
version: string ,
versions:
[
string ,
]
,
externalEvaluationEnforcementSettings:
{
missingTokenAction: string ,
resultLifespan: string ,
endpointSettings:
{
kind: string ,
details: object ,
}
,
roleDefinitionIds:
[
string ,
]
,
}
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_ListAllBuiltins (new)
Description This operation lists all the built-in policy set definition versions for all built-in policy set definitions.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Authorization/listPolicySetDefinitionVersions
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_ListAllAtManagementGroup (new)
Description This operation lists all the policy set definition versions for all policy set definitions at the management group scope.
Reference Link ¶

⚼ Request

POST:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions
{
managementGroupName: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_ListAll (new)
Description This operation lists all the policy set definition versions for all policy set definitions within a subscription.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions
{
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_CreateOrUpdate (new)
Description This operation creates or updates a policy set definition version in the given subscription with the given name and version.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
parameters:
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_Delete (new)
Description This operation deletes the policy set definition version in the given subscription with the given name and version.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_Get (new)
Description This operation retrieves the policy set definition version in the given subscription with the given name and version.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
subscriptionId: string ,
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_GetBuiltIn (new)
Description This operation retrieves the built-in policy set definition version with the given name and version.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_List (new)
Description This operation retrieves a list of all the policy set definition versions for the given policy set definition.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions
{
subscriptionId: string ,
policySetDefinitionName: string ,
api-version: string ,
$expand: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_ListBuiltIn (new)
Description This operation retrieves a list of all the built-in policy set definition versions for the given built-in policy set definition.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions
{
policySetDefinitionName: string ,
api-version: string ,
$expand: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_CreateOrUpdateAtManagementGroup (new)
Description This operation creates or updates a policy set definition version in the given management group with the given name and version.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
parameters:
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_DeleteAtManagementGroup (new)
Description This operation deletes the policy set definition version in the given management group with the given name and version.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_GetAtManagementGroup (new)
Description This operation retrieves the policy set definition version in the given management group with the given name and version.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
{
managementGroupName: string ,
policySetDefinitionName: string ,
policyDefinitionVersion: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitionVersions_ListByManagementGroup (new)
Description This operation retrieves a list of all the policy set definition versions for the given policy set definition in a given management group.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions
{
managementGroupName: string ,
policySetDefinitionName: string ,
api-version: string ,
$expand: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_CreateOrUpdate (new)
Description This operation creates or updates a policy set definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
subscriptionId: string ,
policySetDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_Delete (new)
Description This operation deletes the policy set definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
subscriptionId: string ,
policySetDefinitionName: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_Get (new)
Description This operation retrieves the policy set definition in the given subscription with the given name.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
subscriptionId: string ,
policySetDefinitionName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_GetBuiltIn (new)
Description This operation retrieves the built-in policy set definition with the given name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
policySetDefinitionName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_List (new)
Description This operation retrieves a list of all the policy set definitions in a given subscription that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the subscription, including those that apply directly or from management groups that contain the given subscription. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given subscription. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions
{
subscriptionId: string ,
api-version: string ,
$filter: string ,
$expand: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_ListBuiltIn (new)
Description This operation retrieves a list of all the built-in policy set definitions that match the optional given $filter. If $filter='category -eq {value}' is provided, the returned list only includes all built-in policy set definitions whose category match the {value}.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Authorization/policySetDefinitions
{
api-version: string ,
$filter: string ,
$expand: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_CreateOrUpdateAtManagementGroup (new)
Description This operation creates or updates a policy set definition in the given management group with the given name.
Reference Link ¶

⚼ Request

PUT:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
managementGroupId: string ,
policySetDefinitionName: string ,
parameters:
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
api-version: string ,
}

⚐ Response (201)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_DeleteAtManagementGroup (new)
Description This operation deletes the policy set definition in the given management group with the given name.
Reference Link ¶

⚼ Request

DELETE:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
managementGroupId: string ,
policySetDefinitionName: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_GetAtManagementGroup (new)
Description This operation retrieves the policy set definition in the given management group with the given name.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
{
managementGroupId: string ,
policySetDefinitionName: string ,
$expand: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicySetDefinitions_ListByManagementGroup (new)
Description This operation retrieves a list of all the policy set definitions in a given management group that match the optional given $filter. Valid values for $filter are: 'atExactScope()', 'policyType -eq {value}' or 'category eq '{value}''. If $filter is not provided, the unfiltered list includes all policy set definitions associated with the management group, including those that apply directly or from management groups that contain the given management group. If $filter=atExactScope() is provided, the returned list only includes all policy set definitions that at the given management group. If $filter='policyType -eq {value}' is provided, the returned list only includes all policy set definitions whose type match the {value}. Possible policyType values are NotSpecified, BuiltIn and Custom. If $filter='category -eq {value}' is provided, the returned list only includes all policy set definitions whose category match the {value}.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions
{
managementGroupId: string ,
api-version: string ,
$filter: string ,
$expand: string ,
$top: integer ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
policyType: enum ,
displayName: string ,
description: string ,
metadata: object ,
parameters: object ,
policyDefinitions:
[
{
policyDefinitionId: string ,
definitionVersion: string ,
latestDefinitionVersion: string ,
effectiveDefinitionVersion: string ,
parameters: object ,
policyDefinitionReferenceId: string ,
groupNames:
[
string ,
]
,
}
,
]
,
policyDefinitionGroups:
[
{
name: string ,
displayName: string ,
category: string ,
description: string ,
additionalMetadataId: string ,
}
,
]
,
version: string ,
versions:
[
string ,
]
,
}
,
id: string ,
name: string ,
type: string ,
systemData:
{
createdBy: string ,
createdByType: enum ,
createdAt: string ,
lastModifiedBy: string ,
lastModifiedByType: enum ,
lastModifiedAt: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
PolicyTokens_Acquire (new)
Description This operation acquires a policy token in the given subscription for the given request body.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/acquirePolicyToken
{
api-version: string ,
subscriptionId: string ,
parameters:
{
operation:
{
uri: string ,
httpMethod: string ,
content: object ,
}
,
changeReference: string ,
}
,
}

⚐ Response (200)

{
result: enum ,
message: string ,
retryAfter: string ,
results:
[
{
policyInfo:
{
policyDefinitionId: string ,
policySetDefinitionId: string ,
policyDefinitionReferenceId: string ,
policySetDefinitionName: string ,
policySetDefinitionDisplayName: string ,
policySetDefinitionVersion: string ,
policySetDefinitionCategory: string ,
policyDefinitionName: string ,
policyDefinitionDisplayName: string ,
policyDefinitionVersion: string ,
policyDefinitionEffect: string ,
policyDefinitionGroupNames:
[
string ,
]
,
policyAssignmentId: string ,
policyAssignmentName: string ,
policyAssignmentDisplayName: string ,
policyAssignmentVersion: string ,
policyAssignmentScope: string ,
resourceLocation: string ,
ancestors: string ,
complianceReasonCode: string ,
policyExemptionIds:
[
string ,
]
,
}
,
result: enum ,
message: string ,
retryAfter: string ,
claims: object ,
expiration: string ,
}
,
]
,
changeReference: string ,
token: string ,
tokenId: string ,
expiration: string ,
}

⚐ Response (202)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}