Share via


ElasticMonitorResource.GetMonitoringTagRule(String, CancellationToken) Method

Definition

Get a tag rule set for a given monitor resource.

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

Parameters

ruleSetName
String

Tag Rule Set resource 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