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.47.1 published on Monday, Jun 24, 2024 by Pulumi
azure-native.logz.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.47.1 published on Monday, Jun 24, 2024 by Pulumi
Capture logs and metrics of Azure resources based on ARM tags. Azure REST API version: 2022-01-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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:logz:getTagRule
arguments:
# arguments dictionary
The following arguments are supported:
- Monitor
Name string - Monitor resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Set stringName
- Monitor
Name string - Monitor resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Set stringName
- monitor
Name String - Monitor resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Set StringName
- monitor
Name string - Monitor resource name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- rule
Set stringName
- monitor_
name str - Monitor resource name
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- rule_
set_ strname
- monitor
Name String - Monitor resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Set StringName
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. Logz. Outputs. Monitoring Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- System
Data Pulumi.Azure Native. Logz. 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
Monitoring
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- System
Data 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
Monitoring
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- system
Data 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
Monitoring
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- system
Data 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
Monitoring
Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- 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
- Definition of the properties for a TagRules resource.
- system
Data 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. Logz. 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.
- 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.
- []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.
- 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<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.
- send
Aad BooleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Activity BooleanLogs - Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- send
Subscription BooleanLogs - Flag specifying if subscription logs should be sent for the Monitor resource.
- 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.
- send
Aad booleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Activity booleanLogs - Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- send
Subscription booleanLogs - Flag specifying if subscription logs should be sent for the Monitor resource.
- Sequence[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.
- 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.
- send
Aad BooleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Activity BooleanLogs - Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
- send
Subscription BooleanLogs - Flag specifying if subscription logs should be sent for the Monitor resource.
MonitoringTagRulesPropertiesResponse
- Provisioning
State string - Flag specifying if the resource provisioning state as tracked by ARM.
- System
Data Pulumi.Azure Native. Logz. Inputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Log
Rules Pulumi.Azure Native. Logz. Inputs. Log Rules Response - Set of rules for sending logs for the Monitor resource.
- Provisioning
State string - Flag specifying if the resource provisioning state as tracked by ARM.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Log
Rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- provisioning
State String - Flag specifying if the resource provisioning state as tracked by ARM.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- log
Rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- provisioning
State string - Flag specifying if the resource provisioning state as tracked by ARM.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- log
Rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- provisioning_
state str - Flag specifying if the resource provisioning state as tracked by ARM.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- log_
rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- provisioning
State String - Flag specifying if the resource provisioning state as tracked by ARM.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- log
Rules Property Map - Set of rules for sending logs for the Monitor resource.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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.47.1 published on Monday, Jun 24, 2024 by Pulumi