次の方法で共有


DenyAssignmentCollection.GetAllAsync(String, CancellationToken) メソッド

定義

リソースの拒否割り当てを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments
  • 操作IdDenyAssignments_ListForResource
  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments
  • 操作IdDenyAssignments_ListForResourceGroup
  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments
  • 操作IdDenyAssignments_List
  • 要求パス/{scope}/providers/Microsoft.Authorization/denyAssignments
  • 操作IdDenyAssignments_ListForScope
public virtual Azure.AsyncPageable<Azure.ResourceManager.Authorization.DenyAssignmentResource> GetAllAsync (string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.DenyAssignmentResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Authorization.DenyAssignmentResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of DenyAssignmentResource)

パラメーター

filter
String

操作に適用するフィルター。 スコープ以上のすべての拒否割り当てを返すには、$filter=atScope() を使用します。 指定したスコープで名前で拒否割り当てを検索するには、$filter=denyAssignmentName eq '{name}' を使用します。 $filter=principalId eq '{id}' を使用して、指定したプリンシパルのスコープの上と下にあるすべての拒否割り当てを返します。 指定したプリンシパルのスコープの上と下にあるすべての拒否割り当てを返すには、$filter=gdprExportPrincipalId eq '{id}' を使用します。 このフィルターは principalId フィルターとは異なります。指定したプリンシパルを含む拒否割り当てが [プリンシパル] リストであるだけでなく、指定したプリンシパルを含む拒否割り当ても ExcludePrincipals リストとして返されるためです。 さらに、gdprExportPrincipalId フィルターを使用すると、拒否割り当ての名前と説明のプロパティのみが返されます。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の DenyAssignmentResource サービス要求を受け取る可能性がある の非同期コレクション。

適用対象