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

MonitorExtensions.GetLogProfile 方法

定义

获取日志配置文件。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}
  • 操作IdLogProfiles_Get
public static Azure.Response<Azure.ResourceManager.Monitor.LogProfileResource> GetLogProfile (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string logProfileName, System.Threading.CancellationToken cancellationToken = default);
static member GetLogProfile : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.LogProfileResource>
<Extension()>
Public Function GetLogProfile (subscriptionResource As SubscriptionResource, logProfileName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LogProfileResource)

参数

subscriptionResource
SubscriptionResource

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

logProfileName
String

日志配置文件的名称。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

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

logProfileName 为 null。

适用于