ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
ionoscloud.getVpnWireguardGateway
Explore with Pulumi AI
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud
The ionoscloud.VpnWireguardGateway
data source provides information about a specific IonosCloud VPN WireGuard Gateway. You can use this data source to retrieve details of a WireGuard Gateway for use in other resources and configurations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getVpnWireguardGateway({
location: "de/fra",
name: "example-gateway",
});
export const vpnWireguardGatewayPublicKey = data.vpn_wireguard_gateway.example.public_key;
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_vpn_wireguard_gateway(location="de/fra",
name="example-gateway")
pulumi.export("vpnWireguardGatewayPublicKey", data["vpn_wireguard_gateway"]["example"]["public_key"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupVpnWireguardGateway(ctx, &ionoscloud.LookupVpnWireguardGatewayArgs{
Location: pulumi.StringRef("de/fra"),
Name: pulumi.StringRef("example-gateway"),
}, nil)
if err != nil {
return err
}
ctx.Export("vpnWireguardGatewayPublicKey", data.Vpn_wireguard_gateway.Example.Public_key)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetVpnWireguardGateway.Invoke(new()
{
Location = "de/fra",
Name = "example-gateway",
});
return new Dictionary<string, object?>
{
["vpnWireguardGatewayPublicKey"] = data.Vpn_wireguard_gateway.Example.Public_key,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetVpnWireguardGatewayArgs;
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 example = IonoscloudFunctions.getVpnWireguardGateway(GetVpnWireguardGatewayArgs.builder()
.location("de/fra")
.name("example-gateway")
.build());
ctx.export("vpnWireguardGatewayPublicKey", data.vpn_wireguard_gateway().example().public_key());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getVpnWireguardGateway
arguments:
location: de/fra
name: example-gateway
outputs:
vpnWireguardGatewayPublicKey: ${data.vpn_wireguard_gateway.example.public_key}
Using getVpnWireguardGateway
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 getVpnWireguardGateway(args: GetVpnWireguardGatewayArgs, opts?: InvokeOptions): Promise<GetVpnWireguardGatewayResult>
function getVpnWireguardGatewayOutput(args: GetVpnWireguardGatewayOutputArgs, opts?: InvokeOptions): Output<GetVpnWireguardGatewayResult>
def get_vpn_wireguard_gateway(description: Optional[str] = None,
id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpnWireguardGatewayResult
def get_vpn_wireguard_gateway_output(description: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpnWireguardGatewayResult]
func LookupVpnWireguardGateway(ctx *Context, args *LookupVpnWireguardGatewayArgs, opts ...InvokeOption) (*LookupVpnWireguardGatewayResult, error)
func LookupVpnWireguardGatewayOutput(ctx *Context, args *LookupVpnWireguardGatewayOutputArgs, opts ...InvokeOption) LookupVpnWireguardGatewayResultOutput
> Note: This function is named LookupVpnWireguardGateway
in the Go SDK.
public static class GetVpnWireguardGateway
{
public static Task<GetVpnWireguardGatewayResult> InvokeAsync(GetVpnWireguardGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetVpnWireguardGatewayResult> Invoke(GetVpnWireguardGatewayInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpnWireguardGatewayResult> getVpnWireguardGateway(GetVpnWireguardGatewayArgs args, InvokeOptions options)
public static Output<GetVpnWireguardGatewayResult> getVpnWireguardGateway(GetVpnWireguardGatewayArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getVpnWireguardGateway:getVpnWireguardGateway
arguments:
# arguments dictionary
The following arguments are supported:
- Description string
- The description of the WireGuard Gateway.
- Id string
- [String] The ID of the WireGuard Gateway.
- Location string
- [String] The location of the WireGuard Gateway.
- Name string
- [String] The name of the WireGuard Gateway.
- Description string
- The description of the WireGuard Gateway.
- Id string
- [String] The ID of the WireGuard Gateway.
- Location string
- [String] The location of the WireGuard Gateway.
- Name string
- [String] The name of the WireGuard Gateway.
- description String
- The description of the WireGuard Gateway.
- id String
- [String] The ID of the WireGuard Gateway.
- location String
- [String] The location of the WireGuard Gateway.
- name String
- [String] The name of the WireGuard Gateway.
- description string
- The description of the WireGuard Gateway.
- id string
- [String] The ID of the WireGuard Gateway.
- location string
- [String] The location of the WireGuard Gateway.
- name string
- [String] The name of the WireGuard Gateway.
- description str
- The description of the WireGuard Gateway.
- id str
- [String] The ID of the WireGuard Gateway.
- location str
- [String] The location of the WireGuard Gateway.
- name str
- [String] The name of the WireGuard Gateway.
- description String
- The description of the WireGuard Gateway.
- id String
- [String] The ID of the WireGuard Gateway.
- location String
- [String] The location of the WireGuard Gateway.
- name String
- [String] The name of the WireGuard Gateway.
getVpnWireguardGateway Result
The following output properties are available:
- Connections
List<Get
Vpn Wireguard Gateway Connection> - A list of connection configurations for the WireGuard Gateway. Each
connections
block contains: - Gateway
Ip string - The IP address of the WireGuard Gateway.
- Id string
- Interface
Ipv4Cidr string - The IPv4 CIDR for the WireGuard Gateway interface.
- Interface
Ipv6Cidr string - The IPv6 CIDR for the WireGuard Gateway interface.
- Listen
Port double - Maintenance
Windows List<GetVpn Wireguard Gateway Maintenance Window> - A weekly 4 hour-long window, during which maintenance might occur.
- Name string
- Public
Key string - The public key for the WireGuard Gateway.
- Status string
- The current status of the WireGuard Gateway.
- Tier string
- Gateway performance options.
- Description string
- The description of the WireGuard Gateway.
- Location string
- Connections
[]Get
Vpn Wireguard Gateway Connection - A list of connection configurations for the WireGuard Gateway. Each
connections
block contains: - Gateway
Ip string - The IP address of the WireGuard Gateway.
- Id string
- Interface
Ipv4Cidr string - The IPv4 CIDR for the WireGuard Gateway interface.
- Interface
Ipv6Cidr string - The IPv6 CIDR for the WireGuard Gateway interface.
- Listen
Port float64 - Maintenance
Windows []GetVpn Wireguard Gateway Maintenance Window - A weekly 4 hour-long window, during which maintenance might occur.
- Name string
- Public
Key string - The public key for the WireGuard Gateway.
- Status string
- The current status of the WireGuard Gateway.
- Tier string
- Gateway performance options.
- Description string
- The description of the WireGuard Gateway.
- Location string
- connections
List<Get
Vpn Wireguard Gateway Connection> - A list of connection configurations for the WireGuard Gateway. Each
connections
block contains: - gateway
Ip String - The IP address of the WireGuard Gateway.
- id String
- interface
Ipv4Cidr String - The IPv4 CIDR for the WireGuard Gateway interface.
- interface
Ipv6Cidr String - The IPv6 CIDR for the WireGuard Gateway interface.
- listen
Port Double - maintenance
Windows List<GetVpn Wireguard Gateway Maintenance Window> - A weekly 4 hour-long window, during which maintenance might occur.
- name String
- public
Key String - The public key for the WireGuard Gateway.
- status String
- The current status of the WireGuard Gateway.
- tier String
- Gateway performance options.
- description String
- The description of the WireGuard Gateway.
- location String
- connections
Get
Vpn Wireguard Gateway Connection[] - A list of connection configurations for the WireGuard Gateway. Each
connections
block contains: - gateway
Ip string - The IP address of the WireGuard Gateway.
- id string
- interface
Ipv4Cidr string - The IPv4 CIDR for the WireGuard Gateway interface.
- interface
Ipv6Cidr string - The IPv6 CIDR for the WireGuard Gateway interface.
- listen
Port number - maintenance
Windows GetVpn Wireguard Gateway Maintenance Window[] - A weekly 4 hour-long window, during which maintenance might occur.
- name string
- public
Key string - The public key for the WireGuard Gateway.
- status string
- The current status of the WireGuard Gateway.
- tier string
- Gateway performance options.
- description string
- The description of the WireGuard Gateway.
- location string
- connections
Sequence[Get
Vpn Wireguard Gateway Connection] - A list of connection configurations for the WireGuard Gateway. Each
connections
block contains: - gateway_
ip str - The IP address of the WireGuard Gateway.
- id str
- interface_
ipv4_ strcidr - The IPv4 CIDR for the WireGuard Gateway interface.
- interface_
ipv6_ strcidr - The IPv6 CIDR for the WireGuard Gateway interface.
- listen_
port float - maintenance_
windows Sequence[GetVpn Wireguard Gateway Maintenance Window] - A weekly 4 hour-long window, during which maintenance might occur.
- name str
- public_
key str - The public key for the WireGuard Gateway.
- status str
- The current status of the WireGuard Gateway.
- tier str
- Gateway performance options.
- description str
- The description of the WireGuard Gateway.
- location str
- connections List<Property Map>
- A list of connection configurations for the WireGuard Gateway. Each
connections
block contains: - gateway
Ip String - The IP address of the WireGuard Gateway.
- id String
- interface
Ipv4Cidr String - The IPv4 CIDR for the WireGuard Gateway interface.
- interface
Ipv6Cidr String - The IPv6 CIDR for the WireGuard Gateway interface.
- listen
Port Number - maintenance
Windows List<Property Map> - A weekly 4 hour-long window, during which maintenance might occur.
- name String
- public
Key String - The public key for the WireGuard Gateway.
- status String
- The current status of the WireGuard Gateway.
- tier String
- Gateway performance options.
- description String
- The description of the WireGuard Gateway.
- location String
Supporting Types
GetVpnWireguardGatewayConnection
- Datacenter
Id string - The ID of the datacenter where the WireGuard Gateway is located.
- Ipv4Cidr string
- The IPv4 CIDR for the WireGuard Gateway connection.
- Ipv6Cidr string
- The IPv6 CIDR for the WireGuard Gateway connection.
- Lan
Id string - The ID of the LAN where the WireGuard Gateway is connected.
- Datacenter
Id string - The ID of the datacenter where the WireGuard Gateway is located.
- Ipv4Cidr string
- The IPv4 CIDR for the WireGuard Gateway connection.
- Ipv6Cidr string
- The IPv6 CIDR for the WireGuard Gateway connection.
- Lan
Id string - The ID of the LAN where the WireGuard Gateway is connected.
- datacenter
Id String - The ID of the datacenter where the WireGuard Gateway is located.
- ipv4Cidr String
- The IPv4 CIDR for the WireGuard Gateway connection.
- ipv6Cidr String
- The IPv6 CIDR for the WireGuard Gateway connection.
- lan
Id String - The ID of the LAN where the WireGuard Gateway is connected.
- datacenter
Id string - The ID of the datacenter where the WireGuard Gateway is located.
- ipv4Cidr string
- The IPv4 CIDR for the WireGuard Gateway connection.
- ipv6Cidr string
- The IPv6 CIDR for the WireGuard Gateway connection.
- lan
Id string - The ID of the LAN where the WireGuard Gateway is connected.
- datacenter_
id str - The ID of the datacenter where the WireGuard Gateway is located.
- ipv4_
cidr str - The IPv4 CIDR for the WireGuard Gateway connection.
- ipv6_
cidr str - The IPv6 CIDR for the WireGuard Gateway connection.
- lan_
id str - The ID of the LAN where the WireGuard Gateway is connected.
- datacenter
Id String - The ID of the datacenter where the WireGuard Gateway is located.
- ipv4Cidr String
- The IPv4 CIDR for the WireGuard Gateway connection.
- ipv6Cidr String
- The IPv6 CIDR for the WireGuard Gateway connection.
- lan
Id String - The ID of the LAN where the WireGuard Gateway is connected.
GetVpnWireguardGatewayMaintenanceWindow
- Day
Of stringThe Week - The name of the week day.
- Time string
- Start of the maintenance window in UTC time.
- Day
Of stringThe Week - The name of the week day.
- Time string
- Start of the maintenance window in UTC time.
- day
Of StringThe Week - The name of the week day.
- time String
- Start of the maintenance window in UTC time.
- day
Of stringThe Week - The name of the week day.
- time string
- Start of the maintenance window in UTC time.
- day_
of_ strthe_ week - The name of the week day.
- time str
- Start of the maintenance window in UTC time.
- day
Of StringThe Week - The name of the week day.
- time String
- Start of the maintenance window in UTC time.
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud