次の方法で共有


SecurityRule Class

Definition

Network security rule.

[Microsoft.Rest.Serialization.JsonTransformation]
public class SecurityRule : Microsoft.Azure.PowerShell.Cmdlets.Websites.Helper.Network.Models.SubResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SecurityRule = class
    inherit SubResource
Public Class SecurityRule
Inherits SubResource
Inheritance
SecurityRule
Attributes

Constructors

SecurityRule()

Initializes a new instance of the SecurityRule class.

SecurityRule(String, String, String, String, String, String, String, String, IList<String>, IList<ApplicationSecurityGroup>, String, IList<String>, IList<ApplicationSecurityGroup>, IList<String>, IList<String>, Nullable<Int32>, String, String, String)

Initializes a new instance of the SecurityRule class.

Properties

Access

Gets or sets the network traffic is allowed or denied. Possible values include: 'Allow', 'Deny'

Description

Gets or sets a description for this rule. Restricted to 140 chars.

DestinationAddressPrefix

Gets or sets 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.

DestinationAddressPrefixes

Gets or sets the destination address prefixes. CIDR or destination IP ranges.

DestinationApplicationSecurityGroups

Gets or sets the application security group specified as destination.

DestinationPortRange

Gets or sets the destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

DestinationPortRanges

Gets or sets the destination port ranges.

Direction

Gets or sets the direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. Possible values include: 'Inbound', 'Outbound'

Etag

Gets a unique read-only string that changes whenever the resource is updated.

Id

Gets or sets resource ID.

(Inherited from SubResource)
Name

Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource.

Priority

Gets or sets 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.

Protocol

Gets or sets network protocol this rule applies to. Possible values include: 'Tcp', 'Udp', 'Icmp', 'Esp', '*', 'Ah'

ProvisioningState

Gets the provisioning state of the security rule resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

SourceAddressPrefix

Gets or sets 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.

SourceAddressPrefixes

Gets or sets the CIDR or source IP ranges.

SourceApplicationSecurityGroups

Gets or sets the application security group specified as source.

SourcePortRange

Gets or sets the source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.

SourcePortRanges

Gets or sets the source port ranges.

Methods

Validate()

Validate the object.

Applies to