outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getVpnConnections
Explore with Pulumi AI
Provides information about VPN connections.
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 vpnConnections01 = outscale.getVpnConnections({
    filters: [
        {
            name: "client_gateway_ids",
            values: ["cgw-12345678"],
        },
        {
            name: "virtual_gateway_ids",
            values: [
                "vgw-12345678",
                "vgw-12345678",
            ],
        },
    ],
});
import pulumi
import pulumi_outscale as outscale
vpn_connections01 = outscale.get_vpn_connections(filters=[
    {
        "name": "client_gateway_ids",
        "values": ["cgw-12345678"],
    },
    {
        "name": "virtual_gateway_ids",
        "values": [
            "vgw-12345678",
            "vgw-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.GetVpnConnections(ctx, &outscale.GetVpnConnectionsArgs{
			Filters: []outscale.GetVpnConnectionsFilter{
				{
					Name: "client_gateway_ids",
					Values: []string{
						"cgw-12345678",
					},
				},
				{
					Name: "virtual_gateway_ids",
					Values: []string{
						"vgw-12345678",
						"vgw-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 vpnConnections01 = Outscale.GetVpnConnections.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetVpnConnectionsFilterInputArgs
            {
                Name = "client_gateway_ids",
                Values = new[]
                {
                    "cgw-12345678",
                },
            },
            new Outscale.Inputs.GetVpnConnectionsFilterInputArgs
            {
                Name = "virtual_gateway_ids",
                Values = new[]
                {
                    "vgw-12345678",
                    "vgw-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.GetVpnConnectionsArgs;
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 vpnConnections01 = OutscaleFunctions.getVpnConnections(GetVpnConnectionsArgs.builder()
            .filters(            
                GetVpnConnectionsFilterArgs.builder()
                    .name("client_gateway_ids")
                    .values("cgw-12345678")
                    .build(),
                GetVpnConnectionsFilterArgs.builder()
                    .name("virtual_gateway_ids")
                    .values(                    
                        "vgw-12345678",
                        "vgw-12345678")
                    .build())
            .build());
    }
}
variables:
  vpnConnections01:
    fn::invoke:
      function: outscale:getVpnConnections
      arguments:
        filters:
          - name: client_gateway_ids
            values:
              - cgw-12345678
          - name: virtual_gateway_ids
            values:
              - vgw-12345678
              - vgw-12345678
Using getVpnConnections
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 getVpnConnections(args: GetVpnConnectionsArgs, opts?: InvokeOptions): Promise<GetVpnConnectionsResult>
function getVpnConnectionsOutput(args: GetVpnConnectionsOutputArgs, opts?: InvokeOptions): Output<GetVpnConnectionsResult>def get_vpn_connections(filters: Optional[Sequence[GetVpnConnectionsFilter]] = None,
                        id: Optional[str] = None,
                        vpn_connection_ids: Optional[Sequence[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetVpnConnectionsResult
def get_vpn_connections_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVpnConnectionsFilterArgs]]]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        vpn_connection_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetVpnConnectionsResult]func GetVpnConnections(ctx *Context, args *GetVpnConnectionsArgs, opts ...InvokeOption) (*GetVpnConnectionsResult, error)
func GetVpnConnectionsOutput(ctx *Context, args *GetVpnConnectionsOutputArgs, opts ...InvokeOption) GetVpnConnectionsResultOutput> Note: This function is named GetVpnConnections in the Go SDK.
public static class GetVpnConnections 
{
    public static Task<GetVpnConnectionsResult> InvokeAsync(GetVpnConnectionsArgs args, InvokeOptions? opts = null)
    public static Output<GetVpnConnectionsResult> Invoke(GetVpnConnectionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpnConnectionsResult> getVpnConnections(GetVpnConnectionsArgs args, InvokeOptions options)
public static Output<GetVpnConnectionsResult> getVpnConnections(GetVpnConnectionsArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getVpnConnections:getVpnConnections
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetVpn Connections 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
- VpnConnection List<string>Ids 
- Filters
[]GetVpn Connections 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
- VpnConnection []stringIds 
- filters
List<GetVpn Connections 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
- vpnConnection List<String>Ids 
- filters
GetVpn Connections 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
- vpnConnection string[]Ids 
- filters
Sequence[GetVpn Connections 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
- vpn_connection_ Sequence[str]ids 
- 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
- vpnConnection List<String>Ids 
getVpnConnections Result
The following output properties are available:
- Id string
- RequestId string
- VpnConnections List<GetVpn Connections Vpn Connection> 
- Information about one or more VPN connections.
- Filters
List<GetVpn Connections Filter> 
- VpnConnection List<string>Ids 
- Id string
- RequestId string
- VpnConnections []GetVpn Connections Vpn Connection 
- Information about one or more VPN connections.
- Filters
[]GetVpn Connections Filter 
- VpnConnection []stringIds 
- id String
- requestId String
- vpnConnections List<GetVpn Connections Vpn Connection> 
- Information about one or more VPN connections.
- filters
List<GetVpn Connections Filter> 
- vpnConnection List<String>Ids 
- id string
- requestId string
- vpnConnections GetVpn Connections Vpn Connection[] 
- Information about one or more VPN connections.
- filters
GetVpn Connections Filter[] 
- vpnConnection string[]Ids 
- id str
- request_id str
- vpn_connections Sequence[GetVpn Connections Vpn Connection] 
- Information about one or more VPN connections.
- filters
Sequence[GetVpn Connections Filter] 
- vpn_connection_ Sequence[str]ids 
- id String
- requestId String
- vpnConnections List<Property Map>
- Information about one or more VPN connections.
- filters List<Property Map>
- vpnConnection List<String>Ids 
Supporting Types
GetVpnConnectionsFilter   
GetVpnConnectionsVpnConnection    
- 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).
- Routes
List<GetVpn Connections Vpn 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).
- 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.
- 
List<GetVpn Connections Vpn Connection Tag> 
- One or more tags associated with the VPN connection.
- VgwTelemetries List<GetVpn Connections Vpn 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.
- 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).
- Routes
[]GetVpn Connections Vpn 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).
- 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.
- 
[]GetVpn Connections Vpn Connection Tag 
- One or more tags associated with the VPN connection.
- VgwTelemetries []GetVpn Connections Vpn 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.
- 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).
- routes
List<GetVpn Connections Vpn 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).
- 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.
- 
List<GetVpn Connections Vpn Connection Tag> 
- One or more tags associated with the VPN connection.
- vgwTelemetries List<GetVpn Connections Vpn 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.
- 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).
- routes
GetVpn Connections Vpn 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).
- 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.
- 
GetVpn Connections Vpn Connection Tag[] 
- One or more tags associated with the VPN connection.
- vgwTelemetries GetVpn Connections Vpn 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.
- 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).
- routes
Sequence[GetVpn Connections Vpn 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).
- 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.
- 
Sequence[GetVpn Connections Vpn Connection Tag] 
- One or more tags associated with the VPN connection.
- vgw_telemetries Sequence[GetVpn Connections Vpn 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.
- 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).
- 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).
- 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.
- 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.
- vpnConnection StringId 
- The ID of the VPN connection.
GetVpnConnectionsVpnConnectionRoute     
- 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).
GetVpnConnectionsVpnConnectionTag     
GetVpnConnectionsVpnConnectionVgwTelemetry      
- 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.