outscale 1.1.0 published on Thursday, Apr 3, 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 dictionary
The following arguments are supported:
- Filters
List<Get
Vpn 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
- Vpn
Connection List<string>Ids
- Filters
[]Get
Vpn 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
- Vpn
Connection []stringIds
- filters
List<Get
Vpn 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
- vpn
Connection List<String>Ids
- filters
Get
Vpn 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
- vpn
Connection string[]Ids
- filters
Sequence[Get
Vpn 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
- vpn
Connection List<String>Ids
getVpnConnections Result
The following output properties are available:
- Id string
- Request
Id string - Vpn
Connections List<GetVpn Connections Vpn Connection> - Information about one or more VPN connections.
- Filters
List<Get
Vpn Connections Filter> - Vpn
Connection List<string>Ids
- Id string
- Request
Id string - Vpn
Connections []GetVpn Connections Vpn Connection - Information about one or more VPN connections.
- Filters
[]Get
Vpn Connections Filter - Vpn
Connection []stringIds
- id String
- request
Id String - vpn
Connections List<GetVpn Connections Vpn Connection> - Information about one or more VPN connections.
- filters
List<Get
Vpn Connections Filter> - vpn
Connection List<String>Ids
- id string
- request
Id string - vpn
Connections GetVpn Connections Vpn Connection[] - Information about one or more VPN connections.
- filters
Get
Vpn Connections Filter[] - vpn
Connection string[]Ids
- id str
- request_
id str - vpn_
connections Sequence[GetVpn Connections Vpn Connection] - Information about one or more VPN connections.
- filters
Sequence[Get
Vpn Connections Filter] - vpn_
connection_ Sequence[str]ids
- id String
- request
Id String - vpn
Connections List<Property Map> - Information about one or more VPN connections.
- filters List<Property Map>
- vpn
Connection List<String>Ids
Supporting Types
GetVpnConnectionsFilter
GetVpnConnectionsVpnConnection
- Client
Gateway Configuration This property is required. string - Example configuration for the client gateway.
- Client
Gateway Id This property is required. string - The ID of the client gateway used on the client end of the connection.
- Connection
Type This property is required. string - The type of VPN connection (always
ipsec.1
). - Routes
This property is required. List<GetVpn Connections Vpn Connection Route> - Information about one or more static routes associated with the VPN connection, if any.
- State
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
). - Static
Routes Only This property is required. bool - 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.
This property is required. List<GetVpn Connections Vpn Connection Tag> - One or more tags associated with the VPN connection.
- Vgw
Telemetries This property is required. List<GetVpn Connections Vpn Connection Vgw Telemetry> - Information about the current state of one or more of the VPN tunnels.
- Virtual
Gateway Id This property is required. string - The ID of the virtual gateway used on the OUTSCALE end of the connection.
- Vpn
Connection Id This property is required. string - The ID of the VPN connection.
- Client
Gateway Configuration This property is required. string - Example configuration for the client gateway.
- Client
Gateway Id This property is required. string - The ID of the client gateway used on the client end of the connection.
- Connection
Type This property is required. string - The type of VPN connection (always
ipsec.1
). - Routes
This property is required. []GetVpn Connections Vpn Connection Route - Information about one or more static routes associated with the VPN connection, if any.
- State
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
). - Static
Routes Only This property is required. bool - 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.
This property is required. []GetVpn Connections Vpn Connection Tag - One or more tags associated with the VPN connection.
- Vgw
Telemetries This property is required. []GetVpn Connections Vpn Connection Vgw Telemetry - Information about the current state of one or more of the VPN tunnels.
- Virtual
Gateway Id This property is required. string - The ID of the virtual gateway used on the OUTSCALE end of the connection.
- Vpn
Connection Id This property is required. string - The ID of the VPN connection.
- client
Gateway Configuration This property is required. String - Example configuration for the client gateway.
- client
Gateway Id This property is required. String - The ID of the client gateway used on the client end of the connection.
- connection
Type This property is required. String - The type of VPN connection (always
ipsec.1
). - routes
This property is required. List<GetVpn Connections Vpn Connection Route> - Information about one or more static routes associated with the VPN connection, if any.
- state
This property is required. String - The state of the IPSEC tunnel (
UP
|DOWN
). - static
Routes Only This property is required. Boolean - 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.
This property is required. List<GetVpn Connections Vpn Connection Tag> - One or more tags associated with the VPN connection.
- vgw
Telemetries This property is required. List<GetVpn Connections Vpn Connection Vgw Telemetry> - Information about the current state of one or more of the VPN tunnels.
- virtual
Gateway Id This property is required. String - The ID of the virtual gateway used on the OUTSCALE end of the connection.
- vpn
Connection Id This property is required. String - The ID of the VPN connection.
- client
Gateway Configuration This property is required. string - Example configuration for the client gateway.
- client
Gateway Id This property is required. string - The ID of the client gateway used on the client end of the connection.
- connection
Type This property is required. string - The type of VPN connection (always
ipsec.1
). - routes
This property is required. GetVpn Connections Vpn Connection Route[] - Information about one or more static routes associated with the VPN connection, if any.
- state
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
). - static
Routes Only This property is required. boolean - 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.
This property is required. GetVpn Connections Vpn Connection Tag[] - One or more tags associated with the VPN connection.
- vgw
Telemetries This property is required. GetVpn Connections Vpn Connection Vgw Telemetry[] - Information about the current state of one or more of the VPN tunnels.
- virtual
Gateway Id This property is required. string - The ID of the virtual gateway used on the OUTSCALE end of the connection.
- vpn
Connection Id This property is required. string - The ID of the VPN connection.
- client_
gateway_ configuration This property is required. str - Example configuration for the client gateway.
- client_
gateway_ id This property is required. str - The ID of the client gateway used on the client end of the connection.
- connection_
type This property is required. str - The type of VPN connection (always
ipsec.1
). - routes
This property is required. Sequence[GetVpn Connections Vpn Connection Route] - Information about one or more static routes associated with the VPN connection, if any.
- state
This property is required. str - The state of the IPSEC tunnel (
UP
|DOWN
). - static_
routes_ only This property is required. bool - 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.
This property is required. Sequence[GetVpn Connections Vpn Connection Tag] - One or more tags associated with the VPN connection.
- vgw_
telemetries This property is required. Sequence[GetVpn Connections Vpn Connection Vgw Telemetry] - Information about the current state of one or more of the VPN tunnels.
- virtual_
gateway_ id This property is required. str - The ID of the virtual gateway used on the OUTSCALE end of the connection.
- vpn_
connection_ id This property is required. str - The ID of the VPN connection.
- client
Gateway Configuration This property is required. String - Example configuration for the client gateway.
- client
Gateway Id This property is required. String - The ID of the client gateway used on the client end of the connection.
- connection
Type This property is required. String - The type of VPN connection (always
ipsec.1
). - routes
This property is required. List<Property Map> - Information about one or more static routes associated with the VPN connection, if any.
- state
This property is required. String - The state of the IPSEC tunnel (
UP
|DOWN
). - static
Routes Only This property is required. Boolean - 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.
This property is required. List<Property Map>- One or more tags associated with the VPN connection.
- vgw
Telemetries This property is required. List<Property Map> - Information about the current state of one or more of the VPN tunnels.
- virtual
Gateway Id This property is required. String - The ID of the virtual gateway used on the OUTSCALE end of the connection.
- vpn
Connection Id This property is required. String - The ID of the VPN connection.
GetVpnConnectionsVpnConnectionRoute
- Destination
Ip Range This property is required. string - The IP range used for the destination match, in CIDR notation (for example,
10.0.0.0/24
). - Route
Type This property is required. string - The type of route (always
static
). - State
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
).
- Destination
Ip Range This property is required. string - The IP range used for the destination match, in CIDR notation (for example,
10.0.0.0/24
). - Route
Type This property is required. string - The type of route (always
static
). - State
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
).
- destination
Ip Range This property is required. String - The IP range used for the destination match, in CIDR notation (for example,
10.0.0.0/24
). - route
Type This property is required. String - The type of route (always
static
). - state
This property is required. String - The state of the IPSEC tunnel (
UP
|DOWN
).
- destination
Ip Range This property is required. string - The IP range used for the destination match, in CIDR notation (for example,
10.0.0.0/24
). - route
Type This property is required. string - The type of route (always
static
). - state
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
).
- destination_
ip_ range This property is required. str - The IP range used for the destination match, in CIDR notation (for example,
10.0.0.0/24
). - route_
type This property is required. str - The type of route (always
static
). - state
This property is required. str - The state of the IPSEC tunnel (
UP
|DOWN
).
- destination
Ip Range This property is required. String - The IP range used for the destination match, in CIDR notation (for example,
10.0.0.0/24
). - route
Type This property is required. String - The type of route (always
static
). - state
This property is required. String - The state of the IPSEC tunnel (
UP
|DOWN
).
GetVpnConnectionsVpnConnectionTag
GetVpnConnectionsVpnConnectionVgwTelemetry
- Accepted
Route Count This property is required. double - The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- Last
State Change Date This property is required. string - The date and time (UTC) of the latest state update.
- Outside
Ip Address This property is required. string - The IP on the OUTSCALE side of the tunnel.
- State
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
). - State
Description This property is required. string - A description of the current state of the tunnel.
- Accepted
Route Count This property is required. float64 - The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- Last
State Change Date This property is required. string - The date and time (UTC) of the latest state update.
- Outside
Ip Address This property is required. string - The IP on the OUTSCALE side of the tunnel.
- State
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
). - State
Description This property is required. string - A description of the current state of the tunnel.
- accepted
Route Count This property is required. Double - The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- last
State Change Date This property is required. String - The date and time (UTC) of the latest state update.
- outside
Ip Address This property is required. String - The IP on the OUTSCALE side of the tunnel.
- state
This property is required. String - The state of the IPSEC tunnel (
UP
|DOWN
). - state
Description This property is required. String - A description of the current state of the tunnel.
- accepted
Route Count This property is required. number - The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- last
State Change Date This property is required. string - The date and time (UTC) of the latest state update.
- outside
Ip Address This property is required. string - The IP on the OUTSCALE side of the tunnel.
- state
This property is required. string - The state of the IPSEC tunnel (
UP
|DOWN
). - state
Description This property is required. string - A description of the current state of the tunnel.
- accepted_
route_ count This property is required. float - The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- last_
state_ change_ date This property is required. str - The date and time (UTC) of the latest state update.
- outside_
ip_ address This property is required. str - The IP on the OUTSCALE side of the tunnel.
- state
This property is required. str - The state of the IPSEC tunnel (
UP
|DOWN
). - state_
description This property is required. str - A description of the current state of the tunnel.
- accepted
Route Count This property is required. Number - The number of routes accepted through BGP (Border Gateway Protocol) route exchanges.
- last
State Change Date This property is required. String - The date and time (UTC) of the latest state update.
- outside
Ip Address This property is required. String - The IP on the OUTSCALE side of the tunnel.
- state
This property is required. String - The state of the IPSEC tunnel (
UP
|DOWN
). - state
Description This property is required. 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
outscale
Terraform Provider.