Delen via


MonitorExtensions.GetDiagnosticSettingAsync Methode

Definitie

Overloads

GetDiagnosticSettingAsync(ArmResource, String, CancellationToken)

Hiermee haalt u de actieve diagnostische instellingen voor de opgegeven resource op. Aanvraagpad: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name} Bewerkings-id: DiagnosticSettings_Get

GetDiagnosticSettingAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Hiermee haalt u de actieve diagnostische instellingen voor de opgegeven resource op.

  • Aanvraagpad/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Bewerkings IdDiagnosticSettings_Get

GetDiagnosticSettingAsync(ArmResource, String, CancellationToken)

Hiermee haalt u de actieve diagnostische instellingen voor de opgegeven resource op. Aanvraagpad: /{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name} Bewerkings-id: DiagnosticSettings_Get

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.DiagnosticSettingResource>> GetDiagnosticSettingAsync (this Azure.ResourceManager.ArmResource armResource, string name, System.Threading.CancellationToken cancellationToken = default);
static member GetDiagnosticSettingAsync : Azure.ResourceManager.ArmResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.DiagnosticSettingResource>>
<Extension()>
Public Function GetDiagnosticSettingAsync (armResource As ArmResource, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiagnosticSettingResource))

Parameters

armResource
ArmResource

Het ArmResource exemplaar waarop de methode wordt uitgevoerd.

name
String

De naam van de diagnostische instelling.

cancellationToken
CancellationToken

Het annuleringstoken dat moet worden gebruikt.

Retouren

Uitzonderingen

name is een lege tekenreeks en werd verwacht dat deze niet-leeg is.

name is null.

Van toepassing op

GetDiagnosticSettingAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Hiermee haalt u de actieve diagnostische instellingen voor de opgegeven resource op.

  • Aanvraagpad/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}
  • Bewerkings IdDiagnosticSettings_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.DiagnosticSettingResource>> GetDiagnosticSettingAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string name, System.Threading.CancellationToken cancellationToken = default);
static member GetDiagnosticSettingAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.DiagnosticSettingResource>>
<Extension()>
Public Function GetDiagnosticSettingAsync (client As ArmClient, scope As ResourceIdentifier, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiagnosticSettingResource))

Parameters

client
ArmClient

Het ArmClient exemplaar waarop de methode wordt uitgevoerd.

scope
ResourceIdentifier

Het bereik waarop de resource wordt toegepast.

name
String

De naam van de diagnostische instelling.

cancellationToken
CancellationToken

Het annuleringstoken dat moet worden gebruikt.

Retouren

Uitzonderingen

name is een lege tekenreeks en werd verwacht dat deze niet-leeg is.

name is null.

Van toepassing op