Show / Hide Table of Contents

Class NetworkSecurityRuleArgs

Inheritance
System.Object
InputArgs
ResourceArgs
NetworkSecurityRuleArgs
Inherited Members
ResourceArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Network
Assembly: Pulumi.Azure.dll
Syntax
public sealed class NetworkSecurityRuleArgs : ResourceArgs

Constructors

View Source

NetworkSecurityRuleArgs()

Declaration
public NetworkSecurityRuleArgs()

Properties

View Source

Access

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>
View Source

Description

A description for this rule. Restricted to 140 characters.

Declaration
public Input<string> Description { get; set; }
Property Value
Type Description
Input<System.String>
View Source

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>
View Source

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>
View Source

DestinationApplicationSecurityGroupIds

A List of destination Application Security Group ID's

Declaration
public Input<string> DestinationApplicationSecurityGroupIds { get; set; }
Property Value
Type Description
Input<System.String>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

SourceApplicationSecurityGroupIds

A List of source Application Security Group ID's

Declaration
public Input<string> SourceApplicationSecurityGroupIds { get; set; }
Property Value
Type Description
Input<System.String>
View Source

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>
View Source

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>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.