GetGatewayConnection
Use this data source to access information about an existing Virtual Network Gateway Connection.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetGatewayConnection.InvokeAsync(new Azure.Network.GetGatewayConnectionArgs
{
Name = "production",
ResourceGroupName = "networking",
}));
this.VirtualNetworkGatewayConnectionId = example.Apply(example => example.Id);
}
[Output("virtualNetworkGatewayConnectionId")]
public Output<string> VirtualNetworkGatewayConnectionId { 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.GetGatewayConnection(ctx, &network.GetGatewayConnectionArgs{
Name: "production",
ResourceGroupName: "networking",
}, nil)
if err != nil {
return err
}
ctx.Export("virtualNetworkGatewayConnectionId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.network.get_gateway_connection(name="production",
resource_group_name="networking")
pulumi.export("virtualNetworkGatewayConnectionId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.network.getGatewayConnection({
name: "production",
resourceGroupName: "networking",
});
export const virtualNetworkGatewayConnectionId = example.then(example => example.id);Using GetGatewayConnection
function getGatewayConnection(args: GetGatewayConnectionArgs, opts?: InvokeOptions): Promise<GetGatewayConnectionResult>function get_gateway_connection(name=None, resource_group_name=None, opts=None)func GetGatewayConnection(ctx *Context, args *GetGatewayConnectionArgs, opts ...InvokeOption) (*GetGatewayConnectionResult, error)public static class GetGatewayConnection {
public static Task<GetGatewayConnectionResult> InvokeAsync(GetGatewayConnectionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
Specifies the name of the Virtual Network Gateway Connection.
- Resource
Group stringName Specifies the name of the resource group the Virtual Network Gateway Connection is located in.
- Name string
Specifies the name of the Virtual Network Gateway Connection.
- Resource
Group stringName Specifies the name of the resource group the Virtual Network Gateway Connection is located in.
- name string
Specifies the name of the Virtual Network Gateway Connection.
- resource
Group stringName Specifies the name of the resource group the Virtual Network Gateway Connection is located in.
- name str
Specifies the name of the Virtual Network Gateway Connection.
- resource_
group_ strname Specifies the name of the resource group the Virtual Network Gateway Connection is located in.
GetGatewayConnection Result
The following output properties are available:
- string
The authorization key associated with the Express Route Circuit. This field is present only if the type is an ExpressRoute connection.
- Connection
Protocol string - Egress
Bytes intTransferred - Enable
Bgp bool If
true, BGP (Border Gateway Protocol) is enabled for this connection.- Express
Route stringCircuit Id The ID of the Express Route Circuit (i.e. when
typeisExpressRoute).- Express
Route boolGateway Bypass If
true, data packets will bypass ExpressRoute Gateway for data forwarding. This is only valid for ExpressRoute connections.- Id string
The provider-assigned unique ID for this managed resource.
- Ingress
Bytes intTransferred - Ipsec
Policies List<GetGateway Connection Ipsec Policy> - Local
Network stringGateway Id The ID of the local network gateway when a Site-to-Site connection (i.e. when
typeisIPsec).- Location string
The location/region where the connection is located.
- Name string
- Peer
Virtual stringNetwork Gateway Id The ID of the peer virtual network gateway when a VNet-to-VNet connection (i.e. when
typeisVnet2Vnet).- Resource
Group stringName - Resource
Guid string - Routing
Weight int The routing weight.
- string
The shared IPSec key.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Type string
The type of connection. Valid options are
IPsec(Site-to-Site),ExpressRoute(ExpressRoute), andVnet2Vnet(VNet-to-VNet).- Use
Policy boolBased Traffic Selectors If
true, policy-based traffic selectors are enabled for this connection. Enabling policy-based traffic selectors requires anipsec_policyblock.- Virtual
Network stringGateway Id The ID of the Virtual Network Gateway in which the connection is created.
- string
The authorization key associated with the Express Route Circuit. This field is present only if the type is an ExpressRoute connection.
- Connection
Protocol string - Egress
Bytes intTransferred - Enable
Bgp bool If
true, BGP (Border Gateway Protocol) is enabled for this connection.- Express
Route stringCircuit Id The ID of the Express Route Circuit (i.e. when
typeisExpressRoute).- Express
Route boolGateway Bypass If
true, data packets will bypass ExpressRoute Gateway for data forwarding. This is only valid for ExpressRoute connections.- Id string
The provider-assigned unique ID for this managed resource.
- Ingress
Bytes intTransferred - Ipsec
Policies []GetGateway Connection Ipsec Policy - Local
Network stringGateway Id The ID of the local network gateway when a Site-to-Site connection (i.e. when
typeisIPsec).- Location string
The location/region where the connection is located.
- Name string
- Peer
Virtual stringNetwork Gateway Id The ID of the peer virtual network gateway when a VNet-to-VNet connection (i.e. when
typeisVnet2Vnet).- Resource
Group stringName - Resource
Guid string - Routing
Weight int The routing weight.
- string
The shared IPSec key.
- map[string]string
A mapping of tags to assign to the resource.
- Type string
The type of connection. Valid options are
IPsec(Site-to-Site),ExpressRoute(ExpressRoute), andVnet2Vnet(VNet-to-VNet).- Use
Policy boolBased Traffic Selectors If
true, policy-based traffic selectors are enabled for this connection. Enabling policy-based traffic selectors requires anipsec_policyblock.- Virtual
Network stringGateway Id The ID of the Virtual Network Gateway in which the connection is created.
- string
The authorization key associated with the Express Route Circuit. This field is present only if the type is an ExpressRoute connection.
- connection
Protocol string - egress
Bytes numberTransferred - enable
Bgp boolean If
true, BGP (Border Gateway Protocol) is enabled for this connection.- express
Route stringCircuit Id The ID of the Express Route Circuit (i.e. when
typeisExpressRoute).- express
Route booleanGateway Bypass If
true, data packets will bypass ExpressRoute Gateway for data forwarding. This is only valid for ExpressRoute connections.- id string
The provider-assigned unique ID for this managed resource.
- ingress
Bytes numberTransferred - ipsec
Policies GetGateway Connection Ipsec Policy[] - local
Network stringGateway Id The ID of the local network gateway when a Site-to-Site connection (i.e. when
typeisIPsec).- location string
The location/region where the connection is located.
- name string
- peer
Virtual stringNetwork Gateway Id The ID of the peer virtual network gateway when a VNet-to-VNet connection (i.e. when
typeisVnet2Vnet).- resource
Group stringName - resource
Guid string - routing
Weight number The routing weight.
- string
The shared IPSec key.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- type string
The type of connection. Valid options are
IPsec(Site-to-Site),ExpressRoute(ExpressRoute), andVnet2Vnet(VNet-to-VNet).- use
Policy booleanBased Traffic Selectors If
true, policy-based traffic selectors are enabled for this connection. Enabling policy-based traffic selectors requires anipsec_policyblock.- virtual
Network stringGateway Id The ID of the Virtual Network Gateway in which the connection is created.
- str
The authorization key associated with the Express Route Circuit. This field is present only if the type is an ExpressRoute connection.
- connection_
protocol str - egress_
bytes_ floattransferred - enable_
bgp bool If
true, BGP (Border Gateway Protocol) is enabled for this connection.- express_
route_ strcircuit_ id The ID of the Express Route Circuit (i.e. when
typeisExpressRoute).- express_
route_ boolgateway_ bypass If
true, data packets will bypass ExpressRoute Gateway for data forwarding. This is only valid for ExpressRoute connections.- id str
The provider-assigned unique ID for this managed resource.
- ingress_
bytes_ floattransferred - ipsec_
policies List[GetGateway Connection Ipsec Policy] - local_
network_ strgateway_ id The ID of the local network gateway when a Site-to-Site connection (i.e. when
typeisIPsec).- location str
The location/region where the connection is located.
- name str
- peer_
virtual_ strnetwork_ gateway_ id The ID of the peer virtual network gateway when a VNet-to-VNet connection (i.e. when
typeisVnet2Vnet).- resource_
group_ strname - resource_
guid str - routing_
weight float The routing weight.
- str
The shared IPSec key.
- Dict[str, str]
A mapping of tags to assign to the resource.
- type str
The type of connection. Valid options are
IPsec(Site-to-Site),ExpressRoute(ExpressRoute), andVnet2Vnet(VNet-to-VNet).- use_
policy_ boolbased_ traffic_ selectors If
true, policy-based traffic selectors are enabled for this connection. Enabling policy-based traffic selectors requires anipsec_policyblock.- virtual_
network_ strgateway_ id The ID of the Virtual Network Gateway in which the connection is created.
Supporting Types
GetGatewayConnectionIpsecPolicy
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Dh
Group string The DH group used in IKE phase 1 for initial SA. Valid options are
DHGroup1,DHGroup14,DHGroup2,DHGroup2048,DHGroup24,ECP256,ECP384, orNone.- Ike
Encryption string The IKE encryption algorithm. Valid options are
AES128,AES192,AES256,DES, orDES3.- Ike
Integrity string The IKE integrity algorithm. Valid options are
MD5,SHA1,SHA256, orSHA384.- Ipsec
Encryption string The IPSec encryption algorithm. Valid options are
AES128,AES192,AES256,DES,DES3,GCMAES128,GCMAES192,GCMAES256, orNone.- Ipsec
Integrity string The IPSec integrity algorithm. Valid options are
GCMAES128,GCMAES192,GCMAES256,MD5,SHA1, orSHA256.- Pfs
Group string The DH group used in IKE phase 2 for new child SA. Valid options are
ECP256,ECP384,PFS1,PFS2,PFS2048,PFS24, orNone.- Sa
Datasize int The IPSec SA payload size in KB. Must be at least
1024KB.- Sa
Lifetime int The IPSec SA lifetime in seconds. Must be at least
300seconds.
- Dh
Group string The DH group used in IKE phase 1 for initial SA. Valid options are
DHGroup1,DHGroup14,DHGroup2,DHGroup2048,DHGroup24,ECP256,ECP384, orNone.- Ike
Encryption string The IKE encryption algorithm. Valid options are
AES128,AES192,AES256,DES, orDES3.- Ike
Integrity string The IKE integrity algorithm. Valid options are
MD5,SHA1,SHA256, orSHA384.- Ipsec
Encryption string The IPSec encryption algorithm. Valid options are
AES128,AES192,AES256,DES,DES3,GCMAES128,GCMAES192,GCMAES256, orNone.- Ipsec
Integrity string The IPSec integrity algorithm. Valid options are
GCMAES128,GCMAES192,GCMAES256,MD5,SHA1, orSHA256.- Pfs
Group string The DH group used in IKE phase 2 for new child SA. Valid options are
ECP256,ECP384,PFS1,PFS2,PFS2048,PFS24, orNone.- Sa
Datasize int The IPSec SA payload size in KB. Must be at least
1024KB.- Sa
Lifetime int The IPSec SA lifetime in seconds. Must be at least
300seconds.
- dh
Group string The DH group used in IKE phase 1 for initial SA. Valid options are
DHGroup1,DHGroup14,DHGroup2,DHGroup2048,DHGroup24,ECP256,ECP384, orNone.- ike
Encryption string The IKE encryption algorithm. Valid options are
AES128,AES192,AES256,DES, orDES3.- ike
Integrity string The IKE integrity algorithm. Valid options are
MD5,SHA1,SHA256, orSHA384.- ipsec
Encryption string The IPSec encryption algorithm. Valid options are
AES128,AES192,AES256,DES,DES3,GCMAES128,GCMAES192,GCMAES256, orNone.- ipsec
Integrity string The IPSec integrity algorithm. Valid options are
GCMAES128,GCMAES192,GCMAES256,MD5,SHA1, orSHA256.- pfs
Group string The DH group used in IKE phase 2 for new child SA. Valid options are
ECP256,ECP384,PFS1,PFS2,PFS2048,PFS24, orNone.- sa
Datasize number The IPSec SA payload size in KB. Must be at least
1024KB.- sa
Lifetime number The IPSec SA lifetime in seconds. Must be at least
300seconds.
- dh
Group str The DH group used in IKE phase 1 for initial SA. Valid options are
DHGroup1,DHGroup14,DHGroup2,DHGroup2048,DHGroup24,ECP256,ECP384, orNone.- ike
Encryption str The IKE encryption algorithm. Valid options are
AES128,AES192,AES256,DES, orDES3.- ike
Integrity str The IKE integrity algorithm. Valid options are
MD5,SHA1,SHA256, orSHA384.- ipsec
Encryption str The IPSec encryption algorithm. Valid options are
AES128,AES192,AES256,DES,DES3,GCMAES128,GCMAES192,GCMAES256, orNone.- ipsec
Integrity str The IPSec integrity algorithm. Valid options are
GCMAES128,GCMAES192,GCMAES256,MD5,SHA1, orSHA256.- pfs
Group str The DH group used in IKE phase 2 for new child SA. Valid options are
ECP256,ECP384,PFS1,PFS2,PFS2048,PFS24, orNone.- sa
Datasize float The IPSec SA payload size in KB. Must be at least
1024KB.- sa
Lifetime float The IPSec SA lifetime in seconds. Must be at least
300seconds.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.