1. Packages
  2. Azure Native
  3. API Docs
  4. elastic
  5. getTagRule
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.elastic.getTagRule

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Capture logs and metrics of Azure resources based on ARM tags.

Uses Azure REST API version 2024-03-01.

Other available API versions: 2023-06-01, 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-05-01-preview, 2024-06-15-preview, 2024-10-01-preview, 2025-01-15-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native elastic [ApiVersion]. See the version guide for details.

Using getTagRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getTagRule(args: GetTagRuleArgs, opts?: InvokeOptions): Promise<GetTagRuleResult>
function getTagRuleOutput(args: GetTagRuleOutputArgs, opts?: InvokeOptions): Output<GetTagRuleResult>
Copy
def get_tag_rule(monitor_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 rule_set_name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTagRuleResult
def get_tag_rule_output(monitor_name: Optional[pulumi.Input[str]] = None,
                 resource_group_name: Optional[pulumi.Input[str]] = None,
                 rule_set_name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetTagRuleResult]
Copy
func LookupTagRule(ctx *Context, args *LookupTagRuleArgs, opts ...InvokeOption) (*LookupTagRuleResult, error)
func LookupTagRuleOutput(ctx *Context, args *LookupTagRuleOutputArgs, opts ...InvokeOption) LookupTagRuleResultOutput
Copy

> Note: This function is named LookupTagRule in the Go SDK.

public static class GetTagRule 
{
    public static Task<GetTagRuleResult> InvokeAsync(GetTagRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetTagRuleResult> Invoke(GetTagRuleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTagRuleResult> getTagRule(GetTagRuleArgs args, InvokeOptions options)
public static Output<GetTagRuleResult> getTagRule(GetTagRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:elastic:getTagRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MonitorName
This property is required.
Changes to this property will trigger replacement.
string
Monitor resource name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
RuleSetName
This property is required.
Changes to this property will trigger replacement.
string
Tag Rule Set resource name
MonitorName
This property is required.
Changes to this property will trigger replacement.
string
Monitor resource name
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
RuleSetName
This property is required.
Changes to this property will trigger replacement.
string
Tag Rule Set resource name
monitorName
This property is required.
Changes to this property will trigger replacement.
String
Monitor resource name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
ruleSetName
This property is required.
Changes to this property will trigger replacement.
String
Tag Rule Set resource name
monitorName
This property is required.
Changes to this property will trigger replacement.
string
Monitor resource name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ruleSetName
This property is required.
Changes to this property will trigger replacement.
string
Tag Rule Set resource name
monitor_name
This property is required.
Changes to this property will trigger replacement.
str
Monitor resource name
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
rule_set_name
This property is required.
Changes to this property will trigger replacement.
str
Tag Rule Set resource name
monitorName
This property is required.
Changes to this property will trigger replacement.
String
Monitor resource name
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
ruleSetName
This property is required.
Changes to this property will trigger replacement.
String
Tag Rule Set resource name

getTagRule Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
The id of the rule set.
Name string
Name of the rule set.
Properties Pulumi.AzureNative.Elastic.Outputs.MonitoringTagRulesPropertiesResponse
Properties of the monitoring tag rules.
SystemData Pulumi.AzureNative.Elastic.Outputs.SystemDataResponse
The system metadata relating to this resource
Type string
The type of the rule set.
AzureApiVersion string
The Azure API version of the resource.
Id string
The id of the rule set.
Name string
Name of the rule set.
Properties MonitoringTagRulesPropertiesResponse
Properties of the monitoring tag rules.
SystemData SystemDataResponse
The system metadata relating to this resource
Type string
The type of the rule set.
azureApiVersion String
The Azure API version of the resource.
id String
The id of the rule set.
name String
Name of the rule set.
properties MonitoringTagRulesPropertiesResponse
Properties of the monitoring tag rules.
systemData SystemDataResponse
The system metadata relating to this resource
type String
The type of the rule set.
azureApiVersion string
The Azure API version of the resource.
id string
The id of the rule set.
name string
Name of the rule set.
properties MonitoringTagRulesPropertiesResponse
Properties of the monitoring tag rules.
systemData SystemDataResponse
The system metadata relating to this resource
type string
The type of the rule set.
azure_api_version str
The Azure API version of the resource.
id str
The id of the rule set.
name str
Name of the rule set.
properties MonitoringTagRulesPropertiesResponse
Properties of the monitoring tag rules.
system_data SystemDataResponse
The system metadata relating to this resource
type str
The type of the rule set.
azureApiVersion String
The Azure API version of the resource.
id String
The id of the rule set.
name String
Name of the rule set.
properties Property Map
Properties of the monitoring tag rules.
systemData Property Map
The system metadata relating to this resource
type String
The type of the rule set.

Supporting Types

FilteringTagResponse

Action string
Valid actions for a filtering tag.
Name string
The name (also known as the key) of the tag.
Value string
The value of the tag.
Action string
Valid actions for a filtering tag.
Name string
The name (also known as the key) of the tag.
Value string
The value of the tag.
action String
Valid actions for a filtering tag.
name String
The name (also known as the key) of the tag.
value String
The value of the tag.
action string
Valid actions for a filtering tag.
name string
The name (also known as the key) of the tag.
value string
The value of the tag.
action str
Valid actions for a filtering tag.
name str
The name (also known as the key) of the tag.
value str
The value of the tag.
action String
Valid actions for a filtering tag.
name String
The name (also known as the key) of the tag.
value String
The value of the tag.

LogRulesResponse

FilteringTags List<Pulumi.AzureNative.Elastic.Inputs.FilteringTagResponse>
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
SendAadLogs bool
Flag specifying if AAD logs should be sent for the Monitor resource.
SendActivityLogs bool
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
SendSubscriptionLogs bool
Flag specifying if subscription logs should be sent for the Monitor resource.
FilteringTags []FilteringTagResponse
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
SendAadLogs bool
Flag specifying if AAD logs should be sent for the Monitor resource.
SendActivityLogs bool
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
SendSubscriptionLogs bool
Flag specifying if subscription logs should be sent for the Monitor resource.
filteringTags List<FilteringTagResponse>
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
sendAadLogs Boolean
Flag specifying if AAD logs should be sent for the Monitor resource.
sendActivityLogs Boolean
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
sendSubscriptionLogs Boolean
Flag specifying if subscription logs should be sent for the Monitor resource.
filteringTags FilteringTagResponse[]
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
sendAadLogs boolean
Flag specifying if AAD logs should be sent for the Monitor resource.
sendActivityLogs boolean
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
sendSubscriptionLogs boolean
Flag specifying if subscription logs should be sent for the Monitor resource.
filtering_tags Sequence[FilteringTagResponse]
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
send_aad_logs bool
Flag specifying if AAD logs should be sent for the Monitor resource.
send_activity_logs bool
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
send_subscription_logs bool
Flag specifying if subscription logs should be sent for the Monitor resource.
filteringTags List<Property Map>
List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
sendAadLogs Boolean
Flag specifying if AAD logs should be sent for the Monitor resource.
sendActivityLogs Boolean
Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
sendSubscriptionLogs Boolean
Flag specifying if subscription logs should be sent for the Monitor resource.

MonitoringTagRulesPropertiesResponse

LogRules Pulumi.AzureNative.Elastic.Inputs.LogRulesResponse
Rules for sending logs.
ProvisioningState string
Provisioning state of the monitoring tag rules.
LogRules LogRulesResponse
Rules for sending logs.
ProvisioningState string
Provisioning state of the monitoring tag rules.
logRules LogRulesResponse
Rules for sending logs.
provisioningState String
Provisioning state of the monitoring tag rules.
logRules LogRulesResponse
Rules for sending logs.
provisioningState string
Provisioning state of the monitoring tag rules.
log_rules LogRulesResponse
Rules for sending logs.
provisioning_state str
Provisioning state of the monitoring tag rules.
logRules Property Map
Rules for sending logs.
provisioningState String
Provisioning state of the monitoring tag rules.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi