Compartir a través de


ArmNetworkModelFactory.NetworkDefaultAdminRule Método

Definición

Inicializa una nueva instancia de NetworkDefaultAdminRule.

public static Azure.ResourceManager.Network.Models.NetworkDefaultAdminRule NetworkDefaultAdminRule (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ETag? etag = default, string description = default, string flag = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? protocol = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AddressPrefixItem> sources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AddressPrefixItem> destinations = default, System.Collections.Generic.IEnumerable<string> sourcePortRanges = default, System.Collections.Generic.IEnumerable<string> destinationPortRanges = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess? access = default, int? priority = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? direction = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, Guid? resourceGuid = default);
static member NetworkDefaultAdminRule : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * string * string * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol> * seq<Azure.ResourceManager.Network.Models.AddressPrefixItem> * seq<Azure.ResourceManager.Network.Models.AddressPrefixItem> * seq<string> * seq<string> * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleAccess> * Nullable<int> * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<Guid> -> Azure.ResourceManager.Network.Models.NetworkDefaultAdminRule
Public Shared Function NetworkDefaultAdminRule (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional description As String = Nothing, Optional flag As String = Nothing, Optional protocol As Nullable(Of SecurityConfigurationRuleProtocol) = Nothing, Optional sources As IEnumerable(Of AddressPrefixItem) = Nothing, Optional destinations As IEnumerable(Of AddressPrefixItem) = Nothing, Optional sourcePortRanges As IEnumerable(Of String) = Nothing, Optional destinationPortRanges As IEnumerable(Of String) = Nothing, Optional access As Nullable(Of SecurityConfigurationRuleAccess) = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional direction As Nullable(Of SecurityConfigurationRuleDirection) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing) As NetworkDefaultAdminRule

Parámetros

id
ResourceIdentifier

El identificador.

name
String

Nombre.

resourceType
ResourceType

ResourceType.

systemData
SystemData

SystemData.

etag
Nullable<ETag>

Cadena de solo lectura única que cambia cada vez que se actualiza el recurso.

description
String

Una descripción para esta regla. Restringido a 140 caracteres.

flag
String

Marca de regla predeterminada.

protocol
Nullable<SecurityConfigurationRuleProtocol>

El protocolo de red al que se aplica esta regla.

sources
IEnumerable<AddressPrefixItem>

Los intervalos CIDR o IP de origen.

destinations
IEnumerable<AddressPrefixItem>

Prefijos de dirección de destino. CIDR o intervalos IP de destino.

sourcePortRanges
IEnumerable<String>

Intervalos de puertos de origen.

destinationPortRanges
IEnumerable<String>

Intervalos de puertos de destino.

access
Nullable<SecurityConfigurationRuleAccess>

Indica el acceso permitido para esta regla en particular.

priority
Nullable<Int32>

Prioridad de la regla. El valor puede estar comprendido entre 1 y 4096. El número de prioridad debe ser único para cada regla de la colección. Cuanto menor sea el número de prioridad, mayor será la prioridad de la regla.

direction
Nullable<SecurityConfigurationRuleDirection>

Indica si el tráfico coincide con la regla de entrada o salida.

provisioningState
Nullable<NetworkProvisioningState>

Estado de aprovisionamiento del recurso.

resourceGuid
Nullable<Guid>

Identificador único de este recurso.

Devoluciones

NetworkDefaultAdminRule Nueva instancia de para simular.

Se aplica a