Share via


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

NewRelicObservabilityExtensions.GetNewRelicAccountsAsync 方法

定义

列出所有现有帐户

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

参数

subscriptionResource
SubscriptionResource

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

userEmail
String

用户Email。

location
AzureLocation

NewRelic 的位置。

cancellationToken
CancellationToken

要使用的取消标记。

返回

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

例外

userEmail 为 null。

适用于