SecurityRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Network security rule.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SecurityRuleTypeConverter))]
public class SecurityRule : Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISecurityRule, Microsoft.Azure.PowerShell.Cmdlets.CloudService.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.SecurityRuleTypeConverter))>]
type SecurityRule = class
interface ISecurityRule
interface IJsonSerializable
interface ISubResourceAutoGenerated
interface IValidates
Public Class SecurityRule
Implements ISecurityRule, IValidates
- Inheritance
-
SecurityRule
- Attributes
- Implements
Constructors
SecurityRule() |
Creates an new SecurityRule instance. |
Properties
Access |
The network traffic is allowed or denied. |
Description |
A description for this rule. Restricted to 140 chars. |
DestinationAddressPrefix |
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. |
DestinationApplicationSecurityGroup |
The application security group specified as destination. |
DestinationPortRange |
The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. |
Direction |
The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic. |
Etag |
A unique read-only string that changes whenever the resource is updated. |
Id |
Resource ID. |
Name |
The name of the resource that is unique within a resource group. This name can be used to access the resource. |
Priority |
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. |
PropertiesDestinationAddressPrefixes |
The destination address prefixes. CIDR or destination IP ranges. |
PropertiesDestinationPortRanges |
The destination port ranges. |
PropertiesSourceAddressPrefixes |
The CIDR or source IP ranges. |
PropertiesSourcePortRanges |
The source port ranges. |
Protocol |
Network protocol this rule applies to. |
ProvisioningState |
The provisioning state of the security rule resource. |
SourceAddressPrefix |
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. |
SourceApplicationSecurityGroup |
The application security group specified as source. |
SourcePortRange |
The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. |
Type |
The type of the resource. |
Methods
DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of SecurityRule. |
DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of SecurityRule. |
FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.CloudService.Models.Api20210301.ISecurityRule. |
FromJsonString(String) |
Creates a new instance of SecurityRule, deserializing the content from a json string. |
ToJson(JsonObject, SerializationMode) |
Serializes this instance of SecurityRule into a JsonNode. |
ToJsonString() |
Serializes this instance to a json string. |
Validate(IEventListener) |
Validates that this object meets the validation criteria. |