Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
The ionoscloud.vpn.WireguardGateway 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 "@ionos-cloud/sdk-pulumi";
const example = ionoscloud.vpn.getWireguardGateway({
location: "de/fra",
name: "example-gateway",
});
export const vpnWireguardGatewayPublicKey = exampleVpnWireguardGateway.publicKey;
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.vpn.get_wireguard_gateway(location="de/fra",
name="example-gateway")
pulumi.export("vpnWireguardGatewayPublicKey", example_vpn_wireguard_gateway["publicKey"])
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/vpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpn.LookupWireguardGateway(ctx, &vpn.LookupWireguardGatewayArgs{
Location: pulumi.StringRef("de/fra"),
Name: pulumi.StringRef("example-gateway"),
}, nil)
if err != nil {
return err
}
ctx.Export("vpnWireguardGatewayPublicKey", pulumi.Any(exampleVpnWireguardGateway.PublicKey))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.Vpn.GetWireguardGateway.Invoke(new()
{
Location = "de/fra",
Name = "example-gateway",
});
return new Dictionary<string, object?>
{
["vpnWireguardGatewayPublicKey"] = exampleVpnWireguardGateway.PublicKey,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.vpn.VpnFunctions;
import com.pulumi.ionoscloud.vpn.inputs.GetWireguardGatewayArgs;
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 = VpnFunctions.getWireguardGateway(GetWireguardGatewayArgs.builder()
.location("de/fra")
.name("example-gateway")
.build());
ctx.export("vpnWireguardGatewayPublicKey", exampleVpnWireguardGateway.publicKey());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:vpn:getWireguardGateway
arguments:
location: de/fra
name: example-gateway
outputs:
vpnWireguardGatewayPublicKey: ${exampleVpnWireguardGateway.publicKey}
Using getWireguardGateway
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 getWireguardGateway(args: GetWireguardGatewayArgs, opts?: InvokeOptions): Promise<GetWireguardGatewayResult>
function getWireguardGatewayOutput(args: GetWireguardGatewayOutputArgs, opts?: InvokeOptions): Output<GetWireguardGatewayResult>def get_wireguard_gateway(description: Optional[str] = None,
id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWireguardGatewayResult
def get_wireguard_gateway_output(description: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
location: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWireguardGatewayResult]func LookupWireguardGateway(ctx *Context, args *LookupWireguardGatewayArgs, opts ...InvokeOption) (*LookupWireguardGatewayResult, error)
func LookupWireguardGatewayOutput(ctx *Context, args *LookupWireguardGatewayOutputArgs, opts ...InvokeOption) LookupWireguardGatewayResultOutput> Note: This function is named LookupWireguardGateway in the Go SDK.
public static class GetWireguardGateway
{
public static Task<GetWireguardGatewayResult> InvokeAsync(GetWireguardGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetWireguardGatewayResult> Invoke(GetWireguardGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWireguardGatewayResult> getWireguardGateway(GetWireguardGatewayArgs args, InvokeOptions options)
public static Output<GetWireguardGatewayResult> getWireguardGateway(GetWireguardGatewayArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:vpn/getWireguardGateway:getWireguardGateway
arguments:
# arguments dictionaryThe 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. Supported locations: de/fra, de/fra/2, de/txl, es/vit, gb/bhx, gb/lhr, us/ewr, us/las, us/mci, fr/par.
- 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. Supported locations: de/fra, de/fra/2, de/txl, es/vit, gb/bhx, gb/lhr, us/ewr, us/las, us/mci, fr/par.
- 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. Supported locations: de/fra, de/fra/2, de/txl, es/vit, gb/bhx, gb/lhr, us/ewr, us/las, us/mci, fr/par.
- 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. Supported locations: de/fra, de/fra/2, de/txl, es/vit, gb/bhx, gb/lhr, us/ewr, us/las, us/mci, fr/par.
- 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. Supported locations: de/fra, de/fra/2, de/txl, es/vit, gb/bhx, gb/lhr, us/ewr, us/las, us/mci, fr/par.
- 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. Supported locations: de/fra, de/fra/2, de/txl, es/vit, gb/bhx, gb/lhr, us/ewr, us/las, us/mci, fr/par.
- name String
- [String] The name of the WireGuard Gateway.
getWireguardGateway Result
The following output properties are available:
- Connections
List<Ionoscloud.
Get Wireguard Gateway Connection> - A list of connection configurations for the WireGuard Gateway. Each
connectionsblock 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 int - Maintenance
Windows List<Ionoscloud.Get 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
Wireguard Gateway Connection - A list of connection configurations for the WireGuard Gateway. Each
connectionsblock 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 int - Maintenance
Windows []GetWireguard 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
Wireguard Gateway Connection> - A list of connection configurations for the WireGuard Gateway. Each
connectionsblock 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 Integer - maintenance
Windows List<GetWireguard 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
Wireguard Gateway Connection[] - A list of connection configurations for the WireGuard Gateway. Each
connectionsblock 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 GetWireguard 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
Wireguard Gateway Connection] - A list of connection configurations for the WireGuard Gateway. Each
connectionsblock 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 int - maintenance_
windows Sequence[GetWireguard 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
connectionsblock 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
GetWireguardGatewayConnection
- Datacenter
Id string - The ID of the datacenter where the WireGuard Gateway is located.
- Ipv4Cidr string
- The VPN Gateway IPv4 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- Ipv6Cidr string
- The VPN Gateway IPv6 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- 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 VPN Gateway IPv4 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- Ipv6Cidr string
- The VPN Gateway IPv6 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- 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 VPN Gateway IPv4 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- ipv6Cidr String
- The VPN Gateway IPv6 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- 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 VPN Gateway IPv4 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- ipv6Cidr string
- The VPN Gateway IPv6 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- 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 VPN Gateway IPv4 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- ipv6_
cidr str - The VPN Gateway IPv6 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- 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 VPN Gateway IPv4 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- ipv6Cidr String
- The VPN Gateway IPv6 address in CIDR notation. This is the private gateway address for LAN clients to route traffic over the VPN Gateway, this should be within the subnet already assigned to the LAN.
- lan
Id String - The ID of the LAN where the WireGuard Gateway is connected.
GetWireguardGatewayMaintenanceWindow
- 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/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
Viewing docs for IonosCloud v0.3.0
published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
