次の方法で共有


EventSubscriptionCollection.GetAllAsync メソッド

定義

特定の Azure サブスクリプションで集計されたすべてのグローバル イベント サブスクリプションを一覧表示します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.EventGrid/eventSubscriptions
  • 操作IdEventSubscriptions_ListGlobalBySubscription
  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/eventSubscriptions
  • 操作IdEventSubscriptions_ListGlobalByResourceGroup
  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventSubscriptions
  • 操作IdEventSubscriptions_ListByResource
  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions
  • 操作IdEventSubscriptions_ListByDomainTopic
public virtual Azure.AsyncPageable<Azure.ResourceManager.EventGrid.EventSubscriptionResource> GetAllAsync (string filter = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.EventGrid.EventSubscriptionResource>
override this.GetAllAsync : string * Nullable<int> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.EventGrid.EventSubscriptionResource>
Public Overridable Function GetAllAsync (Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of EventSubscriptionResource)

パラメーター

filter
String

OData 構文を使用して検索結果をフィルター処理するために使用するクエリ。 フィルター処理は、'name' プロパティでのみ許可され、OData 操作の数は限られています。 これらの操作は、'contains' 関数と、次の論理操作です。not、and、or、eq (等しい場合)、ne (等しくない場合)。 算術演算はサポートされていません。 有効なフィルターの例を次に示します。$filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. 有効なフィルターの例を次に示します。$filter=location eq 'westus' です。

top
Nullable<Int32>

リスト操作の 1 ページあたりに返される結果の数。 top パラメーターの有効な範囲は 1 ~ 100 です。 指定しない場合、返される結果の既定の数は 1 ページあたり 20 アイテムです。

cancellationToken
CancellationToken

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

戻り値

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

適用対象