1. Packages
  2. Scaleway
  3. API Docs
  4. network
  5. PrivateNetwork
Scaleway v1.26.0 published on Friday, Mar 28, 2025 by pulumiverse

scaleway.network.PrivateNetwork

Explore with Pulumi AI

Creates and manages Scaleway VPC Private Networks. For more information, see the API documentation.

Example Usage

Basic

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const pnPriv = new scaleway.network.PrivateNetwork("pn_priv", {
    name: "subnet_demo",
    tags: [
        "demo",
        "terraform",
    ],
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

pn_priv = scaleway.network.PrivateNetwork("pn_priv",
    name="subnet_demo",
    tags=[
        "demo",
        "terraform",
    ])
Copy
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 {
		_, err := network.NewPrivateNetwork(ctx, "pn_priv", &network.PrivateNetworkArgs{
			Name: pulumi.String("subnet_demo"),
			Tags: pulumi.StringArray{
				pulumi.String("demo"),
				pulumi.String("terraform"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var pnPriv = new Scaleway.Network.PrivateNetwork("pn_priv", new()
    {
        Name = "subnet_demo",
        Tags = new[]
        {
            "demo",
            "terraform",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.PrivateNetwork;
import com.pulumi.scaleway.network.PrivateNetworkArgs;
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) {
        var pnPriv = new PrivateNetwork("pnPriv", PrivateNetworkArgs.builder()
            .name("subnet_demo")
            .tags(            
                "demo",
                "terraform")
            .build());

    }
}
Copy
resources:
  pnPriv:
    type: scaleway:network:PrivateNetwork
    name: pn_priv
    properties:
      name: subnet_demo
      tags:
        - demo
        - terraform
Copy

With subnets

import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";

const pnPriv = new scaleway.network.PrivateNetwork("pn_priv", {
    name: "subnet_demo",
    tags: [
        "demo",
        "terraform",
    ],
    ipv4Subnet: {
        subnet: "192.168.0.0/24",
    },
    ipv6Subnets: [
        {
            subnet: "fd46:78ab:30b8:177c::/64",
        },
        {
            subnet: "fd46:78ab:30b8:c7df::/64",
        },
    ],
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

pn_priv = scaleway.network.PrivateNetwork("pn_priv",
    name="subnet_demo",
    tags=[
        "demo",
        "terraform",
    ],
    ipv4_subnet={
        "subnet": "192.168.0.0/24",
    },
    ipv6_subnets=[
        {
            "subnet": "fd46:78ab:30b8:177c::/64",
        },
        {
            "subnet": "fd46:78ab:30b8:c7df::/64",
        },
    ])
Copy
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 {
		_, err := network.NewPrivateNetwork(ctx, "pn_priv", &network.PrivateNetworkArgs{
			Name: pulumi.String("subnet_demo"),
			Tags: pulumi.StringArray{
				pulumi.String("demo"),
				pulumi.String("terraform"),
			},
			Ipv4Subnet: &network.PrivateNetworkIpv4SubnetArgs{
				Subnet: pulumi.String("192.168.0.0/24"),
			},
			Ipv6Subnets: network.PrivateNetworkIpv6SubnetArray{
				&network.PrivateNetworkIpv6SubnetArgs{
					Subnet: pulumi.String("fd46:78ab:30b8:177c::/64"),
				},
				&network.PrivateNetworkIpv6SubnetArgs{
					Subnet: pulumi.String("fd46:78ab:30b8:c7df::/64"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;

return await Deployment.RunAsync(() => 
{
    var pnPriv = new Scaleway.Network.PrivateNetwork("pn_priv", new()
    {
        Name = "subnet_demo",
        Tags = new[]
        {
            "demo",
            "terraform",
        },
        Ipv4Subnet = new Scaleway.Network.Inputs.PrivateNetworkIpv4SubnetArgs
        {
            Subnet = "192.168.0.0/24",
        },
        Ipv6Subnets = new[]
        {
            new Scaleway.Network.Inputs.PrivateNetworkIpv6SubnetArgs
            {
                Subnet = "fd46:78ab:30b8:177c::/64",
            },
            new Scaleway.Network.Inputs.PrivateNetworkIpv6SubnetArgs
            {
                Subnet = "fd46:78ab:30b8:c7df::/64",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.PrivateNetwork;
import com.pulumi.scaleway.network.PrivateNetworkArgs;
import com.pulumi.scaleway.network.inputs.PrivateNetworkIpv4SubnetArgs;
import com.pulumi.scaleway.network.inputs.PrivateNetworkIpv6SubnetArgs;
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) {
        var pnPriv = new PrivateNetwork("pnPriv", PrivateNetworkArgs.builder()
            .name("subnet_demo")
            .tags(            
                "demo",
                "terraform")
            .ipv4Subnet(PrivateNetworkIpv4SubnetArgs.builder()
                .subnet("192.168.0.0/24")
                .build())
            .ipv6Subnets(            
                PrivateNetworkIpv6SubnetArgs.builder()
                    .subnet("fd46:78ab:30b8:177c::/64")
                    .build(),
                PrivateNetworkIpv6SubnetArgs.builder()
                    .subnet("fd46:78ab:30b8:c7df::/64")
                    .build())
            .build());

    }
}
Copy
resources:
  pnPriv:
    type: scaleway:network:PrivateNetwork
    name: pn_priv
    properties:
      name: subnet_demo
      tags:
        - demo
        - terraform
      ipv4Subnet:
        subnet: 192.168.0.0/24
      ipv6Subnets:
        - subnet: fd46:78ab:30b8:177c::/64
        - subnet: fd46:78ab:30b8:c7df::/64
Copy

Create PrivateNetwork Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new PrivateNetwork(name: string, args?: PrivateNetworkArgs, opts?: CustomResourceOptions);
@overload
def PrivateNetwork(resource_name: str,
                   args: Optional[PrivateNetworkArgs] = None,
                   opts: Optional[ResourceOptions] = None)

@overload
def PrivateNetwork(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   ipv4_subnet: Optional[PrivateNetworkIpv4SubnetArgs] = None,
                   ipv6_subnets: Optional[Sequence[PrivateNetworkIpv6SubnetArgs]] = None,
                   is_regional: Optional[bool] = None,
                   name: Optional[str] = None,
                   project_id: Optional[str] = None,
                   region: Optional[str] = None,
                   tags: Optional[Sequence[str]] = None,
                   vpc_id: Optional[str] = None,
                   zone: Optional[str] = None)
func NewPrivateNetwork(ctx *Context, name string, args *PrivateNetworkArgs, opts ...ResourceOption) (*PrivateNetwork, error)
public PrivateNetwork(string name, PrivateNetworkArgs? args = null, CustomResourceOptions? opts = null)
public PrivateNetwork(String name, PrivateNetworkArgs args)
public PrivateNetwork(String name, PrivateNetworkArgs args, CustomResourceOptions options)
type: scaleway:network:PrivateNetwork
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args PrivateNetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args PrivateNetworkArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args PrivateNetworkArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args PrivateNetworkArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PrivateNetworkArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var privateNetworkResource = new Scaleway.Network.PrivateNetwork("privateNetworkResource", new()
{
    Ipv4Subnet = new Scaleway.Network.Inputs.PrivateNetworkIpv4SubnetArgs
    {
        Address = "string",
        CreatedAt = "string",
        Id = "string",
        PrefixLength = 0,
        Subnet = "string",
        SubnetMask = "string",
        UpdatedAt = "string",
    },
    Ipv6Subnets = new[]
    {
        new Scaleway.Network.Inputs.PrivateNetworkIpv6SubnetArgs
        {
            Address = "string",
            CreatedAt = "string",
            Id = "string",
            PrefixLength = 0,
            Subnet = "string",
            SubnetMask = "string",
            UpdatedAt = "string",
        },
    },
    Name = "string",
    ProjectId = "string",
    Region = "string",
    Tags = new[]
    {
        "string",
    },
    VpcId = "string",
});
Copy
example, err := network.NewPrivateNetwork(ctx, "privateNetworkResource", &network.PrivateNetworkArgs{
	Ipv4Subnet: &network.PrivateNetworkIpv4SubnetArgs{
		Address:      pulumi.String("string"),
		CreatedAt:    pulumi.String("string"),
		Id:           pulumi.String("string"),
		PrefixLength: pulumi.Int(0),
		Subnet:       pulumi.String("string"),
		SubnetMask:   pulumi.String("string"),
		UpdatedAt:    pulumi.String("string"),
	},
	Ipv6Subnets: network.PrivateNetworkIpv6SubnetArray{
		&network.PrivateNetworkIpv6SubnetArgs{
			Address:      pulumi.String("string"),
			CreatedAt:    pulumi.String("string"),
			Id:           pulumi.String("string"),
			PrefixLength: pulumi.Int(0),
			Subnet:       pulumi.String("string"),
			SubnetMask:   pulumi.String("string"),
			UpdatedAt:    pulumi.String("string"),
		},
	},
	Name:      pulumi.String("string"),
	ProjectId: pulumi.String("string"),
	Region:    pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	VpcId: pulumi.String("string"),
})
Copy
var privateNetworkResource = new PrivateNetwork("privateNetworkResource", PrivateNetworkArgs.builder()
    .ipv4Subnet(PrivateNetworkIpv4SubnetArgs.builder()
        .address("string")
        .createdAt("string")
        .id("string")
        .prefixLength(0)
        .subnet("string")
        .subnetMask("string")
        .updatedAt("string")
        .build())
    .ipv6Subnets(PrivateNetworkIpv6SubnetArgs.builder()
        .address("string")
        .createdAt("string")
        .id("string")
        .prefixLength(0)
        .subnet("string")
        .subnetMask("string")
        .updatedAt("string")
        .build())
    .name("string")
    .projectId("string")
    .region("string")
    .tags("string")
    .vpcId("string")
    .build());
Copy
private_network_resource = scaleway.network.PrivateNetwork("privateNetworkResource",
    ipv4_subnet={
        "address": "string",
        "created_at": "string",
        "id": "string",
        "prefix_length": 0,
        "subnet": "string",
        "subnet_mask": "string",
        "updated_at": "string",
    },
    ipv6_subnets=[{
        "address": "string",
        "created_at": "string",
        "id": "string",
        "prefix_length": 0,
        "subnet": "string",
        "subnet_mask": "string",
        "updated_at": "string",
    }],
    name="string",
    project_id="string",
    region="string",
    tags=["string"],
    vpc_id="string")
Copy
const privateNetworkResource = new scaleway.network.PrivateNetwork("privateNetworkResource", {
    ipv4Subnet: {
        address: "string",
        createdAt: "string",
        id: "string",
        prefixLength: 0,
        subnet: "string",
        subnetMask: "string",
        updatedAt: "string",
    },
    ipv6Subnets: [{
        address: "string",
        createdAt: "string",
        id: "string",
        prefixLength: 0,
        subnet: "string",
        subnetMask: "string",
        updatedAt: "string",
    }],
    name: "string",
    projectId: "string",
    region: "string",
    tags: ["string"],
    vpcId: "string",
});
Copy
type: scaleway:network:PrivateNetwork
properties:
    ipv4Subnet:
        address: string
        createdAt: string
        id: string
        prefixLength: 0
        subnet: string
        subnetMask: string
        updatedAt: string
    ipv6Subnets:
        - address: string
          createdAt: string
          id: string
          prefixLength: 0
          subnet: string
          subnetMask: string
          updatedAt: string
    name: string
    projectId: string
    region: string
    tags:
        - string
    vpcId: string
Copy

PrivateNetwork Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The PrivateNetwork resource accepts the following input properties:

Ipv4Subnet Pulumiverse.Scaleway.Network.Inputs.PrivateNetworkIpv4Subnet
The IPv4 subnet to associate with the Private Network.
Ipv6Subnets List<Pulumiverse.Scaleway.Network.Inputs.PrivateNetworkIpv6Subnet>
The IPv6 subnets to associate with the private network.
IsRegional bool
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

Name string
The name of the Private Network. If not provided, it will be randomly generated.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the private network is associated with.
Region Changes to this property will trigger replacement. string
region) The region of the Private Network.
Tags List<string>
The tags associated with the Private Network.
VpcId Changes to this property will trigger replacement. string
The VPC in which to create the Private Network.
Zone string
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

Ipv4Subnet PrivateNetworkIpv4SubnetArgs
The IPv4 subnet to associate with the Private Network.
Ipv6Subnets []PrivateNetworkIpv6SubnetArgs
The IPv6 subnets to associate with the private network.
IsRegional bool
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

Name string
The name of the Private Network. If not provided, it will be randomly generated.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the private network is associated with.
Region Changes to this property will trigger replacement. string
region) The region of the Private Network.
Tags []string
The tags associated with the Private Network.
VpcId Changes to this property will trigger replacement. string
The VPC in which to create the Private Network.
Zone string
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

ipv4Subnet PrivateNetworkIpv4Subnet
The IPv4 subnet to associate with the Private Network.
ipv6Subnets List<PrivateNetworkIpv6Subnet>
The IPv6 subnets to associate with the private network.
isRegional Boolean
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name String
The name of the Private Network. If not provided, it will be randomly generated.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. String
region) The region of the Private Network.
tags List<String>
The tags associated with the Private Network.
vpcId Changes to this property will trigger replacement. String
The VPC in which to create the Private Network.
zone String
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

ipv4Subnet PrivateNetworkIpv4Subnet
The IPv4 subnet to associate with the Private Network.
ipv6Subnets PrivateNetworkIpv6Subnet[]
The IPv6 subnets to associate with the private network.
isRegional boolean
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name string
The name of the Private Network. If not provided, it will be randomly generated.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. string
region) The region of the Private Network.
tags string[]
The tags associated with the Private Network.
vpcId Changes to this property will trigger replacement. string
The VPC in which to create the Private Network.
zone string
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

ipv4_subnet PrivateNetworkIpv4SubnetArgs
The IPv4 subnet to associate with the Private Network.
ipv6_subnets Sequence[PrivateNetworkIpv6SubnetArgs]
The IPv6 subnets to associate with the private network.
is_regional bool
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name str
The name of the Private Network. If not provided, it will be randomly generated.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. str
region) The region of the Private Network.
tags Sequence[str]
The tags associated with the Private Network.
vpc_id Changes to this property will trigger replacement. str
The VPC in which to create the Private Network.
zone str
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

ipv4Subnet Property Map
The IPv4 subnet to associate with the Private Network.
ipv6Subnets List<Property Map>
The IPv6 subnets to associate with the private network.
isRegional Boolean
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name String
The name of the Private Network. If not provided, it will be randomly generated.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. String
region) The region of the Private Network.
tags List<String>
The tags associated with the Private Network.
vpcId Changes to this property will trigger replacement. String
The VPC in which to create the Private Network.
zone String
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

Outputs

All input properties are implicitly available as output properties. Additionally, the PrivateNetwork resource produces the following output properties:

CreatedAt string
The date and time of the creation of the subnet.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The Organization ID the Private Network is associated with.
UpdatedAt string
The date and time of the last update of the subnet.
CreatedAt string
The date and time of the creation of the subnet.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationId string
The Organization ID the Private Network is associated with.
UpdatedAt string
The date and time of the last update of the subnet.
createdAt String
The date and time of the creation of the subnet.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The Organization ID the Private Network is associated with.
updatedAt String
The date and time of the last update of the subnet.
createdAt string
The date and time of the creation of the subnet.
id string
The provider-assigned unique ID for this managed resource.
organizationId string
The Organization ID the Private Network is associated with.
updatedAt string
The date and time of the last update of the subnet.
created_at str
The date and time of the creation of the subnet.
id str
The provider-assigned unique ID for this managed resource.
organization_id str
The Organization ID the Private Network is associated with.
updated_at str
The date and time of the last update of the subnet.
createdAt String
The date and time of the creation of the subnet.
id String
The provider-assigned unique ID for this managed resource.
organizationId String
The Organization ID the Private Network is associated with.
updatedAt String
The date and time of the last update of the subnet.

Look up Existing PrivateNetwork Resource

Get an existing PrivateNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PrivateNetworkState, opts?: CustomResourceOptions): PrivateNetwork
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        ipv4_subnet: Optional[PrivateNetworkIpv4SubnetArgs] = None,
        ipv6_subnets: Optional[Sequence[PrivateNetworkIpv6SubnetArgs]] = None,
        is_regional: Optional[bool] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        project_id: Optional[str] = None,
        region: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        updated_at: Optional[str] = None,
        vpc_id: Optional[str] = None,
        zone: Optional[str] = None) -> PrivateNetwork
func GetPrivateNetwork(ctx *Context, name string, id IDInput, state *PrivateNetworkState, opts ...ResourceOption) (*PrivateNetwork, error)
public static PrivateNetwork Get(string name, Input<string> id, PrivateNetworkState? state, CustomResourceOptions? opts = null)
public static PrivateNetwork get(String name, Output<String> id, PrivateNetworkState state, CustomResourceOptions options)
resources:  _:    type: scaleway:network:PrivateNetwork    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
The date and time of the creation of the subnet.
Ipv4Subnet Pulumiverse.Scaleway.Network.Inputs.PrivateNetworkIpv4Subnet
The IPv4 subnet to associate with the Private Network.
Ipv6Subnets List<Pulumiverse.Scaleway.Network.Inputs.PrivateNetworkIpv6Subnet>
The IPv6 subnets to associate with the private network.
IsRegional bool
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

Name string
The name of the Private Network. If not provided, it will be randomly generated.
OrganizationId string
The Organization ID the Private Network is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the private network is associated with.
Region Changes to this property will trigger replacement. string
region) The region of the Private Network.
Tags List<string>
The tags associated with the Private Network.
UpdatedAt string
The date and time of the last update of the subnet.
VpcId Changes to this property will trigger replacement. string
The VPC in which to create the Private Network.
Zone string
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

CreatedAt string
The date and time of the creation of the subnet.
Ipv4Subnet PrivateNetworkIpv4SubnetArgs
The IPv4 subnet to associate with the Private Network.
Ipv6Subnets []PrivateNetworkIpv6SubnetArgs
The IPv6 subnets to associate with the private network.
IsRegional bool
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

Name string
The name of the Private Network. If not provided, it will be randomly generated.
OrganizationId string
The Organization ID the Private Network is associated with.
ProjectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the private network is associated with.
Region Changes to this property will trigger replacement. string
region) The region of the Private Network.
Tags []string
The tags associated with the Private Network.
UpdatedAt string
The date and time of the last update of the subnet.
VpcId Changes to this property will trigger replacement. string
The VPC in which to create the Private Network.
Zone string
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

createdAt String
The date and time of the creation of the subnet.
ipv4Subnet PrivateNetworkIpv4Subnet
The IPv4 subnet to associate with the Private Network.
ipv6Subnets List<PrivateNetworkIpv6Subnet>
The IPv6 subnets to associate with the private network.
isRegional Boolean
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name String
The name of the Private Network. If not provided, it will be randomly generated.
organizationId String
The Organization ID the Private Network is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. String
region) The region of the Private Network.
tags List<String>
The tags associated with the Private Network.
updatedAt String
The date and time of the last update of the subnet.
vpcId Changes to this property will trigger replacement. String
The VPC in which to create the Private Network.
zone String
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

createdAt string
The date and time of the creation of the subnet.
ipv4Subnet PrivateNetworkIpv4Subnet
The IPv4 subnet to associate with the Private Network.
ipv6Subnets PrivateNetworkIpv6Subnet[]
The IPv6 subnets to associate with the private network.
isRegional boolean
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name string
The name of the Private Network. If not provided, it will be randomly generated.
organizationId string
The Organization ID the Private Network is associated with.
projectId Changes to this property will trigger replacement. string
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. string
region) The region of the Private Network.
tags string[]
The tags associated with the Private Network.
updatedAt string
The date and time of the last update of the subnet.
vpcId Changes to this property will trigger replacement. string
The VPC in which to create the Private Network.
zone string
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

created_at str
The date and time of the creation of the subnet.
ipv4_subnet PrivateNetworkIpv4SubnetArgs
The IPv4 subnet to associate with the Private Network.
ipv6_subnets Sequence[PrivateNetworkIpv6SubnetArgs]
The IPv6 subnets to associate with the private network.
is_regional bool
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name str
The name of the Private Network. If not provided, it will be randomly generated.
organization_id str
The Organization ID the Private Network is associated with.
project_id Changes to this property will trigger replacement. str
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. str
region) The region of the Private Network.
tags Sequence[str]
The tags associated with the Private Network.
updated_at str
The date and time of the last update of the subnet.
vpc_id Changes to this property will trigger replacement. str
The VPC in which to create the Private Network.
zone str
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

createdAt String
The date and time of the creation of the subnet.
ipv4Subnet Property Map
The IPv4 subnet to associate with the Private Network.
ipv6Subnets List<Property Map>
The IPv6 subnets to associate with the private network.
isRegional Boolean
Private Networks are now all necessarily regional.

Deprecated: This field is deprecated and will be removed in the next major version

name String
The name of the Private Network. If not provided, it will be randomly generated.
organizationId String
The Organization ID the Private Network is associated with.
projectId Changes to this property will trigger replacement. String
project_id) The ID of the Project the private network is associated with.
region Changes to this property will trigger replacement. String
region) The region of the Private Network.
tags List<String>
The tags associated with the Private Network.
updatedAt String
The date and time of the last update of the subnet.
vpcId Changes to this property will trigger replacement. String
The VPC in which to create the Private Network.
zone String
Use region instead.

Deprecated: This field is deprecated and will be removed in the next major version, please use region instead

Supporting Types

PrivateNetworkIpv4Subnet
, PrivateNetworkIpv4SubnetArgs

Address string
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
CreatedAt string
The date and time of the creation of the subnet.
Id string
The subnet ID.
PrefixLength int
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
Subnet Changes to this property will trigger replacement. string
The subnet CIDR.
SubnetMask string
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
UpdatedAt string
The date and time of the last update of the subnet.
Address string
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
CreatedAt string
The date and time of the creation of the subnet.
Id string
The subnet ID.
PrefixLength int
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
Subnet Changes to this property will trigger replacement. string
The subnet CIDR.
SubnetMask string
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
UpdatedAt string
The date and time of the last update of the subnet.
address String
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
createdAt String
The date and time of the creation of the subnet.
id String
The subnet ID.
prefixLength Integer
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. String
The subnet CIDR.
subnetMask String
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
updatedAt String
The date and time of the last update of the subnet.
address string
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
createdAt string
The date and time of the creation of the subnet.
id string
The subnet ID.
prefixLength number
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. string
The subnet CIDR.
subnetMask string
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
updatedAt string
The date and time of the last update of the subnet.
address str
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
created_at str
The date and time of the creation of the subnet.
id str
The subnet ID.
prefix_length int
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. 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 hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
createdAt String
The date and time of the creation of the subnet.
id String
The subnet ID.
prefixLength Number
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. String
The subnet CIDR.
subnetMask String
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
updatedAt String
The date and time of the last update of the subnet.

PrivateNetworkIpv6Subnet
, PrivateNetworkIpv6SubnetArgs

Address string
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
CreatedAt string
The date and time of the creation of the subnet.
Id string
The subnet ID.
PrefixLength int
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
Subnet Changes to this property will trigger replacement. string
The subnet CIDR.
SubnetMask string
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
UpdatedAt string
The date and time of the last update of the subnet.
Address string
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
CreatedAt string
The date and time of the creation of the subnet.
Id string
The subnet ID.
PrefixLength int
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
Subnet Changes to this property will trigger replacement. string
The subnet CIDR.
SubnetMask string
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
UpdatedAt string
The date and time of the last update of the subnet.
address String
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
createdAt String
The date and time of the creation of the subnet.
id String
The subnet ID.
prefixLength Integer
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. String
The subnet CIDR.
subnetMask String
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
updatedAt String
The date and time of the last update of the subnet.
address string
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
createdAt string
The date and time of the creation of the subnet.
id string
The subnet ID.
prefixLength number
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. string
The subnet CIDR.
subnetMask string
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
updatedAt string
The date and time of the last update of the subnet.
address str
The network address of the subnet in hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
created_at str
The date and time of the creation of the subnet.
id str
The subnet ID.
prefix_length int
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. 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 hexadecimal notation, e.g., '2001:db8::' for a '2001:db8::/64' subnet.
createdAt String
The date and time of the creation of the subnet.
id String
The subnet ID.
prefixLength Number
The length of the network prefix, e.g., 64 for a 'ffff:ffff:ffff:ffff::' mask.
subnet Changes to this property will trigger replacement. String
The subnet CIDR.
subnetMask String
The subnet mask expressed in dotted decimal notation, e.g., '255.255.255.0' for a /24 subnet
updatedAt String
The date and time of the last update of the subnet.

Import

Private Networks can be imported using {region}/{id}, e.g.

bash

$ pulumi import scaleway:network/privateNetwork:PrivateNetwork main fr-par/11111111-1111-1111-1111-111111111111
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
scaleway pulumiverse/pulumi-scaleway
License
Apache-2.0
Notes
This Pulumi package is based on the scaleway Terraform Provider.