Share via


HciVmSecurityRuleProperties Class

Definition

Security rule resource.

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

Constructors

HciVmSecurityRuleProperties(HciVmSecurityRuleProtocol, HciVmSecurityRuleAccess, Int32, HciVmSecurityRuleDirection)

Initializes a new instance of HciVmSecurityRuleProperties.

Properties

Access

The network traffic is allowed or denied.

Description

A description for this rule. Restricted to 140 chars.

DestinationAddressPrefixes

The destination address prefixes. CIDR or destination IP ranges.

DestinationPortRanges

The destination port ranges. 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.

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.

Protocol

Network protocol this rule applies to.

ProvisioningState

Provisioning state of the SR.

SourceAddressPrefixes

The CIDR or source IP ranges.

SourcePortRanges

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<HciVmSecurityRuleProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<HciVmSecurityRuleProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<HciVmSecurityRuleProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<HciVmSecurityRuleProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<HciVmSecurityRuleProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to