다음을 통해 공유


ArmNetworkModelFactory.VirtualNetworkPeeringData Method

Definition

Overloads

VirtualNetworkPeeringData(ResourceIdentifier, String, Nullable<ResourceType>, Nullable<ETag>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ResourceIdentifier, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, Nullable<VirtualNetworkPeeringState>, Nullable<VirtualNetworkPeeringLevel>, Nullable<NetworkProvisioningState>, Nullable<Boolean>, Nullable<Guid>, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, IEnumerable<String>)

Initializes a new instance of VirtualNetworkPeeringData.

VirtualNetworkPeeringData(ResourceIdentifier, String, Nullable<ResourceType>, Nullable<ETag>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ResourceIdentifier, VirtualNetworkAddressSpace, VirtualNetworkAddressSpace, VirtualNetworkAddressSpace, VirtualNetworkAddressSpace, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, Nullable<VirtualNetworkPeeringState>, Nullable<VirtualNetworkPeeringLevel>, Nullable<NetworkProvisioningState>, Nullable<Boolean>, Nullable<Guid>, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, IEnumerable<String>)

Initializes a new instance of VirtualNetworkPeeringData.

VirtualNetworkPeeringData(ResourceIdentifier, String, Nullable<ResourceType>, Nullable<ETag>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ResourceIdentifier, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, Nullable<VirtualNetworkPeeringState>, Nullable<VirtualNetworkPeeringLevel>, Nullable<NetworkProvisioningState>, Nullable<Boolean>, Nullable<Guid>, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, IEnumerable<String>)

Source:
ArmNetworkModelFactory.cs
Source:
ArmNetworkModelFactory.cs

Initializes a new instance of VirtualNetworkPeeringData.

