1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. getDefaultUserRule
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.network.getDefaultUserRule

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

Gets a user rule.

Uses Azure REST API version 2022-04-01-preview.

Using getDefaultUserRule

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 getDefaultUserRule(args: GetDefaultUserRuleArgs, opts?: InvokeOptions): Promise<GetDefaultUserRuleResult>
function getDefaultUserRuleOutput(args: GetDefaultUserRuleOutputArgs, opts?: InvokeOptions): Output<GetDefaultUserRuleResult>
Copy
def get_default_user_rule(configuration_name: Optional[str] = None,
                          network_manager_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          rule_collection_name: Optional[str] = None,
                          rule_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDefaultUserRuleResult
def get_default_user_rule_output(configuration_name: Optional[pulumi.Input[str]] = None,
                          network_manager_name: Optional[pulumi.Input[str]] = None,
                          resource_group_name: Optional[pulumi.Input[str]] = None,
                          rule_collection_name: Optional[pulumi.Input[str]] = None,
                          rule_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDefaultUserRuleResult]
Copy
func LookupDefaultUserRule(ctx *Context, args *LookupDefaultUserRuleArgs, opts ...InvokeOption) (*LookupDefaultUserRuleResult, error)
func LookupDefaultUserRuleOutput(ctx *Context, args *LookupDefaultUserRuleOutputArgs, opts ...InvokeOption) LookupDefaultUserRuleResultOutput
Copy

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

public static class GetDefaultUserRule 
{
    public static Task<GetDefaultUserRuleResult> InvokeAsync(GetDefaultUserRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetDefaultUserRuleResult> Invoke(GetDefaultUserRuleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDefaultUserRuleResult> getDefaultUserRule(GetDefaultUserRuleArgs args, InvokeOptions options)
public static Output<GetDefaultUserRuleResult> getDefaultUserRule(GetDefaultUserRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:network:getDefaultUserRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ConfigurationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager Security Configuration.
NetworkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
RuleCollectionName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager security Configuration rule collection.
RuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the rule.
ConfigurationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager Security Configuration.
NetworkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
RuleCollectionName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager security Configuration rule collection.
RuleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the rule.
configurationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager Security Configuration.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
ruleCollectionName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager security Configuration rule collection.
ruleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the rule.
configurationName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager Security Configuration.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ruleCollectionName
This property is required.
Changes to this property will trigger replacement.
string
The name of the network manager security Configuration rule collection.
ruleName
This property is required.
Changes to this property will trigger replacement.
string
The name of the rule.
configuration_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network manager Security Configuration.
network_manager_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network manager.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
rule_collection_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the network manager security Configuration rule collection.
rule_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the rule.
configurationName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager Security Configuration.
networkManagerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
ruleCollectionName
This property is required.
Changes to this property will trigger replacement.
String
The name of the network manager security Configuration rule collection.
ruleName
This property is required.
Changes to this property will trigger replacement.
String
The name of the rule.

getDefaultUserRule Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Description string
A description for this rule. Restricted to 140 chars.
DestinationPortRanges List<string>
The destination port ranges.
Destinations List<Pulumi.AzureNative.Network.Outputs.AddressPrefixItemResponse>
The destination address prefixes. CIDR or destination IP ranges.
Direction string
Indicates if the traffic matched against the rule in inbound or outbound.
Etag string
A unique read-only string that changes whenever the resource is updated.
Id string
Resource ID.
Name string
Resource name.
Protocol string
Network protocol this rule applies to.
ProvisioningState string
The provisioning state of the security configuration user rule resource.
SourcePortRanges List<string>
The source port ranges.
Sources List<Pulumi.AzureNative.Network.Outputs.AddressPrefixItemResponse>
The CIDR or source IP ranges.
SystemData Pulumi.AzureNative.Network.Outputs.SystemDataResponse
The system metadata related to this resource.
Type string
Resource type.
Flag string
Default rule flag.
AzureApiVersion string
The Azure API version of the resource.
Description string
A description for this rule. Restricted to 140 chars.
DestinationPortRanges []string
The destination port ranges.
Destinations []AddressPrefixItemResponse
The destination address prefixes. CIDR or destination IP ranges.
Direction string
Indicates if the traffic matched against the rule in inbound or outbound.
Etag string
A unique read-only string that changes whenever the resource is updated.
Id string
Resource ID.
Name string
Resource name.
Protocol string
Network protocol this rule applies to.
ProvisioningState string
The provisioning state of the security configuration user rule resource.
SourcePortRanges []string
The source port ranges.
Sources []AddressPrefixItemResponse
The CIDR or source IP ranges.
SystemData SystemDataResponse
The system metadata related to this resource.
Type string
Resource type.
Flag string
Default rule flag.
azureApiVersion String
The Azure API version of the resource.
description String
A description for this rule. Restricted to 140 chars.
destinationPortRanges List<String>
The destination port ranges.
destinations List<AddressPrefixItemResponse>
The destination address prefixes. CIDR or destination IP ranges.
direction String
Indicates if the traffic matched against the rule in inbound or outbound.
etag String
A unique read-only string that changes whenever the resource is updated.
id String
Resource ID.
name String
Resource name.
protocol String
Network protocol this rule applies to.
provisioningState String
The provisioning state of the security configuration user rule resource.
sourcePortRanges List<String>
The source port ranges.
sources List<AddressPrefixItemResponse>
The CIDR or source IP ranges.
systemData SystemDataResponse
The system metadata related to this resource.
type String
Resource type.
flag String
Default rule flag.
azureApiVersion string
The Azure API version of the resource.
description string
A description for this rule. Restricted to 140 chars.
destinationPortRanges string[]
The destination port ranges.
destinations AddressPrefixItemResponse[]
The destination address prefixes. CIDR or destination IP ranges.
direction string
Indicates if the traffic matched against the rule in inbound or outbound.
etag string
A unique read-only string that changes whenever the resource is updated.
id string
Resource ID.
name string
Resource name.
protocol string
Network protocol this rule applies to.
provisioningState string
The provisioning state of the security configuration user rule resource.
sourcePortRanges string[]
The source port ranges.
sources AddressPrefixItemResponse[]
The CIDR or source IP ranges.
systemData SystemDataResponse
The system metadata related to this resource.
type string
Resource type.
flag string
Default rule flag.
azure_api_version str
The Azure API version of the resource.
description str
A description for this rule. Restricted to 140 chars.
destination_port_ranges Sequence[str]
The destination port ranges.
destinations Sequence[AddressPrefixItemResponse]
The destination address prefixes. CIDR or destination IP ranges.
direction str
Indicates if the traffic matched against the rule in inbound or outbound.
etag str
A unique read-only string that changes whenever the resource is updated.
id str
Resource ID.
name str
Resource name.
protocol str
Network protocol this rule applies to.
provisioning_state str
The provisioning state of the security configuration user rule resource.
source_port_ranges Sequence[str]
The source port ranges.
sources Sequence[AddressPrefixItemResponse]
The CIDR or source IP ranges.
system_data SystemDataResponse
The system metadata related to this resource.
type str
Resource type.
flag str
Default rule flag.
azureApiVersion String
The Azure API version of the resource.
description String
A description for this rule. Restricted to 140 chars.
destinationPortRanges List<String>
The destination port ranges.
destinations List<Property Map>
The destination address prefixes. CIDR or destination IP ranges.
direction String
Indicates if the traffic matched against the rule in inbound or outbound.
etag String
A unique read-only string that changes whenever the resource is updated.
id String
Resource ID.
name String
Resource name.
protocol String
Network protocol this rule applies to.
provisioningState String
The provisioning state of the security configuration user rule resource.
sourcePortRanges List<String>
The source port ranges.
sources List<Property Map>
The CIDR or source IP ranges.
systemData Property Map
The system metadata related to this resource.
type String
Resource type.
flag String
Default rule flag.

Supporting Types

AddressPrefixItemResponse

AddressPrefix string
Address prefix.
AddressPrefixType string
Address prefix type.
AddressPrefix string
Address prefix.
AddressPrefixType string
Address prefix type.
addressPrefix String
Address prefix.
addressPrefixType String
Address prefix type.
addressPrefix string
Address prefix.
addressPrefixType string
Address prefix type.
address_prefix str
Address prefix.
address_prefix_type str
Address prefix type.
addressPrefix String
Address prefix.
addressPrefixType String
Address prefix type.

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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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 type of identity that last modified the resource.
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