DenyAssignmentCollection.GetAll(String, CancellationToken) Method

Definition

Gets deny assignments for a scope.

  • Request Path: /{scope}/providers/Microsoft.Authorization/denyAssignments
  • Operation Id: DenyAssignments_ListForScope
  • Default Api Version: 2022-04-01
  • Resource: DenyAssignmentResource
public virtual Azure.Pageable<Azure.ResourceManager.Authorization.DenyAssignmentResource> GetAll (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.DenyAssignmentResource>
override this.GetAll : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Authorization.DenyAssignmentResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DenyAssignmentResource)

Parameters

filter
String

The filter to apply on the operation. Use $filter=atScope() to return all deny assignments at or above the scope. Use $filter=denyAssignmentName eq '{name}' to search deny assignments by name at specified scope. Use $filter=principalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. Use $filter=gdprExportPrincipalId eq '{id}' to return all deny assignments at, above and below the scope for the specified principal. This filter is different from the principalId filter as it returns not only those deny assignments that contain the specified principal is the Principals list but also those deny assignments that contain the specified principal is the ExcludePrincipals list. Additionally, when gdprExportPrincipalId filter is used, only the deny assignment name and description properties are returned.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DenyAssignmentResource that may take multiple service requests to iterate over.

Applies to