Share via


ServiceFabricManagedNetworkSecurityRule Class

Definition

Describes a network security rule.

public class ServiceFabricManagedNetworkSecurityRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabricManagedClusters.Models.ServiceFabricManagedNetworkSecurityRule>
type ServiceFabricManagedNetworkSecurityRule = class
    interface IJsonModel<ServiceFabricManagedNetworkSecurityRule>
    interface IPersistableModel<ServiceFabricManagedNetworkSecurityRule>
Public Class ServiceFabricManagedNetworkSecurityRule
Implements IJsonModel(Of ServiceFabricManagedNetworkSecurityRule), IPersistableModel(Of ServiceFabricManagedNetworkSecurityRule)
Inheritance
ServiceFabricManagedNetworkSecurityRule
Implements

Constructors

ServiceFabricManagedNetworkSecurityRule(String, ServiceFabricManagedNsgProtocol, ServiceFabricManagedNetworkTrafficAccess, Int32, ServiceFabricManagedNetworkSecurityRuleDirection)

Initializes a new instance of ServiceFabricManagedNetworkSecurityRule.

Properties

Access

The network traffic is allowed or denied.

Description

Network security rule description.

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.

DestinationAddressPrefixes

The destination address prefixes. CIDR or destination IP ranges.

DestinationPortRange

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

DestinationPortRanges

The destination port ranges.

Direction

Network security rule direction.

Name

Network security rule name.

Priority

The priority of the rule. The value can be in the range 1000 to 3000. Values outside this range are reserved for Service Fabric ManagerCluster Resource Provider. 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

Network protocol this rule applies to.

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.

SourceAddressPrefixes

The CIDR or source IP ranges.

SourcePortRange

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

SourcePortRanges

The source port ranges.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ServiceFabricManagedNetworkSecurityRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ServiceFabricManagedNetworkSecurityRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ServiceFabricManagedNetworkSecurityRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ServiceFabricManagedNetworkSecurityRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ServiceFabricManagedNetworkSecurityRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to