public static Azure.ResourceManager.Network.VirtualNetworkPeeringData VirtualNetworkPeeringData (Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType? resourceType, Azure.ETag? etag, bool? allowVirtualNetworkAccess, bool? allowForwardedTraffic, bool? allowGatewayTransit, bool? useRemoteGateways, Azure.Core.ResourceIdentifier remoteVirtualNetworkId, System.Collections.Generic.IEnumerable<string> localAddressPrefixes, System.Collections.Generic.IEnumerable<string> localVirtualNetworkAddressPrefixes, System.Collections.Generic.IEnumerable<string> remoteAddressPrefixes, System.Collections.Generic.IEnumerable<string> remoteVirtualNetworkAddressPrefixes, Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities remoteBgpCommunities, Azure.ResourceManager.Network.Models.VirtualNetworkEncryption remoteVirtualNetworkEncryption, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState? peeringState, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel? peeringSyncLevel, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState, bool? doNotVerifyRemoteGateways, Guid? resourceGuid, bool? areCompleteVnetsPeered, bool? enableOnlyIPv6Peering, System.Collections.Generic.IEnumerable<string> localSubnetNames, System.Collections.Generic.IEnumerable<string> remoteSubnetNames);
public static Azure.ResourceManager.Network.VirtualNetworkPeeringData VirtualNetworkPeeringData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, bool? allowVirtualNetworkAccess = default, bool? allowForwardedTraffic = default, bool? allowGatewayTransit = default, bool? useRemoteGateways = default, Azure.Core.ResourceIdentifier remoteVirtualNetworkId = default, System.Collections.Generic.IEnumerable<string> localAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> localVirtualNetworkAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> remoteAddressPrefixes = default, System.Collections.Generic.IEnumerable<string> remoteVirtualNetworkAddressPrefixes = default, Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities remoteBgpCommunities = default, Azure.ResourceManager.Network.Models.VirtualNetworkEncryption remoteVirtualNetworkEncryption = default, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState? peeringState = default, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel? peeringSyncLevel = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, bool? doNotVerifyRemoteGateways = default, Guid? resourceGuid = default, bool? areCompleteVnetsPeered = default, bool? enableOnlyIPv6Peering = default, System.Collections.Generic.IEnumerable<string> localSubnetNames = default, System.Collections.Generic.IEnumerable<string> remoteSubnetNames = default);
static member VirtualNetworkPeeringData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * seq<string> * seq<string> * seq<string> * seq<string> * Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities * Azure.ResourceManager.Network.Models.VirtualNetworkEncryption * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<bool> * Nullable<Guid> * Nullable<bool> * Nullable<bool> * seq<string> * seq<string> -> Azure.ResourceManager.Network.VirtualNetworkPeeringData
Public Shared Function VirtualNetworkPeeringData (id As ResourceIdentifier, name As String, resourceType As Nullable(Of ResourceType), etag As Nullable(Of ETag), allowVirtualNetworkAccess As Nullable(Of Boolean), allowForwardedTraffic As Nullable(Of Boolean), allowGatewayTransit As Nullable(Of Boolean), useRemoteGateways As Nullable(Of Boolean), remoteVirtualNetworkId As ResourceIdentifier, localAddressPrefixes As IEnumerable(Of String), localVirtualNetworkAddressPrefixes As IEnumerable(Of String), remoteAddressPrefixes As IEnumerable(Of String), remoteVirtualNetworkAddressPrefixes As IEnumerable(Of String), remoteBgpCommunities As VirtualNetworkBgpCommunities, remoteVirtualNetworkEncryption As VirtualNetworkEncryption, peeringState As Nullable(Of VirtualNetworkPeeringState), peeringSyncLevel As Nullable(Of VirtualNetworkPeeringLevel), provisioningState As Nullable(Of NetworkProvisioningState), doNotVerifyRemoteGateways As Nullable(Of Boolean), resourceGuid As Nullable(Of Guid), areCompleteVnetsPeered As Nullable(Of Boolean), enableOnlyIPv6Peering As Nullable(Of Boolean), localSubnetNames As IEnumerable(Of String), remoteSubnetNames As IEnumerable(Of String)) As VirtualNetworkPeeringData
Public Shared Function VirtualNetworkPeeringData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional allowVirtualNetworkAccess As Nullable(Of Boolean) = Nothing, Optional allowForwardedTraffic As Nullable(Of Boolean) = Nothing, Optional allowGatewayTransit As Nullable(Of Boolean) = Nothing, Optional useRemoteGateways As Nullable(Of Boolean) = Nothing, Optional remoteVirtualNetworkId As ResourceIdentifier = Nothing, Optional localAddressPrefixes As IEnumerable(Of String) = Nothing, Optional localVirtualNetworkAddressPrefixes As IEnumerable(Of String) = Nothing, Optional remoteAddressPrefixes As IEnumerable(Of String) = Nothing, Optional remoteVirtualNetworkAddressPrefixes As IEnumerable(Of String) = Nothing, Optional remoteBgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional remoteVirtualNetworkEncryption As VirtualNetworkEncryption = Nothing, Optional peeringState As Nullable(Of VirtualNetworkPeeringState) = Nothing, Optional peeringSyncLevel As Nullable(Of VirtualNetworkPeeringLevel) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional doNotVerifyRemoteGateways As Nullable(Of Boolean) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional areCompleteVnetsPeered As Nullable(Of Boolean) = Nothing, Optional enableOnlyIPv6Peering As Nullable(Of Boolean) = Nothing, Optional localSubnetNames As IEnumerable(Of String) = Nothing, Optional remoteSubnetNames As IEnumerable(Of String) = Nothing) As VirtualNetworkPeeringData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

allowVirtualNetworkAccess
Nullable<Boolean>

Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.

allowForwardedTraffic
Nullable<Boolean>

Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.

allowGatewayTransit
Nullable<Boolean>

If gateway links can be used in remote virtual networking to link to this virtual network.

useRemoteGateways
Nullable<Boolean>

If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.

