DatadogMonitorResource.GetMonitoringTagRuleAsync Method

Definition

Get a tag rule set for a given monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/tagRules/{ruleSetName}
  • Operation Id: TagRules_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.MonitoringTagRuleResource>> GetMonitoringTagRuleAsync (string ruleSetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMonitoringTagRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.MonitoringTagRuleResource>>
override this.GetMonitoringTagRuleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Datadog.MonitoringTagRuleResource>>
Public Overridable Function GetMonitoringTagRuleAsync (ruleSetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MonitoringTagRuleResource))

Parameters

ruleSetName
String

Rule set name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

ruleSetName is null.

ruleSetName is an empty string, and was expected to be non-empty.

Applies to