Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
Deprecated: scaleway.index/getvpcprivatenetwork.getVpcPrivateNetwork has been deprecated in favor of scaleway.network/getprivatenetwork.getPrivateNetwork
Gets information about a Private Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by name
const myName = scaleway.network.getPrivateNetwork({
name: "foobar",
});
// Get info by name and VPC ID
const myNameAndVpcId = scaleway.network.getPrivateNetwork({
name: "foobar",
vpcId: "11111111-1111-1111-1111-111111111111",
});
// Get info by name in a specific region
const myNameAndRegion = scaleway.network.getPrivateNetwork({
name: "foobar",
region: "nl-ams",
});
// Get info by Private Network ID
const myId = scaleway.network.getPrivateNetwork({
privateNetworkId: "11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by name
my_name = scaleway.network.get_private_network(name="foobar")
# Get info by name and VPC ID
my_name_and_vpc_id = scaleway.network.get_private_network(name="foobar",
vpc_id="11111111-1111-1111-1111-111111111111")
# Get info by name in a specific region
my_name_and_region = scaleway.network.get_private_network(name="foobar",
region="nl-ams")
# Get info by Private Network ID
my_id = scaleway.network.get_private_network(private_network_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/network"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by name
_, err := network.LookupPrivateNetwork(ctx, &network.LookupPrivateNetworkArgs{
Name: pulumi.StringRef("foobar"),
}, nil)
if err != nil {
return err
}
// Get info by name and VPC ID
_, err = network.LookupPrivateNetwork(ctx, &network.LookupPrivateNetworkArgs{
Name: pulumi.StringRef("foobar"),
VpcId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
// Get info by name in a specific region
_, err = network.LookupPrivateNetwork(ctx, &network.LookupPrivateNetworkArgs{
Name: pulumi.StringRef("foobar"),
Region: pulumi.StringRef("nl-ams"),
}, nil)
if err != nil {
return err
}
// Get info by Private Network ID
_, err = network.LookupPrivateNetwork(ctx, &network.LookupPrivateNetworkArgs{
PrivateNetworkId: 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 name
var myName = Scaleway.Network.GetPrivateNetwork.Invoke(new()
{
Name = "foobar",
});
// Get info by name and VPC ID
var myNameAndVpcId = Scaleway.Network.GetPrivateNetwork.Invoke(new()
{
Name = "foobar",
VpcId = "11111111-1111-1111-1111-111111111111",
});
// Get info by name in a specific region
var myNameAndRegion = Scaleway.Network.GetPrivateNetwork.Invoke(new()
{
Name = "foobar",
Region = "nl-ams",
});
// Get info by Private Network ID
var myId = Scaleway.Network.GetPrivateNetwork.Invoke(new()
{
PrivateNetworkId = "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.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetPrivateNetworkArgs;
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 myName = NetworkFunctions.getPrivateNetwork(GetPrivateNetworkArgs.builder()
.name("foobar")
.build());
// Get info by name and VPC ID
final var myNameAndVpcId = NetworkFunctions.getPrivateNetwork(GetPrivateNetworkArgs.builder()
.name("foobar")
.vpcId("11111111-1111-1111-1111-111111111111")
.build());
// Get info by name in a specific region
final var myNameAndRegion = NetworkFunctions.getPrivateNetwork(GetPrivateNetworkArgs.builder()
.name("foobar")
.region("nl-ams")
.build());
// Get info by Private Network ID
final var myId = NetworkFunctions.getPrivateNetwork(GetPrivateNetworkArgs.builder()
.privateNetworkId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by name
myName:
fn::invoke:
function: scaleway:network:getPrivateNetwork
arguments:
name: foobar
# Get info by name and VPC ID
myNameAndVpcId:
fn::invoke:
function: scaleway:network:getPrivateNetwork
arguments:
name: foobar
vpcId: 11111111-1111-1111-1111-111111111111
# Get info by name in a specific region
myNameAndRegion:
fn::invoke:
function: scaleway:network:getPrivateNetwork
arguments:
name: foobar
region: nl-ams
# Get info by Private Network ID
myId:
fn::invoke:
function: scaleway:network:getPrivateNetwork
arguments:
privateNetworkId: 11111111-1111-1111-1111-111111111111
Using getVpcPrivateNetwork
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 getVpcPrivateNetwork(args: GetVpcPrivateNetworkArgs, opts?: InvokeOptions): Promise<GetVpcPrivateNetworkResult>
function getVpcPrivateNetworkOutput(args: GetVpcPrivateNetworkOutputArgs, opts?: InvokeOptions): Output<GetVpcPrivateNetworkResult>def get_vpc_private_network(name: Optional[str] = None,
private_network_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpcPrivateNetworkResult
def get_vpc_private_network_output(name: Optional[pulumi.Input[str]] = None,
private_network_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpcPrivateNetworkResult]func LookupVpcPrivateNetwork(ctx *Context, args *LookupVpcPrivateNetworkArgs, opts ...InvokeOption) (*LookupVpcPrivateNetworkResult, error)
func LookupVpcPrivateNetworkOutput(ctx *Context, args *LookupVpcPrivateNetworkOutputArgs, opts ...InvokeOption) LookupVpcPrivateNetworkResultOutput> Note: This function is named LookupVpcPrivateNetwork in the Go SDK.
public static class GetVpcPrivateNetwork
{
public static Task<GetVpcPrivateNetworkResult> InvokeAsync(GetVpcPrivateNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetVpcPrivateNetworkResult> Invoke(GetVpcPrivateNetworkInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpcPrivateNetworkResult> getVpcPrivateNetwork(GetVpcPrivateNetworkArgs args, InvokeOptions options)
public static Output<GetVpcPrivateNetworkResult> getVpcPrivateNetwork(GetVpcPrivateNetworkArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:index/getVpcPrivateNetwork:getVpcPrivateNetwork
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Name of the Private Network. Cannot be used with
private_network_id. - Private
Network stringId - ID of the Private Network. Cannot be used with
nameorvpc_id. - Project
Id string - The ID of the Project the Private Network is associated with.
- Region string
region) The region in which the Private Network exists.- Vpc
Id string - ID of the VPC the Private Network is in. Cannot be used with
private_network_id.
- Name string
- Name of the Private Network. Cannot be used with
private_network_id. - Private
Network stringId - ID of the Private Network. Cannot be used with
nameorvpc_id. - Project
Id string - The ID of the Project the Private Network is associated with.
- Region string
region) The region in which the Private Network exists.- Vpc
Id string - ID of the VPC the Private Network is in. Cannot be used with
private_network_id.
- name String
- Name of the Private Network. Cannot be used with
private_network_id. - private
Network StringId - ID of the Private Network. Cannot be used with
nameorvpc_id. - project
Id String - The ID of the Project the Private Network is associated with.
- region String
region) The region in which the Private Network exists.- vpc
Id String - ID of the VPC the Private Network is in. Cannot be used with
private_network_id.
- name string
- Name of the Private Network. Cannot be used with
private_network_id. - private
Network stringId - ID of the Private Network. Cannot be used with
nameorvpc_id. - project
Id string - The ID of the Project the Private Network is associated with.
- region string
region) The region in which the Private Network exists.- vpc
Id string - ID of the VPC the Private Network is in. Cannot be used with
private_network_id.
- name str
- Name of the Private Network. Cannot be used with
private_network_id. - private_
network_ strid - ID of the Private Network. Cannot be used with
nameorvpc_id. - project_
id str - The ID of the Project the Private Network is associated with.
- region str
region) The region in which the Private Network exists.- vpc_
id str - ID of the VPC the Private Network is in. Cannot be used with
private_network_id.
- name String
- Name of the Private Network. Cannot be used with
private_network_id. - private
Network StringId - ID of the Private Network. Cannot be used with
nameorvpc_id. - project
Id String - The ID of the Project the Private Network is associated with.
- region String
region) The region in which the Private Network exists.- vpc
Id String - ID of the VPC the Private Network is in. Cannot be used with
private_network_id.
getVpcPrivateNetwork Result
The following output properties are available:
- Created
At string - Enable
Default boolRoute Propagation - Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Subnets
List<Pulumiverse.
Scaleway. Outputs. Get Vpc Private Network Ipv4Subnet> - The IPv4 subnet associated with the Private Network.
- Ipv6Subnets
List<Pulumiverse.
Scaleway. Outputs. Get Vpc Private Network Ipv6Subnet> - The IPv6 subnets associated with the Private Network.
- Is
Regional bool - Organization
Id string - List<string>
- Updated
At string - Zone string
- Name string
- Private
Network stringId - Project
Id string - Region string
- Vpc
Id string
- Created
At string - Enable
Default boolRoute Propagation - Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Subnets
[]Get
Vpc Private Network Ipv4Subnet - The IPv4 subnet associated with the Private Network.
- Ipv6Subnets
[]Get
Vpc Private Network Ipv6Subnet - The IPv6 subnets associated with the Private Network.
- Is
Regional bool - Organization
Id string - []string
- Updated
At string - Zone string
- Name string
- Private
Network stringId - Project
Id string - Region string
- Vpc
Id string
- created
At String - enable
Default BooleanRoute Propagation - id String
- The provider-assigned unique ID for this managed resource.
- ipv4Subnets
List<Get
Vpc Private Network Ipv4Subnet> - The IPv4 subnet associated with the Private Network.
- ipv6Subnets
List<Get
Vpc Private Network Ipv6Subnet> - The IPv6 subnets associated with the Private Network.
- is
Regional Boolean - organization
Id String - List<String>
- updated
At String - zone String
- name String
- private
Network StringId - project
Id String - region String
- vpc
Id String
- created
At string - enable
Default booleanRoute Propagation - id string
- The provider-assigned unique ID for this managed resource.
- ipv4Subnets
Get
Vpc Private Network Ipv4Subnet[] - The IPv4 subnet associated with the Private Network.
- ipv6Subnets
Get
Vpc Private Network Ipv6Subnet[] - The IPv6 subnets associated with the Private Network.
- is
Regional boolean - organization
Id string - string[]
- updated
At string - zone string
- name string
- private
Network stringId - project
Id string - region string
- vpc
Id string
- created_
at str - enable_
default_ boolroute_ propagation - id str
- The provider-assigned unique ID for this managed resource.
- ipv4_
subnets Sequence[GetVpc Private Network Ipv4Subnet] - The IPv4 subnet associated with the Private Network.
- ipv6_
subnets Sequence[GetVpc Private Network Ipv6Subnet] - The IPv6 subnets associated with the Private Network.
- is_
regional bool - organization_
id str - Sequence[str]
- updated_
at str - zone str
- name str
- private_
network_ strid - project_
id str - region str
- vpc_
id str
- created
At String - enable
Default BooleanRoute Propagation - id String
- The provider-assigned unique ID for this managed resource.
- ipv4Subnets List<Property Map>
- The IPv4 subnet associated with the Private Network.
- ipv6Subnets List<Property Map>
- The IPv6 subnets associated with the Private Network.
- is
Regional Boolean - organization
Id String - List<String>
- updated
At String - zone String
- name String
- private
Network StringId - project
Id String - region String
- vpc
Id String
Supporting Types
GetVpcPrivateNetworkIpv4Subnet
- Address string
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- Created
At string - The date and time of the creation of the subnet
- Id string
- The ID of the Private Network.
- Prefix
Length int - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- Subnet string
- The subnet CIDR
- Subnet
Mask string - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- Updated
At string - The date and time of the last update of the subnet
- Address string
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- Created
At string - The date and time of the creation of the subnet
- Id string
- The ID of the Private Network.
- Prefix
Length int - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- Subnet string
- The subnet CIDR
- Subnet
Mask string - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- Updated
At string - The date and time of the last update of the subnet
- address String
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created
At String - The date and time of the creation of the subnet
- id String
- The ID of the Private Network.
- prefix
Length Integer - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet String
- The subnet CIDR
- subnet
Mask String - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated
At String - The date and time of the last update of the subnet
- address string
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created
At string - The date and time of the creation of the subnet
- id string
- The ID of the Private Network.
- prefix
Length number - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet string
- The subnet CIDR
- subnet
Mask string - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated
At string - The date and time of the last update of the subnet
- address str
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created_
at str - The date and time of the creation of the subnet
- id str
- The ID of the Private Network.
- prefix_
length int - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet str
- The subnet CIDR
- subnet_
mask str - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated_
at str - The date and time of the last update of the subnet
- address String
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created
At String - The date and time of the creation of the subnet
- id String
- The ID of the Private Network.
- prefix
Length Number - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet String
- The subnet CIDR
- subnet
Mask String - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated
At String - The date and time of the last update of the subnet
GetVpcPrivateNetworkIpv6Subnet
- Address string
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- Created
At string - The date and time of the creation of the subnet
- Id string
- The ID of the Private Network.
- Prefix
Length int - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- Subnet string
- The subnet CIDR
- Subnet
Mask string - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- Updated
At string - The date and time of the last update of the subnet
- Address string
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- Created
At string - The date and time of the creation of the subnet
- Id string
- The ID of the Private Network.
- Prefix
Length int - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- Subnet string
- The subnet CIDR
- Subnet
Mask string - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- Updated
At string - The date and time of the last update of the subnet
- address String
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created
At String - The date and time of the creation of the subnet
- id String
- The ID of the Private Network.
- prefix
Length Integer - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet String
- The subnet CIDR
- subnet
Mask String - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated
At String - The date and time of the last update of the subnet
- address string
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created
At string - The date and time of the creation of the subnet
- id string
- The ID of the Private Network.
- prefix
Length number - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet string
- The subnet CIDR
- subnet
Mask string - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated
At string - The date and time of the last update of the subnet
- address str
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created_
at str - The date and time of the creation of the subnet
- id str
- The ID of the Private Network.
- prefix_
length int - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet str
- The subnet CIDR
- subnet_
mask str - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated_
at str - The date and time of the last update of the subnet
- address String
- The network address of the subnet in dotted decimal notation, e.g., '192.168.0.0' for a '192.168.0.0/24' subnet
- created
At String - The date and time of the creation of the subnet
- id String
- The ID of the Private Network.
- prefix
Length Number - The length of the network prefix, e.g., 24 for a 255.255.255.0 mask
- subnet String
- The subnet CIDR
- subnet
Mask String - The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
- updated
At String - The date and time of the last update of the subnet
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
Viewing docs for Scaleway v1.44.1
published on Monday, Mar 9, 2026 by pulumiverse
published on Monday, Mar 9, 2026 by pulumiverse
