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

NewRelicObservabilityExtensions.GetNewRelicOrganizationsAsync 方法

定义

列出所有现有组织

  • 请求路径/subscriptions/{subscriptionId}/providers/NewRelic.Observability/organizations
  • 操作IdOrganizations_List
public static Azure.AsyncPageable<Azure.ResourceManager.NewRelicObservability.Models.NewRelicOrganizationResourceData> GetNewRelicOrganizationsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string userEmail, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetNewRelicOrganizationsAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.NewRelicObservability.Models.NewRelicOrganizationResourceData>
<Extension()>
Public Function GetNewRelicOrganizationsAsync (subscriptionResource As SubscriptionResource, userEmail As String, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of NewRelicOrganizationResourceData)

参数

subscriptionResource
SubscriptionResource

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

userEmail
String

用户Email。

location
AzureLocation

NewRelic 的位置。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的异步集合 NewRelicOrganizationResourceData ,可能需要多个服务请求进行迭代。

例外

userEmail 为 null。

适用于