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 routing policy ID
const myPolicy = scaleway.s2svpn.getRoutingPolicy({
routingPolicyId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by routing policy ID
my_policy = scaleway.s2svpn.get_routing_policy(routing_policy_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 routing policy ID
_, err := s2svpn.LookupRoutingPolicy(ctx, &s2svpn.LookupRoutingPolicyArgs{
RoutingPolicyId: 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 routing policy ID
var myPolicy = Scaleway.S2svpn.GetRoutingPolicy.Invoke(new()
{
RoutingPolicyId = "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.GetRoutingPolicyArgs;
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 routing policy ID
final var myPolicy = S2svpnFunctions.getRoutingPolicy(GetRoutingPolicyArgs.builder()
.routingPolicyId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by routing policy ID
myPolicy:
fn::invoke:
function: scaleway:s2svpn:getRoutingPolicy
arguments:
routingPolicyId: 11111111-1111-1111-1111-111111111111
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by name
const myPolicy = scaleway.s2svpn.getRoutingPolicy({
name: "foobar",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by name
my_policy = scaleway.s2svpn.get_routing_policy(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.LookupRoutingPolicy(ctx, &s2svpn.LookupRoutingPolicyArgs{
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 myPolicy = Scaleway.S2svpn.GetRoutingPolicy.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.GetRoutingPolicyArgs;
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 myPolicy = S2svpnFunctions.getRoutingPolicy(GetRoutingPolicyArgs.builder()
.name("foobar")
.build());
}
}
variables:
# Get info by name
myPolicy:
fn::invoke:
function: scaleway:s2svpn:getRoutingPolicy
arguments:
name: foobar
Using getRoutingPolicy
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 getRoutingPolicy(args: GetRoutingPolicyArgs, opts?: InvokeOptions): Promise<GetRoutingPolicyResult>
function getRoutingPolicyOutput(args: GetRoutingPolicyOutputArgs, opts?: InvokeOptions): Output<GetRoutingPolicyResult>def get_routing_policy(name: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
routing_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRoutingPolicyResult
def get_routing_policy_output(name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
routing_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoutingPolicyResult]func LookupRoutingPolicy(ctx *Context, args *LookupRoutingPolicyArgs, opts ...InvokeOption) (*LookupRoutingPolicyResult, error)
func LookupRoutingPolicyOutput(ctx *Context, args *LookupRoutingPolicyOutputArgs, opts ...InvokeOption) LookupRoutingPolicyResultOutput> Note: This function is named LookupRoutingPolicy in the Go SDK.
public static class GetRoutingPolicy
{
public static Task<GetRoutingPolicyResult> InvokeAsync(GetRoutingPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetRoutingPolicyResult> Invoke(GetRoutingPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRoutingPolicyResult> getRoutingPolicy(GetRoutingPolicyArgs args, InvokeOptions options)
public static Output<GetRoutingPolicyResult> getRoutingPolicy(GetRoutingPolicyArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:s2svpn/getRoutingPolicy:getRoutingPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the routing policy.
- Project
Id string - The ID of the project the routing policy is associated with.
- Region string
region) The region in which the routing policy exists.- Routing
Policy stringId The routing policy ID.
Note You must specify at least one:
nameand/orrouting_policy_id.
- Name string
- The name of the routing policy.
- Project
Id string - The ID of the project the routing policy is associated with.
- Region string
region) The region in which the routing policy exists.- Routing
Policy stringId The routing policy ID.
Note You must specify at least one:
nameand/orrouting_policy_id.
- name String
- The name of the routing policy.
- project
Id String - The ID of the project the routing policy is associated with.
- region String
region) The region in which the routing policy exists.- routing
Policy StringId The routing policy ID.
Note You must specify at least one:
nameand/orrouting_policy_id.
- name string
- The name of the routing policy.
- project
Id string - The ID of the project the routing policy is associated with.
- region string
region) The region in which the routing policy exists.- routing
Policy stringId The routing policy ID.
Note You must specify at least one:
nameand/orrouting_policy_id.
- name str
- The name of the routing policy.
- project_
id str - The ID of the project the routing policy is associated with.
- region str
region) The region in which the routing policy exists.- routing_
policy_ strid The routing policy ID.
Note You must specify at least one:
nameand/orrouting_policy_id.
- name String
- The name of the routing policy.
- project
Id String - The ID of the project the routing policy is associated with.
- region String
region) The region in which the routing policy exists.- routing
Policy StringId The routing policy ID.
Note You must specify at least one:
nameand/orrouting_policy_id.
getRoutingPolicy Result
The following output properties are available:
- Created
At string - The date and time of creation of the routing policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Ipv6 bool - Whether the routing policy is for IPv6 prefixes.
- Organization
Id string - The Organization ID the routing policy is associated with.
- Prefix
Filter List<string>Ins - List of IP prefixes accepted from the peer gateway.
- Prefix
Filter List<string>Outs - List of IP prefixes advertised to the peer gateway.
- List<string>
- The tags associated with the routing policy.
- Updated
At string - The date and time of the last update of the routing policy.
- Name string
- Project
Id string - Region string
- Routing
Policy stringId
- Created
At string - The date and time of creation of the routing policy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Ipv6 bool - Whether the routing policy is for IPv6 prefixes.
- Organization
Id string - The Organization ID the routing policy is associated with.
- Prefix
Filter []stringIns - List of IP prefixes accepted from the peer gateway.
- Prefix
Filter []stringOuts - List of IP prefixes advertised to the peer gateway.
- []string
- The tags associated with the routing policy.
- Updated
At string - The date and time of the last update of the routing policy.
- Name string
- Project
Id string - Region string
- Routing
Policy stringId
- created
At String - The date and time of creation of the routing policy.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Ipv6 Boolean - Whether the routing policy is for IPv6 prefixes.
- organization
Id String - The Organization ID the routing policy is associated with.
- prefix
Filter List<String>Ins - List of IP prefixes accepted from the peer gateway.
- prefix
Filter List<String>Outs - List of IP prefixes advertised to the peer gateway.
- List<String>
- The tags associated with the routing policy.
- updated
At String - The date and time of the last update of the routing policy.
- name String
- project
Id String - region String
- routing
Policy StringId
- created
At string - The date and time of creation of the routing policy.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Ipv6 boolean - Whether the routing policy is for IPv6 prefixes.
- organization
Id string - The Organization ID the routing policy is associated with.
- prefix
Filter string[]Ins - List of IP prefixes accepted from the peer gateway.
- prefix
Filter string[]Outs - List of IP prefixes advertised to the peer gateway.
- string[]
- The tags associated with the routing policy.
- updated
At string - The date and time of the last update of the routing policy.
- name string
- project
Id string - region string
- routing
Policy stringId
- created_
at str - The date and time of creation of the routing policy.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
ipv6 bool - Whether the routing policy is for IPv6 prefixes.
- organization_
id str - The Organization ID the routing policy is associated with.
- prefix_
filter_ Sequence[str]ins - List of IP prefixes accepted from the peer gateway.
- prefix_
filter_ Sequence[str]outs - List of IP prefixes advertised to the peer gateway.
- Sequence[str]
- The tags associated with the routing policy.
- updated_
at str - The date and time of the last update of the routing policy.
- name str
- project_
id str - region str
- routing_
policy_ strid
- created
At String - The date and time of creation of the routing policy.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Ipv6 Boolean - Whether the routing policy is for IPv6 prefixes.
- organization
Id String - The Organization ID the routing policy is associated with.
- prefix
Filter List<String>Ins - List of IP prefixes accepted from the peer gateway.
- prefix
Filter List<String>Outs - List of IP prefixes advertised to the peer gateway.
- List<String>
- The tags associated with the routing policy.
- updated
At String - The date and time of the last update of the routing policy.
- name String
- project
Id String - region String
- routing
Policy StringId
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
