published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
Gets a security user rule.
Uses Azure REST API version 2024-05-01.
Other available API versions: 2024-03-01, 2024-07-01, 2024-10-01, 2025-01-01, 2025-03-01, 2025-05-01, 2025-07-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.
Using getSecurityUserRule
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 getSecurityUserRule(args: GetSecurityUserRuleArgs, opts?: InvokeOptions): Promise<GetSecurityUserRuleResult>
function getSecurityUserRuleOutput(args: GetSecurityUserRuleOutputArgs, opts?: InvokeOptions): Output<GetSecurityUserRuleResult>def get_security_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) -> GetSecurityUserRuleResult
def get_security_user_rule_output(configuration_name: pulumi.Input[Optional[str]] = None,
network_manager_name: pulumi.Input[Optional[str]] = None,
resource_group_name: pulumi.Input[Optional[str]] = None,
rule_collection_name: pulumi.Input[Optional[str]] = None,
rule_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityUserRuleResult]func LookupSecurityUserRule(ctx *Context, args *LookupSecurityUserRuleArgs, opts ...InvokeOption) (*LookupSecurityUserRuleResult, error)
func LookupSecurityUserRuleOutput(ctx *Context, args *LookupSecurityUserRuleOutputArgs, opts ...InvokeOption) LookupSecurityUserRuleResultOutput> Note: This function is named LookupSecurityUserRule in the Go SDK.
public static class GetSecurityUserRule
{
public static Task<GetSecurityUserRuleResult> InvokeAsync(GetSecurityUserRuleArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityUserRuleResult> Invoke(GetSecurityUserRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSecurityUserRuleResult> getSecurityUserRule(GetSecurityUserRuleArgs args, InvokeOptions options)
public static Output<GetSecurityUserRuleResult> getSecurityUserRule(GetSecurityUserRuleArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:network:getSecurityUserRule
arguments:
# arguments dictionarydata "azure-native_network_get_security_user_rule" "name" {
# arguments
}The following arguments are supported:
- Configuration
Name string - The name of the network manager Security Configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Collection stringName - The name of the network manager security Configuration rule collection.
- Rule
Name string - The name of the rule.
- Configuration
Name string - The name of the network manager Security Configuration.
- Network
Manager stringName - The name of the network manager.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Rule
Collection stringName - The name of the network manager security Configuration rule collection.
- Rule
Name string - The name of the rule.
- configuration_
name string - The name of the network manager Security Configuration.
- network_
manager_ stringname - The name of the network manager.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- rule_
collection_ stringname - The name of the network manager security Configuration rule collection.
- rule_
name string - The name of the rule.
- configuration
Name String - The name of the network manager Security Configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Collection StringName - The name of the network manager security Configuration rule collection.
- rule
Name String - The name of the rule.
- configuration
Name string - The name of the network manager Security Configuration.
- network
Manager stringName - The name of the network manager.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- rule
Collection stringName - The name of the network manager security Configuration rule collection.
- rule
Name string - The name of the rule.
- configuration_
name str - The name of the network manager Security Configuration.
- network_
manager_ strname - The name of the network manager.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- rule_
collection_ strname - The name of the network manager security Configuration rule collection.
- rule_
name str - The name of the rule.
- configuration
Name String - The name of the network manager Security Configuration.
- network
Manager StringName - The name of the network manager.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- rule
Collection StringName - The name of the network manager security Configuration rule collection.
- rule
Name String - The name of the rule.
getSecurityUserRule Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- 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.
- Provisioning
State string - The provisioning state of the security configuration user rule resource.
- Resource
Guid string - Unique identifier for this resource.
- System
Data Pulumi.Azure Native. Network. Outputs. System Data Response - The system metadata related to this resource.
- Type string
- Resource type.
- Description string
- A description for this rule.
- Destination
Port List<string>Ranges - The destination port ranges.
- Destinations
List<Pulumi.
Azure Native. Network. Outputs. Address Prefix Item Response> - The destination address prefixes. CIDR or destination IP ranges.
- Source
Port List<string>Ranges - The source port ranges.
- Sources
List<Pulumi.
Azure Native. Network. Outputs. Address Prefix Item Response> - The CIDR or source IP ranges.
- Azure
Api stringVersion - The Azure API version of the resource.
- 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.
- Provisioning
State string - The provisioning state of the security configuration user rule resource.
- Resource
Guid string - Unique identifier for this resource.
- System
Data SystemData Response - The system metadata related to this resource.
- Type string
- Resource type.
- Description string
- A description for this rule.
- Destination
Port []stringRanges - The destination port ranges.
- Destinations
[]Address
Prefix Item Response - The destination address prefixes. CIDR or destination IP ranges.
- Source
Port []stringRanges - The source port ranges.
- Sources
[]Address
Prefix Item Response - The CIDR or source IP ranges.
- azure_
api_ stringversion - The Azure API version of the resource.
- 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.
- provisioning_
state string - The provisioning state of the security configuration user rule resource.
- resource_
guid string - Unique identifier for this resource.
- system_
data object - The system metadata related to this resource.
- type string
- Resource type.
- description string
- A description for this rule.
- destination_
port_ list(string)ranges - The destination port ranges.
- destinations list(object)
- The destination address prefixes. CIDR or destination IP ranges.
- source_
port_ list(string)ranges - The source port ranges.
- sources list(object)
- The CIDR or source IP ranges.
- azure
Api StringVersion - The Azure API version of the resource.
- 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.
- provisioning
State String - The provisioning state of the security configuration user rule resource.
- resource
Guid String - Unique identifier for this resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type String
- Resource type.
- description String
- A description for this rule.
- destination
Port List<String>Ranges - The destination port ranges.
- destinations
List<Address
Prefix Item Response> - The destination address prefixes. CIDR or destination IP ranges.
- source
Port List<String>Ranges - The source port ranges.
- sources
List<Address
Prefix Item Response> - The CIDR or source IP ranges.
- azure
Api stringVersion - The Azure API version of the resource.
- 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.
- provisioning
State string - The provisioning state of the security configuration user rule resource.
- resource
Guid string - Unique identifier for this resource.
- system
Data SystemData Response - The system metadata related to this resource.
- type string
- Resource type.
- description string
- A description for this rule.
- destination
Port string[]Ranges - The destination port ranges.
- destinations
Address
Prefix Item Response[] - The destination address prefixes. CIDR or destination IP ranges.
- source
Port string[]Ranges - The source port ranges.
- sources
Address
Prefix Item Response[] - The CIDR or source IP ranges.
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- resource_
guid str - Unique identifier for this resource.
- system_
data SystemData Response - The system metadata related to this resource.
- type str
- Resource type.
- description str
- A description for this rule.
- destination_
port_ Sequence[str]ranges - The destination port ranges.
- destinations
Sequence[Address
Prefix Item Response] - The destination address prefixes. CIDR or destination IP ranges.
- source_
port_ Sequence[str]ranges - The source port ranges.
- sources
Sequence[Address
Prefix Item Response] - The CIDR or source IP ranges.
- azure
Api StringVersion - The Azure API version of the resource.
- 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.
- provisioning
State String - The provisioning state of the security configuration user rule resource.
- resource
Guid String - Unique identifier for this resource.
- system
Data Property Map - The system metadata related to this resource.
- type String
- Resource type.
- description String
- A description for this rule.
- destination
Port List<String>Ranges - The destination port ranges.
- destinations List<Property Map>
- The destination address prefixes. CIDR or destination IP ranges.
- source
Port List<String>Ranges - The source port ranges.
- sources List<Property Map>
- The CIDR or source IP ranges.
Supporting Types
AddressPrefixItemResponse
- Address
Prefix string - Address prefix.
- Address
Prefix stringType - Address prefix type.
- Address
Prefix string - Address prefix.
- Address
Prefix stringType - Address prefix type.
- address_
prefix string - Address prefix.
- address_
prefix_ stringtype - Address prefix type.
- address
Prefix String - Address prefix.
- address
Prefix StringType - Address prefix type.
- address
Prefix string - Address prefix.
- address
Prefix stringType - Address prefix type.
- address_
prefix str - Address prefix.
- address_
prefix_ strtype - Address prefix type.
- address
Prefix String - Address prefix.
- address
Prefix StringType - Address prefix type.
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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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 type of identity that last modified the resource.
- 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
published on Wednesday, Aug 5, 2026 by Pulumi