DiagnosticSettingsOperations.Get(String, String, CancellationToken) Method

Definition

Gets the active diagnostic settings for the specified resource.

public virtual Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource> Get (string resourceUri, string name, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>
override this.Get : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Insights.Models.DiagnosticSettingsResource>
Public Overridable Function Get (resourceUri As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As 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

Response<DiagnosticSettingsResource>

Applies to