outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getVpnConnection
Explore with Pulumi AI
Provides information about a VPN connection.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const vpnConnection01 = outscale.getVpnConnection({
    filters: [{
        name: "vpn_connection_ids",
        values: ["vpn-12345678"],
    }],
});
import pulumi
import pulumi_outscale as outscale
vpn_connection01 = outscale.get_vpn_connection(filters=[{
    "name": "vpn_connection_ids",
    "values": ["vpn-12345678"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupVpnConnection(ctx, &outscale.LookupVpnConnectionArgs{
			Filters: []outscale.GetVpnConnectionFilter{
				{
					Name: "vpn_connection_ids",
					Values: []string{
						"vpn-12345678",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var vpnConnection01 = Outscale.GetVpnConnection.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetVpnConnectionFilterInputArgs
            {
                Name = "vpn_connection_ids",
                Values = new[]
                {
                    "vpn-12345678",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetVpnConnectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var vpnConnection01 = OutscaleFunctions.getVpnConnection(GetVpnConnectionArgs.builder()
            .filters(GetVpnConnectionFilterArgs.builder()
                .name("vpn_connection_ids")
                .values("vpn-12345678")
                .build())
            .build());
    }
}
variables:
  vpnConnection01:
    fn::invoke:
      function: outscale:getVpnConnection
      arguments:
        filters:
          - name: vpn_connection_ids
            values:
              - vpn-12345678
Using getVpnConnection
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 getVpnConnection(args: GetVpnConnectionArgs, opts?: InvokeOptions): Promise<GetVpnConnectionResult>
function getVpnConnectionOutput(args: GetVpnConnectionOutputArgs, opts?: InvokeOptions): Output<GetVpnConnectionResult>def get_vpn_connection(filters: Optional[Sequence[GetVpnConnectionFilter]] = None,
                       id: Optional[str] = None,
                       static_routes_only: Optional[bool] = None,
                       vpn_connection_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetVpnConnectionResult
def get_vpn_connection_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVpnConnectionFilterArgs]]]] = None,
                       id: Optional[pulumi.Input[str]] = None,
                       static_routes_only: Optional[pulumi.Input[bool]] = None,
                       vpn_connection_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetVpnConnectionResult]func LookupVpnConnection(ctx *Context, args *LookupVpnConnectionArgs, opts ...InvokeOption) (*LookupVpnConnectionResult, error)
func LookupVpnConnectionOutput(ctx *Context, args *LookupVpnConnectionOutputArgs, opts ...InvokeOption) LookupVpnConnectionResultOutput> Note: This function is named LookupVpnConnection in the Go SDK.
public static class GetVpnConnection 
{
    public static Task<GetVpnConnectionResult> InvokeAsync(GetVpnConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetVpnConnectionResult> Invoke(GetVpnConnectionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpnConnectionResult> getVpnConnection(GetVpnConnectionArgs args, InvokeOptions options)
public static Output<GetVpnConnectionResult> getVpnConnection(GetVpnConnectionArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getVpnConnection:getVpnConnection
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetVpn Connection Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- StaticRoutes boolOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- VpnConnection stringId 
- The ID of the VPN connection.
- Filters
[]GetVpn Connection Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- StaticRoutes boolOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- VpnConnection stringId 
- The ID of the VPN connection.
- filters
List<GetVpn Connection Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- staticRoutes BooleanOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpnConnection StringId 
- The ID of the VPN connection.
- filters
GetVpn Connection Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- staticRoutes booleanOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpnConnection stringId 
- The ID of the VPN connection.
- filters
Sequence[GetVpn Connection Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- static_routes_ boolonly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpn_connection_ strid 
- The ID of the VPN connection.
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- staticRoutes BooleanOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpnConnection StringId 
- The ID of the VPN connection.
getVpnConnection Result
The following output properties are available:
- ClientGateway stringConfiguration 
- Example configuration for the client gateway.
- ClientGateway stringId 
- The ID of the client gateway used on the client end of the connection.
- ConnectionType string
- The type of VPN connection (always ipsec.1).
- Id string
- RequestId string
- Routes
List<GetVpn Connection Route> 
- Information about one or more static routes associated with the VPN connection, if any.
- State string
- The state of the IPSEC tunnel (UP|DOWN).
- 
List<GetVpn Connection Tag> 
- One or more tags associated with the VPN connection.
- VgwTelemetries List<GetVpn Connection Vgw Telemetry> 
- Information about the current state of one or more of the VPN tunnels.
- VirtualGateway stringId 
- The ID of the virtual gateway used on the OUTSCALE end of the connection.
- Filters
List<GetVpn Connection Filter> 
- StaticRoutes boolOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- VpnConnection stringId 
- The ID of the VPN connection.
- ClientGateway stringConfiguration 
- Example configuration for the client gateway.
- ClientGateway stringId 
- The ID of the client gateway used on the client end of the connection.
- ConnectionType string
- The type of VPN connection (always ipsec.1).
- Id string
- RequestId string
- Routes
[]GetVpn Connection Route Type 
- Information about one or more static routes associated with the VPN connection, if any.
- State string
- The state of the IPSEC tunnel (UP|DOWN).
- 
[]GetVpn Connection Tag 
- One or more tags associated with the VPN connection.
- VgwTelemetries []GetVpn Connection Vgw Telemetry 
- Information about the current state of one or more of the VPN tunnels.
- VirtualGateway stringId 
- The ID of the virtual gateway used on the OUTSCALE end of the connection.
- Filters
[]GetVpn Connection Filter 
- StaticRoutes boolOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- VpnConnection stringId 
- The ID of the VPN connection.
- clientGateway StringConfiguration 
- Example configuration for the client gateway.
- clientGateway StringId 
- The ID of the client gateway used on the client end of the connection.
- connectionType String
- The type of VPN connection (always ipsec.1).
- id String
- requestId String
- routes
List<GetVpn Connection Route> 
- Information about one or more static routes associated with the VPN connection, if any.
- state String
- The state of the IPSEC tunnel (UP|DOWN).
- 
List<GetVpn Connection Tag> 
- One or more tags associated with the VPN connection.
- vgwTelemetries List<GetVpn Connection Vgw Telemetry> 
- Information about the current state of one or more of the VPN tunnels.
- virtualGateway StringId 
- The ID of the virtual gateway used on the OUTSCALE end of the connection.
- filters
List<GetVpn Connection Filter> 
- staticRoutes BooleanOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpnConnection StringId 
- The ID of the VPN connection.
- clientGateway stringConfiguration 
- Example configuration for the client gateway.
- clientGateway stringId 
- The ID of the client gateway used on the client end of the connection.
- connectionType string
- The type of VPN connection (always ipsec.1).
- id string
- requestId string
- routes
GetVpn Connection Route[] 
- Information about one or more static routes associated with the VPN connection, if any.
- state string
- The state of the IPSEC tunnel (UP|DOWN).
- 
GetVpn Connection Tag[] 
- One or more tags associated with the VPN connection.
- vgwTelemetries GetVpn Connection Vgw Telemetry[] 
- Information about the current state of one or more of the VPN tunnels.
- virtualGateway stringId 
- The ID of the virtual gateway used on the OUTSCALE end of the connection.
- filters
GetVpn Connection Filter[] 
- staticRoutes booleanOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpnConnection stringId 
- The ID of the VPN connection.
- client_gateway_ strconfiguration 
- Example configuration for the client gateway.
- client_gateway_ strid 
- The ID of the client gateway used on the client end of the connection.
- connection_type str
- The type of VPN connection (always ipsec.1).
- id str
- request_id str
- routes
Sequence[GetVpn Connection Route] 
- Information about one or more static routes associated with the VPN connection, if any.
- state str
- The state of the IPSEC tunnel (UP|DOWN).
- 
Sequence[GetVpn Connection Tag] 
- One or more tags associated with the VPN connection.
- vgw_telemetries Sequence[GetVpn Connection Vgw Telemetry] 
- Information about the current state of one or more of the VPN tunnels.
- virtual_gateway_ strid 
- The ID of the virtual gateway used on the OUTSCALE end of the connection.
- filters
Sequence[GetVpn Connection Filter] 
- static_routes_ boolonly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpn_connection_ strid 
- The ID of the VPN connection.
- clientGateway StringConfiguration 
- Example configuration for the client gateway.
- clientGateway StringId 
- The ID of the client gateway used on the client end of the connection.
- connectionType String
- The type of VPN connection (always ipsec.1).
- id String
- requestId String
- routes List<Property Map>
- Information about one or more static routes associated with the VPN connection, if any.
- state String
- The state of the IPSEC tunnel (UP|DOWN).
- List<Property Map>
- One or more tags associated with the VPN connection.
- vgwTelemetries List<Property Map>
- Information about the current state of one or more of the VPN tunnels.
- virtualGateway StringId 
- The ID of the virtual gateway used on the OUTSCALE end of the connection.
- filters List<Property Map>
- staticRoutes BooleanOnly 
- If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see CreateVpnConnectionRoute and DeleteVpnConnectionRoute.
- vpnConnection StringId 
- The ID of the VPN connection.
Supporting Types
GetVpnConnectionFilter   
GetVpnConnectionRoute   
- DestinationIp stringRange 
- The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
- RouteType string
- The type of route (always static).
- State string
- The state of the IPSEC tunnel (UP|DOWN).
- DestinationIp stringRange 
- The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
- RouteType string
- The type of route (always static).
- State string
- The state of the IPSEC tunnel (UP|DOWN).
- destinationIp StringRange 
- The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
- routeType String
- The type of route (always static).
- state String
- The state of the IPSEC tunnel (UP|DOWN).
- destinationIp stringRange 
- The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
- routeType string
- The type of route (always static).
- state string
- The state of the IPSEC tunnel (UP|DOWN).
- destination_ip_ strrange 
- The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
- route_type str
- The type of route (always static).
- state str
- The state of the IPSEC tunnel (UP|DOWN).
- destinationIp StringRange 
- The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
- routeType String
- The type of route (always static).
- state String
- The state of the IPSEC tunnel (UP|DOWN).
GetVpnConnectionTag   
GetVpnConnectionVgwTelemetry    
- AcceptedRoute doubleCount 
- The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- LastState stringChange Date 
- The date and time (UTC) of the latest state update.
- OutsideIp stringAddress 
- The IP on the OUTSCALE side of the tunnel.
- State string
- The state of the IPSEC tunnel (UP|DOWN).
- StateDescription string
- A description of the current state of the tunnel.
- AcceptedRoute float64Count 
- The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- LastState stringChange Date 
- The date and time (UTC) of the latest state update.
- OutsideIp stringAddress 
- The IP on the OUTSCALE side of the tunnel.
- State string
- The state of the IPSEC tunnel (UP|DOWN).
- StateDescription string
- A description of the current state of the tunnel.
- acceptedRoute DoubleCount 
- The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- lastState StringChange Date 
- The date and time (UTC) of the latest state update.
- outsideIp StringAddress 
- The IP on the OUTSCALE side of the tunnel.
- state String
- The state of the IPSEC tunnel (UP|DOWN).
- stateDescription String
- A description of the current state of the tunnel.
- acceptedRoute numberCount 
- The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- lastState stringChange Date 
- The date and time (UTC) of the latest state update.
- outsideIp stringAddress 
- The IP on the OUTSCALE side of the tunnel.
- state string
- The state of the IPSEC tunnel (UP|DOWN).
- stateDescription string
- A description of the current state of the tunnel.
- accepted_route_ floatcount 
- The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- last_state_ strchange_ date 
- The date and time (UTC) of the latest state update.
- outside_ip_ straddress 
- The IP on the OUTSCALE side of the tunnel.
- state str
- The state of the IPSEC tunnel (UP|DOWN).
- state_description str
- A description of the current state of the tunnel.
- acceptedRoute NumberCount 
- The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- lastState StringChange Date 
- The date and time (UTC) of the latest state update.
- outsideIp StringAddress 
- The IP on the OUTSCALE side of the tunnel.
- state String
- The state of the IPSEC tunnel (UP|DOWN).
- stateDescription String
- A description of the current state of the tunnel.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.