GetVirtualNetworkGateway
Use this data source to access information about an existing Virtual Network Gateway.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetVirtualNetworkGateway.InvokeAsync(new Azure.Network.GetVirtualNetworkGatewayArgs
{
Name = "production",
ResourceGroupName = "networking",
}));
this.VirtualNetworkGatewayId = example.Apply(example => example.Id);
}
[Output("virtualNetworkGatewayId")]
public Output<string> VirtualNetworkGatewayId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := network.LookupVirtualNetworkGateway(ctx, &network.LookupVirtualNetworkGatewayArgs{
Name: "production",
ResourceGroupName: "networking",
}, nil)
if err != nil {
return err
}
ctx.Export("virtualNetworkGatewayId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.network.get_virtual_network_gateway(name="production",
resource_group_name="networking")
pulumi.export("virtualNetworkGatewayId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.network.getVirtualNetworkGateway({
name: "production",
resourceGroupName: "networking",
});
export const virtualNetworkGatewayId = example.then(example => example.id);Using GetVirtualNetworkGateway
function getVirtualNetworkGateway(args: GetVirtualNetworkGatewayArgs, opts?: InvokeOptions): Promise<GetVirtualNetworkGatewayResult>function get_virtual_network_gateway(name=None, resource_group_name=None, opts=None)func LookupVirtualNetworkGateway(ctx *Context, args *LookupVirtualNetworkGatewayArgs, opts ...InvokeOption) (*LookupVirtualNetworkGatewayResult, error)Note: This function is named
LookupVirtualNetworkGatewayin the Go SDK.
public static class GetVirtualNetworkGateway {
public static Task<GetVirtualNetworkGatewayResult> InvokeAsync(GetVirtualNetworkGatewayArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Virtual Network Gateway.
- Resource
Group stringName Specifies the name of the resource group the Virtual Network Gateway is located in.
- Name string
Specifies the name of the Virtual Network Gateway.
- Resource
Group stringName Specifies the name of the resource group the Virtual Network Gateway is located in.
- name string
Specifies the name of the Virtual Network Gateway.
- resource
Group stringName Specifies the name of the resource group the Virtual Network Gateway is located in.
- name str
Specifies the name of the Virtual Network Gateway.
- resource_
group_ strname Specifies the name of the resource group the Virtual Network Gateway is located in.
GetVirtualNetworkGateway Result
The following output properties are available:
- Active
Active bool Is this an Active-Active Gateway?
- Bgp
Settings List<GetVirtual Network Gateway Bgp Setting> - Default
Local stringNetwork Gateway Id The ID of the local network gateway through which outbound Internet traffic from the virtual network in which the gateway is created will be routed (forced tunneling). Refer to the Azure documentation on forced tunneling.
- Enable
Bgp bool Will BGP (Border Gateway Protocol) will be enabled for this Virtual Network Gateway.
- Generation string
The Generation of the Virtual Network Gateway.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Configurations List<GetVirtual Network Gateway Ip Configuration> One or two
ip_configurationblocks documented below.- Location string
The location/region where the Virtual Network Gateway is located.
- Name string
The user-defined name of the revoked certificate.
- Resource
Group stringName - Sku string
Configuration of the size and capacity of the Virtual Network Gateway.
- Dictionary<string, string>
A mapping of tags assigned to the resource.
- Type string
The type of the Virtual Network Gateway.
- Vpn
Client List<GetConfigurations Virtual Network Gateway Vpn Client Configuration> A
vpn_client_configurationblock which is documented below.- Vpn
Type string The routing type of the Virtual Network Gateway.
- Active
Active bool Is this an Active-Active Gateway?
- Bgp
Settings []GetVirtual Network Gateway Bgp Setting - Default
Local stringNetwork Gateway Id The ID of the local network gateway through which outbound Internet traffic from the virtual network in which the gateway is created will be routed (forced tunneling). Refer to the Azure documentation on forced tunneling.
- Enable
Bgp bool Will BGP (Border Gateway Protocol) will be enabled for this Virtual Network Gateway.
- Generation string
The Generation of the Virtual Network Gateway.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Configurations []GetVirtual Network Gateway Ip Configuration One or two
ip_configurationblocks documented below.- Location string
The location/region where the Virtual Network Gateway is located.
- Name string
The user-defined name of the revoked certificate.
- Resource
Group stringName - Sku string
Configuration of the size and capacity of the Virtual Network Gateway.
- map[string]string
A mapping of tags assigned to the resource.
- Type string
The type of the Virtual Network Gateway.
- Vpn
Client []GetConfigurations Virtual Network Gateway Vpn Client Configuration A
vpn_client_configurationblock which is documented below.- Vpn
Type string The routing type of the Virtual Network Gateway.
- active
Active boolean Is this an Active-Active Gateway?
- bgp
Settings GetVirtual Network Gateway Bgp Setting[] - default
Local stringNetwork Gateway Id The ID of the local network gateway through which outbound Internet traffic from the virtual network in which the gateway is created will be routed (forced tunneling). Refer to the Azure documentation on forced tunneling.
- enable
Bgp boolean Will BGP (Border Gateway Protocol) will be enabled for this Virtual Network Gateway.
- generation string
The Generation of the Virtual Network Gateway.
- id string
The provider-assigned unique ID for this managed resource.
- ip
Configurations GetVirtual Network Gateway Ip Configuration[] One or two
ip_configurationblocks documented below.- location string
The location/region where the Virtual Network Gateway is located.
- name string
The user-defined name of the revoked certificate.
- resource
Group stringName - sku string
Configuration of the size and capacity of the Virtual Network Gateway.
- {[key: string]: string}
A mapping of tags assigned to the resource.
- type string
The type of the Virtual Network Gateway.
- vpn
Client GetConfigurations Virtual Network Gateway Vpn Client Configuration[] A
vpn_client_configurationblock which is documented below.- vpn
Type string The routing type of the Virtual Network Gateway.
- active_
active bool Is this an Active-Active Gateway?
- bgp_
settings List[GetVirtual Network Gateway Bgp Setting] - default_
local_ strnetwork_ gateway_ id The ID of the local network gateway through which outbound Internet traffic from the virtual network in which the gateway is created will be routed (forced tunneling). Refer to the Azure documentation on forced tunneling.
- enable_
bgp bool Will BGP (Border Gateway Protocol) will be enabled for this Virtual Network Gateway.
- generation str
The Generation of the Virtual Network Gateway.
- id str
The provider-assigned unique ID for this managed resource.
- ip_
configurations List[GetVirtual Network Gateway Ip Configuration] One or two
ip_configurationblocks documented below.- location str
The location/region where the Virtual Network Gateway is located.
- name str
The user-defined name of the revoked certificate.
- resource_
group_ strname - sku str
Configuration of the size and capacity of the Virtual Network Gateway.
- Dict[str, str]
A mapping of tags assigned to the resource.
- type str
The type of the Virtual Network Gateway.
- vpn_
client_ List[Getconfigurations Virtual Network Gateway Vpn Client Configuration] A
vpn_client_configurationblock which is documented below.- vpn_
type str The routing type of the Virtual Network Gateway.
Supporting Types
GetVirtualNetworkGatewayBgpSetting
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Asn int
The Autonomous System Number (ASN) to use as part of the BGP.
- Peer
Weight int The weight added to routes which have been learned through BGP peering.
- Peering
Address string The BGP peer IP address of the virtual network gateway. This address is needed to configure the created gateway as a BGP Peer on the on-premises VPN devices.
- Asn int
The Autonomous System Number (ASN) to use as part of the BGP.
- Peer
Weight int The weight added to routes which have been learned through BGP peering.
- Peering
Address string The BGP peer IP address of the virtual network gateway. This address is needed to configure the created gateway as a BGP Peer on the on-premises VPN devices.
- asn number
The Autonomous System Number (ASN) to use as part of the BGP.
- peer
Weight number The weight added to routes which have been learned through BGP peering.
- peering
Address string The BGP peer IP address of the virtual network gateway. This address is needed to configure the created gateway as a BGP Peer on the on-premises VPN devices.
- asn float
The Autonomous System Number (ASN) to use as part of the BGP.
- peer
Weight float The weight added to routes which have been learned through BGP peering.
- peering
Address str The BGP peer IP address of the virtual network gateway. This address is needed to configure the created gateway as a BGP Peer on the on-premises VPN devices.
GetVirtualNetworkGatewayIpConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Name string
Specifies the name of the Virtual Network Gateway.
- Private
Ip stringAddress Allocation Defines how the private IP address of the gateways virtual interface is assigned.
- Public
Ip stringAddress Id The ID of the Public IP Address associated with the Virtual Network Gateway.
- Subnet
Id string The ID of the gateway subnet of a virtual network in which the virtual network gateway will be created. It is mandatory that the associated subnet is named
GatewaySubnet. Therefore, each virtual network can contain at most a single Virtual Network Gateway.
- Name string
Specifies the name of the Virtual Network Gateway.
- Private
Ip stringAddress Allocation Defines how the private IP address of the gateways virtual interface is assigned.
- Public
Ip stringAddress Id The ID of the Public IP Address associated with the Virtual Network Gateway.
- Subnet
Id string The ID of the gateway subnet of a virtual network in which the virtual network gateway will be created. It is mandatory that the associated subnet is named
GatewaySubnet. Therefore, each virtual network can contain at most a single Virtual Network Gateway.
- name string
Specifies the name of the Virtual Network Gateway.
- private
Ip stringAddress Allocation Defines how the private IP address of the gateways virtual interface is assigned.
- public
Ip stringAddress Id The ID of the Public IP Address associated with the Virtual Network Gateway.
- subnet
Id string The ID of the gateway subnet of a virtual network in which the virtual network gateway will be created. It is mandatory that the associated subnet is named
GatewaySubnet. Therefore, each virtual network can contain at most a single Virtual Network Gateway.
- name str
Specifies the name of the Virtual Network Gateway.
- private
Ip strAddress Allocation Defines how the private IP address of the gateways virtual interface is assigned.
- public_
ip_ straddress_ id The ID of the Public IP Address associated with the Virtual Network Gateway.
- subnet_
id str The ID of the gateway subnet of a virtual network in which the virtual network gateway will be created. It is mandatory that the associated subnet is named
GatewaySubnet. Therefore, each virtual network can contain at most a single Virtual Network Gateway.
GetVirtualNetworkGatewayVpnClientConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Address
Spaces List<string> The address space out of which ip addresses for vpn clients will be taken. You can provide more than one address space, e.g. in CIDR notation.
- Radius
Server stringAddress The address of the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- Radius
Server stringSecret The secret used by the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- Revoked
Certificates List<GetVirtual Network Gateway Vpn Client Configuration Revoked Certificate Args> One or more
revoked_certificateblocks which are defined below.- Root
Certificates List<GetVirtual Network Gateway Vpn Client Configuration Root Certificate Args> One or more
root_certificateblocks which are defined below. These root certificates are used to sign the client certificate used by the VPN clients to connect to the gateway.- Vpn
Client List<string>Protocols List of the protocols supported by the vpn client. The supported values are
SSTP,IkeV2andOpenVPN.
- Address
Spaces []string The address space out of which ip addresses for vpn clients will be taken. You can provide more than one address space, e.g. in CIDR notation.
- Radius
Server stringAddress The address of the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- Radius
Server stringSecret The secret used by the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- Revoked
Certificates []GetVirtual Network Gateway Vpn Client Configuration Revoked Certificate One or more
revoked_certificateblocks which are defined below.- Root
Certificates []GetVirtual Network Gateway Vpn Client Configuration Root Certificate One or more
root_certificateblocks which are defined below. These root certificates are used to sign the client certificate used by the VPN clients to connect to the gateway.- Vpn
Client []stringProtocols List of the protocols supported by the vpn client. The supported values are
SSTP,IkeV2andOpenVPN.
- address
Spaces string[] The address space out of which ip addresses for vpn clients will be taken. You can provide more than one address space, e.g. in CIDR notation.
- radius
Server stringAddress The address of the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- radius
Server stringSecret The secret used by the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- revoked
Certificates GetVirtual Network Gateway Vpn Client Configuration Revoked Certificate[] One or more
revoked_certificateblocks which are defined below.- root
Certificates GetVirtual Network Gateway Vpn Client Configuration Root Certificate[] One or more
root_certificateblocks which are defined below. These root certificates are used to sign the client certificate used by the VPN clients to connect to the gateway.- vpn
Client string[]Protocols List of the protocols supported by the vpn client. The supported values are
SSTP,IkeV2andOpenVPN.
- address_
spaces List[str] The address space out of which ip addresses for vpn clients will be taken. You can provide more than one address space, e.g. in CIDR notation.
- radius
Server strAddress The address of the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- radius
Server strSecret The secret used by the Radius server. This setting is incompatible with the use of
root_certificateandrevoked_certificate.- revoked
Certificates List[GetVirtual Network Gateway Vpn Client Configuration Revoked Certificate] One or more
revoked_certificateblocks which are defined below.- root
Certificates List[GetVirtual Network Gateway Vpn Client Configuration Root Certificate] One or more
root_certificateblocks which are defined below. These root certificates are used to sign the client certificate used by the VPN clients to connect to the gateway.- vpn
Client List[str]Protocols List of the protocols supported by the vpn client. The supported values are
SSTP,IkeV2andOpenVPN.
GetVirtualNetworkGatewayVpnClientConfigurationRevokedCertificate
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Name string
Specifies the name of the Virtual Network Gateway.
- Thumbprint string
- Name string
Specifies the name of the Virtual Network Gateway.
- Thumbprint string
- name string
Specifies the name of the Virtual Network Gateway.
- thumbprint string
- name str
Specifies the name of the Virtual Network Gateway.
- thumbprint str
GetVirtualNetworkGatewayVpnClientConfigurationRootCertificate
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Name string
Specifies the name of the Virtual Network Gateway.
- Public
Cert stringData The SHA1 thumbprint of the certificate to be revoked.
- Name string
Specifies the name of the Virtual Network Gateway.
- Public
Cert stringData The SHA1 thumbprint of the certificate to be revoked.
- name string
Specifies the name of the Virtual Network Gateway.
- public
Cert stringData The SHA1 thumbprint of the certificate to be revoked.
- name str
Specifies the name of the Virtual Network Gateway.
- public
Cert strData The SHA1 thumbprint of the certificate to be revoked.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.