Class NetworkSecurityRuleState
Inherited Members
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public sealed class NetworkSecurityRuleState : ResourceArgs
Constructors
View SourceNetworkSecurityRuleState()
Declaration
public NetworkSecurityRuleState()
Properties
View SourceAccess
Specifies whether network traffic is allowed or denied. Possible values are Allow and Deny.
Declaration
public Input<string> Access { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Description
A description for this rule. Restricted to 140 characters.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DestinationAddressPrefix
CIDR or destination IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. This is required if destination_address_prefixes is not specified.
Declaration
public Input<string> DestinationAddressPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DestinationAddressPrefixes
List of destination address prefixes. Tags may not be used. This is required if destination_address_prefix is not specified.
Declaration
public InputList<string> DestinationAddressPrefixes { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
DestinationApplicationSecurityGroupIds
A List of destination Application Security Group ID's
Declaration
public Input<string> DestinationApplicationSecurityGroupIds { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DestinationPortRange
Destination Port or Range. Integer or range between 0 and 65535 or * to match any. This is required if destination_port_ranges is not specified.
Declaration
public Input<string> DestinationPortRange { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DestinationPortRanges
List of destination ports or port ranges. This is required if destination_port_range is not specified.
Declaration
public InputList<string> DestinationPortRanges { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Direction
The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values are Inbound and Outbound.
Declaration
public Input<string> Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
The name of the security rule. This needs to be unique across all Rules in the Network Security Group. Changing this forces a new resource to be created.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NetworkSecurityGroupName
The name of the Network Security Group that we want to attach the rule to. Changing this forces a new resource to be created.
Declaration
public Input<string> NetworkSecurityGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Priority
Specifies 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.
Declaration
public Input<int> Priority { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Protocol
Network protocol this rule applies to. Possible values include Tcp, Udp, Icmp, or * (which matches all).
Declaration
public Input<string> Protocol { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ResourceGroupName
The name of the resource group in which to create the Network Security Rule. Changing this forces a new resource to be created.
Declaration
public Input<string> ResourceGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourceAddressPrefix
CIDR or source IP range or * to match any IP. Tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. This is required if source_address_prefixes is not specified.
Declaration
public Input<string> SourceAddressPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourceAddressPrefixes
List of source address prefixes. Tags may not be used. This is required if source_address_prefix is not specified.
Declaration
public InputList<string> SourceAddressPrefixes { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
SourceApplicationSecurityGroupIds
A List of source Application Security Group ID's
Declaration
public Input<string> SourceApplicationSecurityGroupIds { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourcePortRange
Source Port or Range. Integer or range between 0 and 65535 or * to match any. This is required if source_port_ranges is not specified.
Declaration
public Input<string> SourcePortRange { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourcePortRanges
List of source ports or port ranges. This is required if source_port_range is not specified.
Declaration
public InputList<string> SourcePortRanges { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |