published on Wednesday, Apr 29, 2026 by pulumiverse
published on Wednesday, Apr 29, 2026 by pulumiverse
Gets information about an Interlink Routing Policy.
A routing policy defines IP prefix filters that control which routes are accepted from and advertised to a peer via BGP on an Interlink connection.
For more information, see the Interlink documentation and API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get routing policy info by ID
const myPolicy = scaleway.interlink.getRoutingPolicy({
routingPolicyId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get routing policy info by ID
my_policy = scaleway.interlink.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/interlink"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get routing policy info by ID
_, err := interlink.LookupRoutingPolicy(ctx, &interlink.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 = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get routing policy info by ID
var myPolicy = Scaleway.Interlink.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.interlink.InterlinkFunctions;
import com.pulumi.scaleway.interlink.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 routing policy info by ID
final var myPolicy = InterlinkFunctions.getRoutingPolicy(GetRoutingPolicyArgs.builder()
.routingPolicyId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get routing policy info by ID
myPolicy:
fn::invoke:
function: scaleway:interlink:getRoutingPolicy
arguments:
routingPolicyId: 11111111-1111-1111-1111-111111111111
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get routing policy info by name
const myPolicy = scaleway.interlink.getRoutingPolicy({
name: "my-routing-policy",
});
import pulumi
import pulumi_scaleway as scaleway
# Get routing policy info by name
my_policy = scaleway.interlink.get_routing_policy(name="my-routing-policy")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/interlink"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get routing policy info by name
_, err := interlink.LookupRoutingPolicy(ctx, &interlink.LookupRoutingPolicyArgs{
Name: pulumi.StringRef("my-routing-policy"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get routing policy info by name
var myPolicy = Scaleway.Interlink.GetRoutingPolicy.Invoke(new()
{
Name = "my-routing-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.interlink.InterlinkFunctions;
import com.pulumi.scaleway.interlink.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 routing policy info by name
final var myPolicy = InterlinkFunctions.getRoutingPolicy(GetRoutingPolicyArgs.builder()
.name("my-routing-policy")
.build());
}
}
variables:
# Get routing policy info by name
myPolicy:
fn::invoke:
function: scaleway:interlink:getRoutingPolicy
arguments:
name: my-routing-policy
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:interlink/getRoutingPolicy:getRoutingPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of the routing policy. Conflicts with
routingPolicyId. - 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 ID of the routing policy. Conflicts with
name.Note You must specify at least one:
nameand/orroutingPolicyId.
- Name string
- The name of the routing policy. Conflicts with
routingPolicyId. - 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 ID of the routing policy. Conflicts with
name.Note You must specify at least one:
nameand/orroutingPolicyId.
- name String
- The name of the routing policy. Conflicts with
routingPolicyId. - 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 ID of the routing policy. Conflicts with
name.Note You must specify at least one:
nameand/orroutingPolicyId.
- name string
- The name of the routing policy. Conflicts with
routingPolicyId. - 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 ID of the routing policy. Conflicts with
name.Note You must specify at least one:
nameand/orroutingPolicyId.
- name str
- The name of the routing policy. Conflicts with
routingPolicyId. - 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 ID of the routing policy. Conflicts with
name.Note You must specify at least one:
nameand/orroutingPolicyId.
- name String
- The name of the routing policy. Conflicts with
routingPolicyId. - 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 ID of the routing policy. Conflicts with
name.Note You must specify at least one:
nameand/orroutingPolicyId.
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 uses 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.
- Prefix
Filter List<string>Outs - List of IP prefixes advertised to the peer.
- 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 uses 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.
- Prefix
Filter []stringOuts - List of IP prefixes advertised to the peer.
- []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 uses 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.
- prefix
Filter List<String>Outs - List of IP prefixes advertised to the peer.
- 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 uses 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.
- prefix
Filter string[]Outs - List of IP prefixes advertised to the peer.
- 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 uses 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.
- prefix_
filter_ Sequence[str]outs - List of IP prefixes advertised to the peer.
- 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 uses 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.
- prefix
Filter List<String>Outs - List of IP prefixes advertised to the peer.
- 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 Wednesday, Apr 29, 2026 by pulumiverse
