你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridExtensions.GetRegionalEventSubscriptionsDataForTopicType 方法

定义

重载

GetRegionalEventSubscriptionsDataForTopicType(ResourceGroupResource, AzureLocation, String, String, Nullable<Int32>, CancellationToken)

列出特定 Azure 订阅、资源组和主题类型下给定位置的所有事件订阅。

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions
  • 操作IdEventSubscriptions_ListRegionalByResourceGroupForTopicType
GetRegionalEventSubscriptionsDataForTopicType(SubscriptionResource, AzureLocation, String, String, Nullable<Int32>, CancellationToken)

列出特定 Azure 订阅和主题类型下给定位置的所有事件订阅。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions
  • 操作IdEventSubscriptions_ListRegionalBySubscriptionForTopicType

GetRegionalEventSubscriptionsDataForTopicType(ResourceGroupResource, AzureLocation, String, String, Nullable<Int32>, CancellationToken)

列出特定 Azure 订阅、资源组和主题类型下给定位置的所有事件订阅。

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions
  • 操作IdEventSubscriptions_ListRegionalByResourceGroupForTopicType
public static Azure.Pageable<Azure.ResourceManager.EventGrid.EventGridSubscriptionData> GetRegionalEventSubscriptionsDataForTopicType (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, string topicTypeName, string filter = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetRegionalEventSubscriptionsDataForTopicType : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.EventGrid.EventGridSubscriptionData>
<Extension()>
Public Function GetRegionalEventSubscriptionsDataForTopicType (resourceGroupResource As ResourceGroupResource, location As AzureLocation, topicTypeName As String, Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EventGridSubscriptionData)

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

location
AzureLocation

位置的名称。

topicTypeName
String

主题类型的名称。

filter
String

用于使用 OData 语法筛选搜索结果的查询。 仅允许对“name”属性进行筛选,并且 OData 操作数有限。 这些操作包括:“contains”函数以及以下逻辑运算:not、、、或 eq (等于) ,ne (表示不等于) 。 不支持算术运算。 下面是一个有效的筛选器示例:$filter=contains (namE,'PATTERN') ,名称 ne 'PATTERN-1'。 下面是无效的筛选器示例:$filter=location eq 'westus'。

top
Nullable<Int32>

列表操作每页返回的结果数。 top 参数的有效范围为 1 到 100。 如果未指定,则返回的默认结果数为每页 20 个项。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 EventGridSubscriptionData 集合。

例外

topicTypeName 是一个空字符串,预期为非空。

topicTypeName 为 null。

适用于

GetRegionalEventSubscriptionsDataForTopicType(SubscriptionResource, AzureLocation, String, String, Nullable<Int32>, CancellationToken)

列出特定 Azure 订阅和主题类型下给定位置的所有事件订阅。

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/locations/{location}/topicTypes/{topicTypeName}/eventSubscriptions
  • 操作IdEventSubscriptions_ListRegionalBySubscriptionForTopicType
public static Azure.Pageable<Azure.ResourceManager.EventGrid.EventGridSubscriptionData> GetRegionalEventSubscriptionsDataForTopicType (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string topicTypeName, string filter = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
static member GetRegionalEventSubscriptionsDataForTopicType : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.EventGrid.EventGridSubscriptionData>
<Extension()>
Public Function GetRegionalEventSubscriptionsDataForTopicType (subscriptionResource As SubscriptionResource, location As AzureLocation, topicTypeName As String, Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EventGridSubscriptionData)

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

位置的名称。

topicTypeName
String

主题类型的名称。

filter
String

用于使用 OData 语法筛选搜索结果的查询。 仅允许对“name”属性进行筛选,并且 OData 操作数有限。 这些操作包括:“contains”函数以及以下逻辑运算:not、、、或 eq (等于) ,ne (表示不等于) 。 不支持算术运算。 下面是一个有效的筛选器示例:$filter=contains (namE,'PATTERN') ,名称 ne 'PATTERN-1'。 下面是无效的筛选器示例:$filter=location eq 'westus'。

top
Nullable<Int32>

列表操作每页返回的结果数。 top 参数的有效范围为 1 到 100。 如果未指定,则返回的默认结果数为每页 20 个项。

cancellationToken
CancellationToken

要使用的取消标记。

返回

可能需要多个服务请求来循环访问的 的 EventGridSubscriptionData 集合。

例外

topicTypeName 是一个空字符串,预期为非空。

topicTypeName 为 null。

适用于