DiagnosticSettingsOperations.GetAsync Method

Definition

Gets the active diagnostic settings for the specified resource.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>> GetAsync (string resourceUri, string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>>
override this.GetAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>>
Public Overridable Function GetAsync (resourceUri As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiagnosticSettingsResource))

Parameters

resourceUri
System.String

The identifier of the resource.

name
System.String

The name of the diagnostic setting.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Response<DiagnosticSettingsResource>>

Applies to