This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.elastic.getTagRule
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Capture logs and metrics of Azure resources based on ARM tags. Azure REST API version: 2023-06-01.
Other available API versions: 2023-06-15-preview, 2023-07-01-preview, 2023-10-01-preview, 2023-11-01-preview, 2024-01-01-preview, 2024-03-01, 2024-05-01-preview, 2024-06-15-preview, 2024-10-01-preview.
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>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]func LookupTagRule(ctx *Context, args *LookupTagRuleArgs, opts ...InvokeOption) (*LookupTagRuleResult, error)
func LookupTagRuleOutput(ctx *Context, args *LookupTagRuleOutputArgs, opts ...InvokeOption) LookupTagRuleResultOutput> 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)
}public static CompletableFuture<GetTagRuleResult> getTagRule(GetTagRuleArgs args, InvokeOptions options)
public static Output<GetTagRuleResult> getTagRule(GetTagRuleArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:elastic:getTagRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MonitorName string
- Monitor resource name
- ResourceGroup stringName 
- The name of the resource group to which the Elastic resource belongs.
- RuleSet stringName 
- Tag Rule Set resource name
- MonitorName string
- Monitor resource name
- ResourceGroup stringName 
- The name of the resource group to which the Elastic resource belongs.
- RuleSet stringName 
- Tag Rule Set resource name
- monitorName String
- Monitor resource name
- resourceGroup StringName 
- The name of the resource group to which the Elastic resource belongs.
- ruleSet StringName 
- Tag Rule Set resource name
- monitorName string
- Monitor resource name
- resourceGroup stringName 
- The name of the resource group to which the Elastic resource belongs.
- ruleSet stringName 
- Tag Rule Set resource name
- monitor_name str
- Monitor resource name
- resource_group_ strname 
- The name of the resource group to which the Elastic resource belongs.
- rule_set_ strname 
- Tag Rule Set resource name
- monitorName String
- Monitor resource name
- resourceGroup StringName 
- The name of the resource group to which the Elastic resource belongs.
- ruleSet StringName 
- Tag Rule Set resource name
getTagRule Result
The following output properties are available:
- Id string
- The id of the rule set.
- Name string
- Name of the rule set.
- Properties
Pulumi.Azure Native. Elastic. Outputs. Monitoring Tag Rules Properties Response 
- Properties of the monitoring tag rules.
- SystemData Pulumi.Azure Native. Elastic. Outputs. System Data Response 
- The system metadata relating to this resource
- Type string
- The type of the rule set.
- Id string
- The id of the rule set.
- Name string
- Name of the rule set.
- Properties
MonitoringTag Rules Properties Response 
- Properties of the monitoring tag rules.
- SystemData SystemData Response 
- The system metadata relating to this resource
- Type string
- The type of the rule set.
- id String
- The id of the rule set.
- name String
- Name of the rule set.
- properties
MonitoringTag Rules Properties Response 
- Properties of the monitoring tag rules.
- systemData SystemData Response 
- The system metadata relating to this resource
- type String
- The type of the rule set.
- id string
- The id of the rule set.
- name string
- Name of the rule set.
- properties
MonitoringTag Rules Properties Response 
- Properties of the monitoring tag rules.
- systemData SystemData Response 
- The system metadata relating to this resource
- type string
- The type of the rule set.
- id str
- The id of the rule set.
- name str
- Name of the rule set.
- properties
MonitoringTag Rules Properties Response 
- Properties of the monitoring tag rules.
- system_data SystemData Response 
- The system metadata relating to this resource
- type str
- The type of the rule set.
- 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  
LogRulesResponse  
- 
List<Pulumi.Azure Native. Elastic. Inputs. Filtering Tag Response> 
- 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.
- SendAad boolLogs 
- Flag specifying if AAD logs should be sent for the Monitor resource.
- SendActivity boolLogs 
- Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- SendSubscription boolLogs 
- Flag specifying if subscription logs should be sent for the Monitor resource.
- 
[]FilteringTag Response 
- 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.
- SendAad boolLogs 
- Flag specifying if AAD logs should be sent for the Monitor resource.
- SendActivity boolLogs 
- Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- SendSubscription boolLogs 
- Flag specifying if subscription logs should be sent for the Monitor resource.
- 
List<FilteringTag Response> 
- 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.
- sendAad BooleanLogs 
- Flag specifying if AAD logs should be sent for the Monitor resource.
- sendActivity BooleanLogs 
- Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- sendSubscription BooleanLogs 
- Flag specifying if subscription logs should be sent for the Monitor resource.
- 
FilteringTag Response[] 
- 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.
- sendAad booleanLogs 
- Flag specifying if AAD logs should be sent for the Monitor resource.
- sendActivity booleanLogs 
- Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- sendSubscription booleanLogs 
- Flag specifying if subscription logs should be sent for the Monitor resource.
- 
Sequence[FilteringTag Response] 
- 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_ boollogs 
- Flag specifying if AAD logs should be sent for the Monitor resource.
- send_activity_ boollogs 
- Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- send_subscription_ boollogs 
- Flag specifying if subscription logs should be sent for the Monitor resource.
- 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.
- sendAad BooleanLogs 
- Flag specifying if AAD logs should be sent for the Monitor resource.
- sendActivity BooleanLogs 
- Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- sendSubscription BooleanLogs 
- Flag specifying if subscription logs should be sent for the Monitor resource.
MonitoringTagRulesPropertiesResponse    
- LogRules Pulumi.Azure Native. Elastic. Inputs. Log Rules Response 
- Rules for sending logs.
- ProvisioningState string
- Provisioning state of the monitoring tag rules.
- LogRules LogRules Response 
- Rules for sending logs.
- ProvisioningState string
- Provisioning state of the monitoring tag rules.
- logRules LogRules Response 
- Rules for sending logs.
- provisioningState String
- Provisioning state of the monitoring tag rules.
- logRules LogRules Response 
- Rules for sending logs.
- provisioningState string
- Provisioning state of the monitoring tag rules.
- log_rules LogRules Response 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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 v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi