published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
For further information refer to the Site-to-Site VPN API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by gateway ID
const myGateway = scaleway.s2svpn.getGateway({
vpnGatewayId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by gateway ID
my_gateway = scaleway.s2svpn.get_gateway(vpn_gateway_id="11111111-1111-1111-1111-111111111111")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/s2svpn"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by gateway ID
_, err := s2svpn.LookupGateway(ctx, &s2svpn.LookupGatewayArgs{
VpnGatewayId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get info by gateway ID
var myGateway = Scaleway.S2svpn.GetGateway.Invoke(new()
{
VpnGatewayId = "11111111-1111-1111-1111-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.s2svpn.S2svpnFunctions;
import com.pulumi.scaleway.s2svpn.inputs.GetGatewayArgs;
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) {
// Get info by gateway ID
final var myGateway = S2svpnFunctions.getGateway(GetGatewayArgs.builder()
.vpnGatewayId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by gateway ID
myGateway:
fn::invoke:
function: scaleway:s2svpn:getGateway
arguments:
vpnGatewayId: 11111111-1111-1111-1111-111111111111
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by name
const myGateway = scaleway.s2svpn.getGateway({
name: "foobar",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by name
my_gateway = scaleway.s2svpn.get_gateway(name="foobar")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/s2svpn"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by name
_, err := s2svpn.LookupGateway(ctx, &s2svpn.LookupGatewayArgs{
Name: pulumi.StringRef("foobar"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get info by name
var myGateway = Scaleway.S2svpn.GetGateway.Invoke(new()
{
Name = "foobar",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.s2svpn.S2svpnFunctions;
import com.pulumi.scaleway.s2svpn.inputs.GetGatewayArgs;
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) {
// Get info by name
final var myGateway = S2svpnFunctions.getGateway(GetGatewayArgs.builder()
.name("foobar")
.build());
}
}
variables:
# Get info by name
myGateway:
fn::invoke:
function: scaleway:s2svpn:getGateway
arguments:
name: foobar
Using getGateway
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 getGateway(args: GetGatewayArgs, opts?: InvokeOptions): Promise<GetGatewayResult>
function getGatewayOutput(args: GetGatewayOutputArgs, opts?: InvokeOptions): Output<GetGatewayResult>def get_gateway(name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewayResult
def get_gateway_output(name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
vpn_gateway_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewayResult]func LookupGateway(ctx *Context, args *LookupGatewayArgs, opts ...InvokeOption) (*LookupGatewayResult, error)
func LookupGatewayOutput(ctx *Context, args *LookupGatewayOutputArgs, opts ...InvokeOption) LookupGatewayResultOutput> Note: This function is named LookupGateway in the Go SDK.
public static class GetGateway
{
public static Task<GetGatewayResult> InvokeAsync(GetGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayResult> Invoke(GetGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
public static Output<GetGatewayResult> getGateway(GetGatewayArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:s2svpn/getGateway:getGateway
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the VPN gateway.
- Project
Id string - The ID of the project the VPN gateway is associated with.
- Region string
region) The region in which the VPN gateway exists.- Vpn
Gateway stringId The VPN gateway ID.
Note You must specify at least one:
nameand/orvpn_gateway_id.
- Name string
- The name of the VPN gateway.
- Project
Id string - The ID of the project the VPN gateway is associated with.
- Region string
region) The region in which the VPN gateway exists.- Vpn
Gateway stringId The VPN gateway ID.
Note You must specify at least one:
nameand/orvpn_gateway_id.
- name String
- The name of the VPN gateway.
- project
Id String - The ID of the project the VPN gateway is associated with.
- region String
region) The region in which the VPN gateway exists.- vpn
Gateway StringId The VPN gateway ID.
Note You must specify at least one:
nameand/orvpn_gateway_id.
- name string
- The name of the VPN gateway.
- project
Id string - The ID of the project the VPN gateway is associated with.
- region string
region) The region in which the VPN gateway exists.- vpn
Gateway stringId The VPN gateway ID.
Note You must specify at least one:
nameand/orvpn_gateway_id.
- name str
- The name of the VPN gateway.
- project_
id str - The ID of the project the VPN gateway is associated with.
- region str
region) The region in which the VPN gateway exists.- vpn_
gateway_ strid The VPN gateway ID.
Note You must specify at least one:
nameand/orvpn_gateway_id.
- name String
- The name of the VPN gateway.
- project
Id String - The ID of the project the VPN gateway is associated with.
- region String
region) The region in which the VPN gateway exists.- vpn
Gateway StringId The VPN gateway ID.
Note You must specify at least one:
nameand/orvpn_gateway_id.
getGateway Result
The following output properties are available:
- Asn int
- The AS Number of the VPN gateway.
- Created
At string - The date and time of creation of the VPN gateway.
- Gateway
Type string - The VPN gateway type (commercial offer type).
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Private stringIpv4Id - The ID of the IPAM private IPv4 address attached to the VPN gateway.
- Ipam
Private stringIpv6Id - The ID of the IPAM private IPv6 address attached to the VPN gateway.
- Organization
Id string - The Organization ID the VPN gateway is associated with.
- Private
Network stringId - The ID of the Private Network attached to the VPN gateway.
- Public
Configs List<Pulumiverse.Scaleway. S2svpn. Outputs. Get Gateway Public Config> - The public endpoint configuration of the VPN gateway.
- Status string
- The status of the VPN gateway.
- List<string>
- The tags associated with the VPN gateway.
- Updated
At string - The date and time of the last update of the VPN gateway.
- Zone string
- The zone in which the VPN gateway is deployed.
- Name string
- Project
Id string - Region string
- Vpn
Gateway stringId
- Asn int
- The AS Number of the VPN gateway.
- Created
At string - The date and time of creation of the VPN gateway.
- Gateway
Type string - The VPN gateway type (commercial offer type).
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipam
Private stringIpv4Id - The ID of the IPAM private IPv4 address attached to the VPN gateway.
- Ipam
Private stringIpv6Id - The ID of the IPAM private IPv6 address attached to the VPN gateway.
- Organization
Id string - The Organization ID the VPN gateway is associated with.
- Private
Network stringId - The ID of the Private Network attached to the VPN gateway.
- Public
Configs []GetGateway Public Config - The public endpoint configuration of the VPN gateway.
- Status string
- The status of the VPN gateway.
- []string
- The tags associated with the VPN gateway.
- Updated
At string - The date and time of the last update of the VPN gateway.
- Zone string
- The zone in which the VPN gateway is deployed.
- Name string
- Project
Id string - Region string
- Vpn
Gateway stringId
- asn Integer
- The AS Number of the VPN gateway.
- created
At String - The date and time of creation of the VPN gateway.
- gateway
Type String - The VPN gateway type (commercial offer type).
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Private StringIpv4Id - The ID of the IPAM private IPv4 address attached to the VPN gateway.
- ipam
Private StringIpv6Id - The ID of the IPAM private IPv6 address attached to the VPN gateway.
- organization
Id String - The Organization ID the VPN gateway is associated with.
- private
Network StringId - The ID of the Private Network attached to the VPN gateway.
- public
Configs List<GetGateway Public Config> - The public endpoint configuration of the VPN gateway.
- status String
- The status of the VPN gateway.
- List<String>
- The tags associated with the VPN gateway.
- updated
At String - The date and time of the last update of the VPN gateway.
- zone String
- The zone in which the VPN gateway is deployed.
- name String
- project
Id String - region String
- vpn
Gateway StringId
- asn number
- The AS Number of the VPN gateway.
- created
At string - The date and time of creation of the VPN gateway.
- gateway
Type string - The VPN gateway type (commercial offer type).
- id string
- The provider-assigned unique ID for this managed resource.
- ipam
Private stringIpv4Id - The ID of the IPAM private IPv4 address attached to the VPN gateway.
- ipam
Private stringIpv6Id - The ID of the IPAM private IPv6 address attached to the VPN gateway.
- organization
Id string - The Organization ID the VPN gateway is associated with.
- private
Network stringId - The ID of the Private Network attached to the VPN gateway.
- public
Configs GetGateway Public Config[] - The public endpoint configuration of the VPN gateway.
- status string
- The status of the VPN gateway.
- string[]
- The tags associated with the VPN gateway.
- updated
At string - The date and time of the last update of the VPN gateway.
- zone string
- The zone in which the VPN gateway is deployed.
- name string
- project
Id string - region string
- vpn
Gateway stringId
- asn int
- The AS Number of the VPN gateway.
- created_
at str - The date and time of creation of the VPN gateway.
- gateway_
type str - The VPN gateway type (commercial offer type).
- id str
- The provider-assigned unique ID for this managed resource.
- ipam_
private_ stripv4_ id - The ID of the IPAM private IPv4 address attached to the VPN gateway.
- ipam_
private_ stripv6_ id - The ID of the IPAM private IPv6 address attached to the VPN gateway.
- organization_
id str - The Organization ID the VPN gateway is associated with.
- private_
network_ strid - The ID of the Private Network attached to the VPN gateway.
- public_
configs Sequence[GetGateway Public Config] - The public endpoint configuration of the VPN gateway.
- status str
- The status of the VPN gateway.
- Sequence[str]
- The tags associated with the VPN gateway.
- updated_
at str - The date and time of the last update of the VPN gateway.
- zone str
- The zone in which the VPN gateway is deployed.
- name str
- project_
id str - region str
- vpn_
gateway_ strid
- asn Number
- The AS Number of the VPN gateway.
- created
At String - The date and time of creation of the VPN gateway.
- gateway
Type String - The VPN gateway type (commercial offer type).
- id String
- The provider-assigned unique ID for this managed resource.
- ipam
Private StringIpv4Id - The ID of the IPAM private IPv4 address attached to the VPN gateway.
- ipam
Private StringIpv6Id - The ID of the IPAM private IPv6 address attached to the VPN gateway.
- organization
Id String - The Organization ID the VPN gateway is associated with.
- private
Network StringId - The ID of the Private Network attached to the VPN gateway.
- public
Configs List<Property Map> - The public endpoint configuration of the VPN gateway.
- status String
- The status of the VPN gateway.
- List<String>
- The tags associated with the VPN gateway.
- updated
At String - The date and time of the last update of the VPN gateway.
- zone String
- The zone in which the VPN gateway is deployed.
- name String
- project
Id String - region String
- vpn
Gateway StringId
Supporting Types
GetGatewayPublicConfig
- Ipam
Ipv4Id string - The ID of the IPAM IPv4 address to use as the public IP for the VPN gateway
- Ipam
Ipv6Id string - The ID of the IPAM IPv6 address to use as the public IP for the VPN gateway
- Ipam
Ipv4Id string - The ID of the IPAM IPv4 address to use as the public IP for the VPN gateway
- Ipam
Ipv6Id string - The ID of the IPAM IPv6 address to use as the public IP for the VPN gateway
- ipam
Ipv4Id String - The ID of the IPAM IPv4 address to use as the public IP for the VPN gateway
- ipam
Ipv6Id String - The ID of the IPAM IPv6 address to use as the public IP for the VPN gateway
- ipam
Ipv4Id string - The ID of the IPAM IPv4 address to use as the public IP for the VPN gateway
- ipam
Ipv6Id string - The ID of the IPAM IPv6 address to use as the public IP for the VPN gateway
- ipam_
ipv4_ strid - The ID of the IPAM IPv4 address to use as the public IP for the VPN gateway
- ipam_
ipv6_ strid - The ID of the IPAM IPv6 address to use as the public IP for the VPN gateway
- ipam
Ipv4Id String - The ID of the IPAM IPv4 address to use as the public IP for the VPN gateway
- ipam
Ipv6Id String - The ID of the IPAM IPv6 address to use as the public IP for the VPN gateway
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Monday, Mar 9, 2026 by pulumiverse
