These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.network.getSecurityRule
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Get the specified network security rule. API Version: 2020-11-01.
Using getSecurityRule
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 getSecurityRule(args: GetSecurityRuleArgs, opts?: InvokeOptions): Promise<GetSecurityRuleResult>
function getSecurityRuleOutput(args: GetSecurityRuleOutputArgs, opts?: InvokeOptions): Output<GetSecurityRuleResult>
def get_security_rule(network_security_group_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
security_rule_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSecurityRuleResult
def get_security_rule_output(network_security_group_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
security_rule_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSecurityRuleResult]
func LookupSecurityRule(ctx *Context, args *LookupSecurityRuleArgs, opts ...InvokeOption) (*LookupSecurityRuleResult, error)
func LookupSecurityRuleOutput(ctx *Context, args *LookupSecurityRuleOutputArgs, opts ...InvokeOption) LookupSecurityRuleResultOutput
> Note: This function is named LookupSecurityRule
in the Go SDK.
public static class GetSecurityRule
{
public static Task<GetSecurityRuleResult> InvokeAsync(GetSecurityRuleArgs args, InvokeOptions? opts = null)
public static Output<GetSecurityRuleResult> Invoke(GetSecurityRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSecurityRuleResult> getSecurityRule(GetSecurityRuleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:network:getSecurityRule
arguments:
# arguments dictionary
The following arguments are supported:
- Network
Security stringGroup Name - The name of the network security group.
- Resource
Group stringName - The name of the resource group.
- Security
Rule stringName - The name of the security rule.
- Network
Security stringGroup Name - The name of the network security group.
- Resource
Group stringName - The name of the resource group.
- Security
Rule stringName - The name of the security rule.
- network
Security StringGroup Name - The name of the network security group.
- resource
Group StringName - The name of the resource group.
- security
Rule StringName - The name of the security rule.
- network
Security stringGroup Name - The name of the network security group.
- resource
Group stringName - The name of the resource group.
- security
Rule stringName - The name of the security rule.
- network_
security_ strgroup_ name - The name of the network security group.
- resource_
group_ strname - The name of the resource group.
- security_
rule_ strname - The name of the security rule.
- network
Security StringGroup Name - The name of the network security group.
- resource
Group StringName - The name of the resource group.
- security
Rule StringName - The name of the security rule.
getSecurityRule Result
The following output properties are available:
- Access string
- The network traffic is allowed or denied.
- Direction string
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Protocol string
- Network protocol this rule applies to.
- Provisioning
State string - The provisioning state of the security rule resource.
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Address stringPrefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- Destination
Address List<string>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- Destination
Application List<Pulumi.Security Groups Azure Native. Network. Outputs. Application Security Group Response> - The application security group specified as destination.
- Destination
Port stringRange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Destination
Port List<string>Ranges - The destination port ranges.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- Source
Address stringPrefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- Source
Address List<string>Prefixes - The CIDR or source IP ranges.
- Source
Application List<Pulumi.Security Groups Azure Native. Network. Outputs. Application Security Group Response> - The application security group specified as source.
- Source
Port stringRange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Source
Port List<string>Ranges - The source port ranges.
- Type string
- The type of the resource.
- Access string
- The network traffic is allowed or denied.
- Direction string
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Protocol string
- Network protocol this rule applies to.
- Provisioning
State string - The provisioning state of the security rule resource.
- Description string
- A description for this rule. Restricted to 140 chars.
- Destination
Address stringPrefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- Destination
Address []stringPrefixes - The destination address prefixes. CIDR or destination IP ranges.
- Destination
Application []ApplicationSecurity Groups Security Group Response - The application security group specified as destination.
- Destination
Port stringRange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Destination
Port []stringRanges - The destination port ranges.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- Source
Address stringPrefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- Source
Address []stringPrefixes - The CIDR or source IP ranges.
- Source
Application []ApplicationSecurity Groups Security Group Response - The application security group specified as source.
- Source
Port stringRange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- Source
Port []stringRanges - The source port ranges.
- Type string
- The type of the resource.
- access String
- The network traffic is allowed or denied.
- direction String
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- protocol String
- Network protocol this rule applies to.
- provisioning
State String - The provisioning state of the security rule resource.
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Address StringPrefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- destination
Address List<String>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Application List<ApplicationSecurity Groups Security Group Response> - The application security group specified as destination.
- destination
Port StringRange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- destination
Port List<String>Ranges - The destination port ranges.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- priority Integer
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- source
Address StringPrefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- source
Address List<String>Prefixes - The CIDR or source IP ranges.
- source
Application List<ApplicationSecurity Groups Security Group Response> - The application security group specified as source.
- source
Port StringRange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- source
Port List<String>Ranges - The source port ranges.
- type String
- The type of the resource.
- access string
- The network traffic is allowed or denied.
- direction string
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- protocol string
- Network protocol this rule applies to.
- provisioning
State string - The provisioning state of the security rule resource.
- description string
- A description for this rule. Restricted to 140 chars.
- destination
Address stringPrefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- destination
Address string[]Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Application ApplicationSecurity Groups Security Group Response[] - The application security group specified as destination.
- destination
Port stringRange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- destination
Port string[]Ranges - The destination port ranges.
- id string
- Resource ID.
- name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- priority number
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- source
Address stringPrefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- source
Address string[]Prefixes - The CIDR or source IP ranges.
- source
Application ApplicationSecurity Groups Security Group Response[] - The application security group specified as source.
- source
Port stringRange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- source
Port string[]Ranges - The source port ranges.
- type string
- The type of the resource.
- access str
- The network traffic is allowed or denied.
- direction str
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- protocol str
- Network protocol this rule applies to.
- provisioning_
state str - The provisioning state of the security rule resource.
- description str
- A description for this rule. Restricted to 140 chars.
- destination_
address_ strprefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- destination_
address_ Sequence[str]prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination_
application_ Sequence[Applicationsecurity_ groups Security Group Response] - The application security group specified as destination.
- destination_
port_ strrange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- destination_
port_ Sequence[str]ranges - The destination port ranges.
- id str
- Resource ID.
- name str
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- priority int
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- source_
address_ strprefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- source_
address_ Sequence[str]prefixes - The CIDR or source IP ranges.
- source_
application_ Sequence[Applicationsecurity_ groups Security Group Response] - The application security group specified as source.
- source_
port_ strrange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- source_
port_ Sequence[str]ranges - The source port ranges.
- type str
- The type of the resource.
- access String
- The network traffic is allowed or denied.
- direction String
- The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- protocol String
- Network protocol this rule applies to.
- provisioning
State String - The provisioning state of the security rule resource.
- description String
- A description for this rule. Restricted to 140 chars.
- destination
Address StringPrefix - The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
- destination
Address List<String>Prefixes - The destination address prefixes. CIDR or destination IP ranges.
- destination
Application List<Property Map>Security Groups - The application security group specified as destination.
- destination
Port StringRange - The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- destination
Port List<String>Ranges - The destination port ranges.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- priority Number
- The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
- source
Address StringPrefix - The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
- source
Address List<String>Prefixes - The CIDR or source IP ranges.
- source
Application List<Property Map>Security Groups - The application security group specified as source.
- source
Port StringRange - The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
- source
Port List<String>Ranges - The source port ranges.
- type String
- The type of the resource.
Supporting Types
ApplicationSecurityGroupResponse
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the application security group resource.
- Resource
Guid string - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- Type string
- Resource type.
- Id string
- Resource ID.
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Provisioning
State string - The provisioning state of the application security group resource.
- Resource
Guid string - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- Type string
- Resource type.
- Id string
- Resource ID.
- Location string
- Resource location.
- map[string]string
- Resource tags.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the application security group resource.
- resource
Guid String - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type String
- Resource type.
- id String
- Resource ID.
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- provisioning
State string - The provisioning state of the application security group resource.
- resource
Guid string - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type string
- Resource type.
- id string
- Resource ID.
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- name str
- Resource name.
- provisioning_
state str - The provisioning state of the application security group resource.
- resource_
guid str - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type str
- Resource type.
- id str
- Resource ID.
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- provisioning
State String - The provisioning state of the application security group resource.
- resource
Guid String - The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
- type String
- Resource type.
- id String
- Resource ID.
- location String
- Resource location.
- Map<String>
- Resource tags.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi