DiagnosticSettingsOperations.ListAsync(String, CancellationToken) Method

Definition

Gets the active diagnostic settings list for the specified resource.

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

Parameters

resourceUri
System.String

The identifier of the resource.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

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

Applies to