remoteVirtualNetworkId
ResourceIdentifier

The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).

localAddressPrefixes
IEnumerable<String>

The local address space of the local virtual network that is peered.

localVirtualNetworkAddressPrefixes
IEnumerable<String>

The current local address space of the local virtual network that is peered.

remoteAddressPrefixes
IEnumerable<String>

The reference to the address space peered with the remote virtual network.

remoteVirtualNetworkAddressPrefixes
IEnumerable<String>

The reference to the current address space of the remote virtual network.

remoteBgpCommunities
VirtualNetworkBgpCommunities

The reference to the remote virtual network's Bgp Communities.

remoteVirtualNetworkEncryption
VirtualNetworkEncryption

The reference to the remote virtual network's encryption.

peeringState
Nullable<VirtualNetworkPeeringState>

The status of the virtual network peering.

peeringSyncLevel
Nullable<VirtualNetworkPeeringLevel>

The peering sync status of the virtual network peering.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the virtual network peering resource.

doNotVerifyRemoteGateways
Nullable<Boolean>

If we need to verify the provisioning state of the remote gateway.

resourceGuid
Nullable<Guid>

The resourceGuid property of the Virtual Network peering resource.

areCompleteVnetsPeered
Nullable<Boolean>

Whether complete virtual network address space is peered.

enableOnlyIPv6Peering
Nullable<Boolean>

Whether only Ipv6 address space is peered for subnet peering.

localSubnetNames
IEnumerable<String>

List of local subnet names that are subnet peered with remote virtual network.

remoteSubnetNames
IEnumerable<String>

List of remote subnet names from remote virtual network that are subnet peered.

Returns

A new VirtualNetworkPeeringData instance for mocking.

Applies to

VirtualNetworkPeeringData(ResourceIdentifier, String, Nullable<ResourceType>, Nullable<ETag>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ResourceIdentifier, VirtualNetworkAddressSpace, VirtualNetworkAddressSpace, VirtualNetworkAddressSpace, VirtualNetworkAddressSpace, VirtualNetworkBgpCommunities, VirtualNetworkEncryption, Nullable<VirtualNetworkPeeringState>, Nullable<VirtualNetworkPeeringLevel>, Nullable<NetworkProvisioningState>, Nullable<Boolean>, Nullable<Guid>, Nullable<Boolean>, Nullable<Boolean>, IEnumerable<String>, IEnumerable<String>)

Source:
ArmNetworkModelFactory.cs

Initializes a new instance of VirtualNetworkPeeringData.

public static Azure.ResourceManager.Network.VirtualNetworkPeeringData VirtualNetworkPeeringData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, bool? allowVirtualNetworkAccess = default, bool? allowForwardedTraffic = default, bool? allowGatewayTransit = default, bool? useRemoteGateways = default, Azure.Core.ResourceIdentifier remoteVirtualNetworkId = default, Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace localAddressSpace = default, Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace localVirtualNetworkAddressSpace = default, Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace remoteAddressSpace = default, Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace remoteVirtualNetworkAddressSpace = default, Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities remoteBgpCommunities = default, Azure.ResourceManager.Network.Models.VirtualNetworkEncryption remoteVirtualNetworkEncryption = default, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState? peeringState = default, Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel? peeringSyncLevel = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, bool? doNotVerifyRemoteGateways = default, Guid? resourceGuid = default, bool? areCompleteVnetsPeered = default, bool? enableOnlyIPv6Peering = default, System.Collections.Generic.IEnumerable<string> localSubnetNames = default, System.Collections.Generic.IEnumerable<string> remoteSubnetNames = default);
static member VirtualNetworkPeeringData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace * Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace * Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace * Azure.ResourceManager.Network.Models.VirtualNetworkAddressSpace * Azure.ResourceManager.Network.Models.VirtualNetworkBgpCommunities * Azure.ResourceManager.Network.Models.VirtualNetworkEncryption * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPeeringState> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkPeeringLevel> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<bool> * Nullable<Guid> * Nullable<bool> * Nullable<bool> * seq<string> * seq<string> -> Azure.ResourceManager.Network.VirtualNetworkPeeringData
Public Shared Function VirtualNetworkPeeringData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional allowVirtualNetworkAccess As Nullable(Of Boolean) = Nothing, Optional allowForwardedTraffic As Nullable(Of Boolean) = Nothing, Optional allowGatewayTransit As Nullable(Of Boolean) = Nothing, Optional useRemoteGateways As Nullable(Of Boolean) = Nothing, Optional remoteVirtualNetworkId As ResourceIdentifier = Nothing, Optional localAddressSpace As VirtualNetworkAddressSpace = Nothing, Optional localVirtualNetworkAddressSpace As VirtualNetworkAddressSpace = Nothing, Optional remoteAddressSpace As VirtualNetworkAddressSpace = Nothing, Optional remoteVirtualNetworkAddressSpace As VirtualNetworkAddressSpace = Nothing, Optional remoteBgpCommunities As VirtualNetworkBgpCommunities = Nothing, Optional remoteVirtualNetworkEncryption As VirtualNetworkEncryption = Nothing, Optional peeringState As Nullable(Of VirtualNetworkPeeringState) = Nothing, Optional peeringSyncLevel As Nullable(Of VirtualNetworkPeeringLevel) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional doNotVerifyRemoteGateways As Nullable(Of Boolean) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional areCompleteVnetsPeered As Nullable(Of Boolean) = Nothing, Optional enableOnlyIPv6Peering As Nullable(Of Boolean) = Nothing, Optional localSubnetNames As IEnumerable(Of String) = Nothing, Optional remoteSubnetNames As IEnumerable(Of String) = Nothing) As VirtualNetworkPeeringData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

allowVirtualNetworkAccess
Nullable<Boolean>

Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.

allowForwardedTraffic
Nullable<Boolean>

Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.

allowGatewayTransit
Nullable<Boolean>

If gateway links can be used in remote virtual networking to link to this virtual network.

useRemoteGateways
Nullable<Boolean>

If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.

remoteVirtualNetworkId
ResourceIdentifier

The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).

localAddressSpace
VirtualNetworkAddressSpace

The local address space of the local virtual network that is peered.

localVirtualNetworkAddressSpace
VirtualNetworkAddressSpace

The current local address space of the local virtual network that is peered.

remoteAddressSpace
VirtualNetworkAddressSpace

The reference to the address space peered with the remote virtual network.

remoteVirtualNetworkAddressSpace
VirtualNetworkAddressSpace

The reference to the current address space of the remote virtual network.

remoteBgpCommunities
VirtualNetworkBgpCommunities

The reference to the remote virtual network's Bgp Communities.

remoteVirtualNetworkEncryption
VirtualNetworkEncryption

The reference to the remote virtual network's encryption.

peeringState
Nullable<VirtualNetworkPeeringState>

The status of the virtual network peering.

peeringSyncLevel
Nullable<VirtualNetworkPeeringLevel>

The peering sync status of the virtual network peering.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the virtual network peering resource.

doNotVerifyRemoteGateways
Nullable<Boolean>

If we need to verify the provisioning state of the remote gateway.

resourceGuid
Nullable<Guid>

The resourceGuid property of the Virtual Network peering resource.

areCompleteVnetsPeered
Nullable<Boolean>

Whether complete virtual network address space is peered.

enableOnlyIPv6Peering
Nullable<Boolean>

Whether only Ipv6 address space is peered for subnet peering.

localSubnetNames
IEnumerable<String>

List of local subnet names that are subnet peered with remote virtual network.

remoteSubnetNames
IEnumerable<String>

List of remote subnet names from remote virtual network that are subnet peered.

Returns

A new VirtualNetworkPeeringData instance for mocking.

Applies to