Share via


RecommendedSecurityRule Class

Definition

Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked.

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

Constructors

RecommendedSecurityRule()

Initializes a new instance of RecommendedSecurityRule.

Properties

DestinationPort

The rule's destination port.

Direction

The rule's direction.

IPAddresses

The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol.

Name

The name of the rule.

Protocols

The rule's transport protocols.

Explicit Interface Implementations

IJsonModel<RecommendedSecurityRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<RecommendedSecurityRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<RecommendedSecurityRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<RecommendedSecurityRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<RecommendedSecurityRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to