These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.network.getVirtualNetworkPeering
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Gets the specified virtual network peering. API Version: 2020-11-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.
- 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.
- Remote
Address Pulumi.Space Azure Native. Network. Outputs. Address Space Response - The reference to the remote virtual network address space.
- 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).
- 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.
- 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.
- Remote
Address AddressSpace Space Response - The reference to the remote virtual network address space.
- 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).
- 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.
- 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.
- remote
Address AddressSpace Space Response - The reference to the remote virtual network address space.
- 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).
- 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.
- 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.
- remote
Address AddressSpace Space Response - The reference to the remote virtual network address space.
- 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).
- 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.
- 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.
- remote_
address_ Addressspace Space Response - The reference to the remote virtual network address space.
- 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).
- 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.
- 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.
- remote
Address Property MapSpace - The reference to the remote virtual network address space.
- 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).
- 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.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi