This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
azure-native.network.getVirtualNetworkPeering
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
Gets the specified virtual network peering. Azure REST API version: 2023-02-01.
Other available API versions: 2019-06-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01.
Using getVirtualNetworkPeering
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualNetworkPeering(args: GetVirtualNetworkPeeringArgs, opts?: InvokeOptions): Promise<GetVirtualNetworkPeeringResult>
function getVirtualNetworkPeeringOutput(args: GetVirtualNetworkPeeringOutputArgs, opts?: InvokeOptions): Output<GetVirtualNetworkPeeringResult>
def get_virtual_network_peering(resource_group_name: Optional[str] = None,
virtual_network_name: Optional[str] = None,
virtual_network_peering_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualNetworkPeeringResult
def get_virtual_network_peering_output(resource_group_name: Optional[pulumi.Input[str]] = None,
virtual_network_name: Optional[pulumi.Input[str]] = None,
virtual_network_peering_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualNetworkPeeringResult]
func LookupVirtualNetworkPeering(ctx *Context, args *LookupVirtualNetworkPeeringArgs, opts ...InvokeOption) (*LookupVirtualNetworkPeeringResult, error)
func LookupVirtualNetworkPeeringOutput(ctx *Context, args *LookupVirtualNetworkPeeringOutputArgs, opts ...InvokeOption) LookupVirtualNetworkPeeringResultOutput
> Note: This function is named LookupVirtualNetworkPeering
in the Go SDK.
public static class GetVirtualNetworkPeering
{
public static Task<GetVirtualNetworkPeeringResult> InvokeAsync(GetVirtualNetworkPeeringArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualNetworkPeeringResult> Invoke(GetVirtualNetworkPeeringInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVirtualNetworkPeeringResult> getVirtualNetworkPeering(GetVirtualNetworkPeeringArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:network:getVirtualNetworkPeering
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Group stringName - The name of the resource group.
- Virtual
Network stringName - The name of the virtual network.
- Virtual
Network stringPeering Name - The name of the virtual network peering.
- Resource
Group stringName - The name of the resource group.
- Virtual
Network stringName - The name of the virtual network.
- Virtual
Network stringPeering Name - The name of the virtual network peering.
- resource
Group StringName - The name of the resource group.
- virtual
Network StringName - The name of the virtual network.
- virtual
Network StringPeering Name - The name of the virtual network peering.
- resource
Group stringName - The name of the resource group.
- virtual
Network stringName - The name of the virtual network.
- virtual
Network stringPeering Name - The name of the virtual network peering.
- resource_
group_ strname - The name of the resource group.
- virtual_
network_ strname - The name of the virtual network.
- virtual_
network_ strpeering_ name - The name of the virtual network peering.
- resource
Group StringName - The name of the resource group.
- virtual
Network StringName - The name of the virtual network.
- virtual
Network StringPeering Name - The name of the virtual network peering.
getVirtualNetworkPeering Result
The following output properties are available:
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Provisioning
State string - The provisioning state of the virtual network peering resource.
- Remote
Virtual Pulumi.Network Encryption Azure Native. Network. Outputs. Virtual Network Encryption Response - The reference to the remote virtual network's encryption
- Resource
Guid string - The resourceGuid property of the Virtual Network peering resource.
- Allow
Forwarded boolTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
- Allow
Gateway boolTransit - If gateway links can be used in remote virtual networking to link to this virtual network.
- Allow
Virtual boolNetwork Access - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
- Do
Not boolVerify Remote Gateways - If we need to verify the provisioning state of the remote gateway.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Peering
State string - The status of the virtual network peering.
- Peering
Sync stringLevel - The peering sync status of the virtual network peering.
- Remote
Address Pulumi.Space Azure Native. Network. Outputs. Address Space Response - The reference to the address space peered with the remote virtual network.
- Remote
Bgp Pulumi.Communities Azure Native. Network. Outputs. Virtual Network Bgp Communities Response - The reference to the remote virtual network's Bgp Communities.
- Remote
Virtual Pulumi.Network Azure Native. Network. Outputs. Sub Resource Response - 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).
- Remote
Virtual Pulumi.Network Address Space Azure Native. Network. Outputs. Address Space Response - The reference to the current address space of the remote virtual network.
- Type string
- Resource type.
- Use
Remote boolGateways - 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.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Provisioning
State string - The provisioning state of the virtual network peering resource.
- Remote
Virtual VirtualNetwork Encryption Network Encryption Response - The reference to the remote virtual network's encryption
- Resource
Guid string - The resourceGuid property of the Virtual Network peering resource.
- Allow
Forwarded boolTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
- Allow
Gateway boolTransit - If gateway links can be used in remote virtual networking to link to this virtual network.
- Allow
Virtual boolNetwork Access - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
- Do
Not boolVerify Remote Gateways - If we need to verify the provisioning state of the remote gateway.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Peering
State string - The status of the virtual network peering.
- Peering
Sync stringLevel - The peering sync status of the virtual network peering.
- Remote
Address AddressSpace Space Response - The reference to the address space peered with the remote virtual network.
- Remote
Bgp VirtualCommunities Network Bgp Communities Response - The reference to the remote virtual network's Bgp Communities.
- Remote
Virtual SubNetwork Resource Response - 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).
- Remote
Virtual AddressNetwork Address Space Space Response - The reference to the current address space of the remote virtual network.
- Type string
- Resource type.
- Use
Remote boolGateways - 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.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- provisioning
State String - The provisioning state of the virtual network peering resource.
- remote
Virtual VirtualNetwork Encryption Network Encryption Response - The reference to the remote virtual network's encryption
- resource
Guid String - The resourceGuid property of the Virtual Network peering resource.
- allow
Forwarded BooleanTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
- allow
Gateway BooleanTransit - If gateway links can be used in remote virtual networking to link to this virtual network.
- allow
Virtual BooleanNetwork Access - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
- do
Not BooleanVerify Remote Gateways - If we need to verify the provisioning state of the remote gateway.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- peering
State String - The status of the virtual network peering.
- peering
Sync StringLevel - The peering sync status of the virtual network peering.
- remote
Address AddressSpace Space Response - The reference to the address space peered with the remote virtual network.
- remote
Bgp VirtualCommunities Network Bgp Communities Response - The reference to the remote virtual network's Bgp Communities.
- remote
Virtual SubNetwork Resource Response - 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).
- remote
Virtual AddressNetwork Address Space Space Response - The reference to the current address space of the remote virtual network.
- type String
- Resource type.
- use
Remote BooleanGateways - 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.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- provisioning
State string - The provisioning state of the virtual network peering resource.
- remote
Virtual VirtualNetwork Encryption Network Encryption Response - The reference to the remote virtual network's encryption
- resource
Guid string - The resourceGuid property of the Virtual Network peering resource.
- allow
Forwarded booleanTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
- allow
Gateway booleanTransit - If gateway links can be used in remote virtual networking to link to this virtual network.
- allow
Virtual booleanNetwork Access - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
- do
Not booleanVerify Remote Gateways - If we need to verify the provisioning state of the remote gateway.
- id string
- Resource ID.
- name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- peering
State string - The status of the virtual network peering.
- peering
Sync stringLevel - The peering sync status of the virtual network peering.
- remote
Address AddressSpace Space Response - The reference to the address space peered with the remote virtual network.
- remote
Bgp VirtualCommunities Network Bgp Communities Response - The reference to the remote virtual network's Bgp Communities.
- remote
Virtual SubNetwork Resource Response - 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).
- remote
Virtual AddressNetwork Address Space Space Response - The reference to the current address space of the remote virtual network.
- type string
- Resource type.
- use
Remote booleanGateways - 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.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- provisioning_
state str - The provisioning state of the virtual network peering resource.
- remote_
virtual_ Virtualnetwork_ encryption Network Encryption Response - The reference to the remote virtual network's encryption
- resource_
guid str - The resourceGuid property of the Virtual Network peering resource.
- allow_
forwarded_ booltraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
- allow_
gateway_ booltransit - If gateway links can be used in remote virtual networking to link to this virtual network.
- allow_
virtual_ boolnetwork_ access - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
- do_
not_ boolverify_ remote_ gateways - If we need to verify the provisioning state of the remote gateway.
- id str
- Resource ID.
- name str
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- peering_
state str - The status of the virtual network peering.
- peering_
sync_ strlevel - The peering sync status of the virtual network peering.
- remote_
address_ Addressspace Space Response - The reference to the address space peered with the remote virtual network.
- remote_
bgp_ Virtualcommunities Network Bgp Communities Response - The reference to the remote virtual network's Bgp Communities.
- remote_
virtual_ Subnetwork Resource Response - 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).
- remote_
virtual_ Addressnetwork_ address_ space Space Response - The reference to the current address space of the remote virtual network.
- type str
- Resource type.
- use_
remote_ boolgateways - 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.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- provisioning
State String - The provisioning state of the virtual network peering resource.
- remote
Virtual Property MapNetwork Encryption - The reference to the remote virtual network's encryption
- resource
Guid String - The resourceGuid property of the Virtual Network peering resource.
- allow
Forwarded BooleanTraffic - Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network.
- allow
Gateway BooleanTransit - If gateway links can be used in remote virtual networking to link to this virtual network.
- allow
Virtual BooleanNetwork Access - Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space.
- do
Not BooleanVerify Remote Gateways - If we need to verify the provisioning state of the remote gateway.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- peering
State String - The status of the virtual network peering.
- peering
Sync StringLevel - The peering sync status of the virtual network peering.
- remote
Address Property MapSpace - The reference to the address space peered with the remote virtual network.
- remote
Bgp Property MapCommunities - The reference to the remote virtual network's Bgp Communities.
- remote
Virtual Property MapNetwork - 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).
- remote
Virtual Property MapNetwork Address Space - The reference to the current address space of the remote virtual network.
- type String
- Resource type.
- use
Remote BooleanGateways - 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.
Supporting Types
AddressSpaceResponse
- Address
Prefixes List<string> - A list of address blocks reserved for this virtual network in CIDR notation.
- Address
Prefixes []string - A list of address blocks reserved for this virtual network in CIDR notation.
- address
Prefixes List<String> - A list of address blocks reserved for this virtual network in CIDR notation.
- address
Prefixes string[] - A list of address blocks reserved for this virtual network in CIDR notation.
- address_
prefixes Sequence[str] - A list of address blocks reserved for this virtual network in CIDR notation.
- address
Prefixes List<String> - A list of address blocks reserved for this virtual network in CIDR notation.
SubResourceResponse
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
VirtualNetworkBgpCommunitiesResponse
- Regional
Community string - The BGP community associated with the region of the virtual network.
- Virtual
Network stringCommunity - The BGP community associated with the virtual network.
- Regional
Community string - The BGP community associated with the region of the virtual network.
- Virtual
Network stringCommunity - The BGP community associated with the virtual network.
- regional
Community String - The BGP community associated with the region of the virtual network.
- virtual
Network StringCommunity - The BGP community associated with the virtual network.
- regional
Community string - The BGP community associated with the region of the virtual network.
- virtual
Network stringCommunity - The BGP community associated with the virtual network.
- regional_
community str - The BGP community associated with the region of the virtual network.
- virtual_
network_ strcommunity - The BGP community associated with the virtual network.
- regional
Community String - The BGP community associated with the region of the virtual network.
- virtual
Network StringCommunity - The BGP community associated with the virtual network.
VirtualNetworkEncryptionResponse
- Enabled bool
- Indicates if encryption is enabled on the virtual network.
- Enforcement string
- If the encrypted VNet allows VM that does not support encryption
- Enabled bool
- Indicates if encryption is enabled on the virtual network.
- Enforcement string
- If the encrypted VNet allows VM that does not support encryption
- enabled Boolean
- Indicates if encryption is enabled on the virtual network.
- enforcement String
- If the encrypted VNet allows VM that does not support encryption
- enabled boolean
- Indicates if encryption is enabled on the virtual network.
- enforcement string
- If the encrypted VNet allows VM that does not support encryption
- enabled bool
- Indicates if encryption is enabled on the virtual network.
- enforcement str
- If the encrypted VNet allows VM that does not support encryption
- enabled Boolean
- Indicates if encryption is enabled on the virtual network.
- enforcement String
- If the encrypted VNet allows VM that does not support encryption
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi