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

scaleway.network.PublicGatewayDhcpReservation

Explore with Pulumi AI

Important: The resource scaleway.network.PublicGatewayDhcpReservation has been deprecated and will no longer be supported. In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. You can use IPAM to manage your IPs. For more information, please refer to the dedicated guide.

Creates and manages Scaleway DHCP Reservations.

These static associations are used to assign IP addresses based on the MAC addresses of the resource.

Statically assigned IP addresses should fall within the configured subnet, but be outside of the dynamic range.

For more information, see the API documentation.

DHCP reservations hold both dynamic DHCP leases (IP addresses dynamically assigned by the gateway to resources) and static user-created DHCP reservations.

Example Usage

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

const main = new scaleway.network.PrivateNetwork("main", {name: "your_private_network"});
const mainServer = new scaleway.instance.Server("main", {
    image: "ubuntu_jammy",
    type: "DEV1-S",
    zone: "fr-par-1",
    privateNetworks: [{
        pnId: main.id,
    }],
});
const mainPublicGatewayIp = new scaleway.network.PublicGatewayIp("main", {});
const mainPublicGatewayDhcp = new scaleway.network.PublicGatewayDhcp("main", {subnet: "192.168.1.0/24"});
const mainPublicGateway = new scaleway.network.PublicGateway("main", {
    name: "foobar",
    type: "VPC-GW-S",
    ipId: mainPublicGatewayIp.id,
});
const mainGatewayNetwork = new scaleway.network.GatewayNetwork("main", {
    gatewayId: mainPublicGateway.id,
    privateNetworkId: main.id,
    dhcpId: mainPublicGatewayDhcp.id,
    cleanupDhcp: true,
    enableMasquerade: true,
}, {
    dependsOn: [
        mainPublicGatewayIp,
        main,
    ],
});
const mainPublicGatewayDhcpReservation = new scaleway.network.PublicGatewayDhcpReservation("main", {
    gatewayNetworkId: mainGatewayNetwork.id,
    macAddress: mainServer.privateNetworks.apply(privateNetworks => privateNetworks?.[0]?.macAddress),
    ipAddress: "192.168.1.1",
});
Copy
import pulumi
import pulumiverse_scaleway as scaleway

main = scaleway.network.PrivateNetwork("main", name="your_private_network")
main_server = scaleway.instance.Server("main",
    image="ubuntu_jammy",
    type="DEV1-S",
    zone="fr-par-1",
    private_networks=[{
        "pn_id": main.id,
    }])
main_public_gateway_ip = scaleway.network.PublicGatewayIp("main")
main_public_gateway_dhcp = scaleway.network.PublicGatewayDhcp("main", subnet="192.168.1.0/24")
main_public_gateway = scaleway.network.PublicGateway("main",
    name="foobar",
    type="VPC-GW-S",
    ip_id=main_public_gateway_ip.id)
main_gateway_network = scaleway.network.GatewayNetwork("main",
    gateway_id=main_public_gateway.id,
    private_network_id=main.id,
    dhcp_id=main_public_gateway_dhcp.id,
    cleanup_dhcp=True,
    enable_masquerade=True,
    opts = pulumi.ResourceOptions(depends_on=[
            main_public_gateway_ip,
            main,
        ]))
main_public_gateway_dhcp_reservation = scaleway.network.PublicGatewayDhcpReservation("main",
    gateway_network_id=main_gateway_network.id,
    mac_address=main_server.private_networks[0].mac_address,
    ip_address="192.168.1.1")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/instance"
	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := network.NewPrivateNetwork(ctx, "main", &network.PrivateNetworkArgs{
			Name: pulumi.String("your_private_network"),
		})
		if err != nil {
			return err
		}
		mainServer, err := instance.NewServer(ctx, "main", &instance.ServerArgs{
			Image: pulumi.String("ubuntu_jammy"),
			Type:  pulumi.String("DEV1-S"),
			Zone:  pulumi.String("fr-par-1"),
			PrivateNetworks: instance.ServerPrivateNetworkArray{
				&instance.ServerPrivateNetworkArgs{
					PnId: main.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		mainPublicGatewayIp, err := network.NewPublicGatewayIp(ctx, "main", nil)
		if err != nil {
			return err
		}
		mainPublicGatewayDhcp, err := network.NewPublicGatewayDhcp(ctx, "main", &network.PublicGatewayDhcpArgs{
			Subnet: pulumi.String("192.168.1.0/24"),
		})
		if err != nil {
			return err
		}
		mainPublicGateway, err := network.NewPublicGateway(ctx, "main", &network.PublicGatewayArgs{
			Name: pulumi.String("foobar"),
			Type: pulumi.String("VPC-GW-S"),
			IpId: mainPublicGatewayIp.ID(),
		})
		if err != nil {
			return err
		}
		mainGatewayNetwork, err := network.NewGatewayNetwork(ctx, "main", &network.GatewayNetworkArgs{
			GatewayId:        mainPublicGateway.ID(),
			PrivateNetworkId: main.ID(),
			DhcpId:           mainPublicGatewayDhcp.ID(),
			CleanupDhcp:      pulumi.Bool(true),
			EnableMasquerade: pulumi.Bool(true),
		}, pulumi.DependsOn([]pulumi.Resource{
			mainPublicGatewayIp,
			main,
		}))
		if err != nil {
			return err
		}
		_, err = network.NewPublicGatewayDhcpReservation(ctx, "main", &network.PublicGatewayDhcpReservationArgs{
			GatewayNetworkId: mainGatewayNetwork.ID(),
			MacAddress: pulumi.String(mainServer.PrivateNetworks.ApplyT(func(privateNetworks []instance.ServerPrivateNetwork) (*string, error) {
				return &privateNetworks[0].MacAddress, nil
			}).(pulumi.StringPtrOutput)),
			IpAddress: pulumi.String("192.168.1.1"),
		})
		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 main = new Scaleway.Network.PrivateNetwork("main", new()
    {
        Name = "your_private_network",
    });

    var mainServer = new Scaleway.Instance.Server("main", new()
    {
        Image = "ubuntu_jammy",
        Type = "DEV1-S",
        Zone = "fr-par-1",
        PrivateNetworks = new[]
        {
            new Scaleway.Instance.Inputs.ServerPrivateNetworkArgs
            {
                PnId = main.Id,
            },
        },
    });

    var mainPublicGatewayIp = new Scaleway.Network.PublicGatewayIp("main");

    var mainPublicGatewayDhcp = new Scaleway.Network.PublicGatewayDhcp("main", new()
    {
        Subnet = "192.168.1.0/24",
    });

    var mainPublicGateway = new Scaleway.Network.PublicGateway("main", new()
    {
        Name = "foobar",
        Type = "VPC-GW-S",
        IpId = mainPublicGatewayIp.Id,
    });

    var mainGatewayNetwork = new Scaleway.Network.GatewayNetwork("main", new()
    {
        GatewayId = mainPublicGateway.Id,
        PrivateNetworkId = main.Id,
        DhcpId = mainPublicGatewayDhcp.Id,
        CleanupDhcp = true,
        EnableMasquerade = true,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            mainPublicGatewayIp,
            main,
        },
    });

    var mainPublicGatewayDhcpReservation = new Scaleway.Network.PublicGatewayDhcpReservation("main", new()
    {
        GatewayNetworkId = mainGatewayNetwork.Id,
        MacAddress = mainServer.PrivateNetworks.Apply(privateNetworks => privateNetworks[0]?.MacAddress),
        IpAddress = "192.168.1.1",
    });

});
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.instance.Server;
import com.pulumi.scaleway.instance.ServerArgs;
import com.pulumi.scaleway.instance.inputs.ServerPrivateNetworkArgs;
import com.pulumi.scaleway.network.PublicGatewayIp;
import com.pulumi.scaleway.network.PublicGatewayDhcp;
import com.pulumi.scaleway.network.PublicGatewayDhcpArgs;
import com.pulumi.scaleway.network.PublicGateway;
import com.pulumi.scaleway.network.PublicGatewayArgs;
import com.pulumi.scaleway.network.GatewayNetwork;
import com.pulumi.scaleway.network.GatewayNetworkArgs;
import com.pulumi.scaleway.network.PublicGatewayDhcpReservation;
import com.pulumi.scaleway.network.PublicGatewayDhcpReservationArgs;
import com.pulumi.resources.CustomResourceOptions;
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 main = new PrivateNetwork("main", PrivateNetworkArgs.builder()
            .name("your_private_network")
            .build());

        var mainServer = new Server("mainServer", ServerArgs.builder()
            .image("ubuntu_jammy")
            .type("DEV1-S")
            .zone("fr-par-1")
            .privateNetworks(ServerPrivateNetworkArgs.builder()
                .pnId(main.id())
                .build())
            .build());

        var mainPublicGatewayIp = new PublicGatewayIp("mainPublicGatewayIp");

        var mainPublicGatewayDhcp = new PublicGatewayDhcp("mainPublicGatewayDhcp", PublicGatewayDhcpArgs.builder()
            .subnet("192.168.1.0/24")
            .build());

        var mainPublicGateway = new PublicGateway("mainPublicGateway", PublicGatewayArgs.builder()
            .name("foobar")
            .type("VPC-GW-S")
            .ipId(mainPublicGatewayIp.id())
            .build());

        var mainGatewayNetwork = new GatewayNetwork("mainGatewayNetwork", GatewayNetworkArgs.builder()
            .gatewayId(mainPublicGateway.id())
            .privateNetworkId(main.id())
            .dhcpId(mainPublicGatewayDhcp.id())
            .cleanupDhcp(true)
            .enableMasquerade(true)
            .build(), CustomResourceOptions.builder()
                .dependsOn(                
                    mainPublicGatewayIp,
                    main)
                .build());

        var mainPublicGatewayDhcpReservation = new PublicGatewayDhcpReservation("mainPublicGatewayDhcpReservation", PublicGatewayDhcpReservationArgs.builder()
            .gatewayNetworkId(mainGatewayNetwork.id())
            .macAddress(mainServer.privateNetworks().applyValue(privateNetworks -> privateNetworks[0].macAddress()))
            .ipAddress("192.168.1.1")
            .build());

    }
}
Copy
resources:
  main:
    type: scaleway:network:PrivateNetwork
    properties:
      name: your_private_network
  mainServer:
    type: scaleway:instance:Server
    name: main
    properties:
      image: ubuntu_jammy
      type: DEV1-S
      zone: fr-par-1
      privateNetworks:
        - pnId: ${main.id}
  mainPublicGatewayIp:
    type: scaleway:network:PublicGatewayIp
    name: main
  mainPublicGatewayDhcp:
    type: scaleway:network:PublicGatewayDhcp
    name: main
    properties:
      subnet: 192.168.1.0/24
  mainPublicGateway:
    type: scaleway:network:PublicGateway
    name: main
    properties:
      name: foobar
      type: VPC-GW-S
      ipId: ${mainPublicGatewayIp.id}
  mainGatewayNetwork:
    type: scaleway:network:GatewayNetwork
    name: main
    properties:
      gatewayId: ${mainPublicGateway.id}
      privateNetworkId: ${main.id}
      dhcpId: ${mainPublicGatewayDhcp.id}
      cleanupDhcp: true
      enableMasquerade: true
    options:
      dependsOn:
        - ${mainPublicGatewayIp}
        - ${main}
  mainPublicGatewayDhcpReservation:
    type: scaleway:network:PublicGatewayDhcpReservation
    name: main
    properties:
      gatewayNetworkId: ${mainGatewayNetwork.id}
      macAddress: ${mainServer.privateNetworks[0].macAddress}
      ipAddress: 192.168.1.1
Copy

Create PublicGatewayDhcpReservation Resource

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

Constructor syntax

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

@overload
def PublicGatewayDhcpReservation(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 gateway_network_id: Optional[str] = None,
                                 ip_address: Optional[str] = None,
                                 mac_address: Optional[str] = None,
                                 zone: Optional[str] = None)
func NewPublicGatewayDhcpReservation(ctx *Context, name string, args PublicGatewayDhcpReservationArgs, opts ...ResourceOption) (*PublicGatewayDhcpReservation, error)
public PublicGatewayDhcpReservation(string name, PublicGatewayDhcpReservationArgs args, CustomResourceOptions? opts = null)
public PublicGatewayDhcpReservation(String name, PublicGatewayDhcpReservationArgs args)
public PublicGatewayDhcpReservation(String name, PublicGatewayDhcpReservationArgs args, CustomResourceOptions options)
type: scaleway:network:PublicGatewayDhcpReservation
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 This property is required. PublicGatewayDhcpReservationArgs
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 This property is required. PublicGatewayDhcpReservationArgs
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 This property is required. PublicGatewayDhcpReservationArgs
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 This property is required. PublicGatewayDhcpReservationArgs
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. PublicGatewayDhcpReservationArgs
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 publicGatewayDhcpReservationResource = new Scaleway.Network.PublicGatewayDhcpReservation("publicGatewayDhcpReservationResource", new()
{
    GatewayNetworkId = "string",
    IpAddress = "string",
    MacAddress = "string",
    Zone = "string",
});
Copy
example, err := network.NewPublicGatewayDhcpReservation(ctx, "publicGatewayDhcpReservationResource", &network.PublicGatewayDhcpReservationArgs{
	GatewayNetworkId: pulumi.String("string"),
	IpAddress:        pulumi.String("string"),
	MacAddress:       pulumi.String("string"),
	Zone:             pulumi.String("string"),
})
Copy
var publicGatewayDhcpReservationResource = new PublicGatewayDhcpReservation("publicGatewayDhcpReservationResource", PublicGatewayDhcpReservationArgs.builder()
    .gatewayNetworkId("string")
    .ipAddress("string")
    .macAddress("string")
    .zone("string")
    .build());
Copy
public_gateway_dhcp_reservation_resource = scaleway.network.PublicGatewayDhcpReservation("publicGatewayDhcpReservationResource",
    gateway_network_id="string",
    ip_address="string",
    mac_address="string",
    zone="string")
Copy
const publicGatewayDhcpReservationResource = new scaleway.network.PublicGatewayDhcpReservation("publicGatewayDhcpReservationResource", {
    gatewayNetworkId: "string",
    ipAddress: "string",
    macAddress: "string",
    zone: "string",
});
Copy
type: scaleway:network:PublicGatewayDhcpReservation
properties:
    gatewayNetworkId: string
    ipAddress: string
    macAddress: string
    zone: string
Copy

PublicGatewayDhcpReservation 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 PublicGatewayDhcpReservation resource accepts the following input properties:

GatewayNetworkId This property is required. string
The ID of the owning GatewayNetwork.
IpAddress This property is required. string
The IP address to give to the machine.
MacAddress
This property is required.
Changes to this property will trigger replacement.
string
The MAC address for the static entry.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the public gateway DHCP config should be created.
GatewayNetworkId This property is required. string
The ID of the owning GatewayNetwork.
IpAddress This property is required. string
The IP address to give to the machine.
MacAddress
This property is required.
Changes to this property will trigger replacement.
string
The MAC address for the static entry.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the public gateway DHCP config should be created.
gatewayNetworkId This property is required. String
The ID of the owning GatewayNetwork.
ipAddress This property is required. String
The IP address to give to the machine.
macAddress
This property is required.
Changes to this property will trigger replacement.
String
The MAC address for the static entry.
zone Changes to this property will trigger replacement. String
zone) The zone in which the public gateway DHCP config should be created.
gatewayNetworkId This property is required. string
The ID of the owning GatewayNetwork.
ipAddress This property is required. string
The IP address to give to the machine.
macAddress
This property is required.
Changes to this property will trigger replacement.
string
The MAC address for the static entry.
zone Changes to this property will trigger replacement. string
zone) The zone in which the public gateway DHCP config should be created.
gateway_network_id This property is required. str
The ID of the owning GatewayNetwork.
ip_address This property is required. str
The IP address to give to the machine.
mac_address
This property is required.
Changes to this property will trigger replacement.
str
The MAC address for the static entry.
zone Changes to this property will trigger replacement. str
zone) The zone in which the public gateway DHCP config should be created.
gatewayNetworkId This property is required. String
The ID of the owning GatewayNetwork.
ipAddress This property is required. String
The IP address to give to the machine.
macAddress
This property is required.
Changes to this property will trigger replacement.
String
The MAC address for the static entry.
zone Changes to this property will trigger replacement. String
zone) The zone in which the public gateway DHCP config should be created.

Outputs

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

CreatedAt string
The date and time of the creation of the Public Gateway DHCP configuration.
Hostname string
The hostname of the client machine.
Id string
The provider-assigned unique ID for this managed resource.
Type string
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
UpdatedAt string
The date and time of the last update of the Public Gateway DHCP configuration.
CreatedAt string
The date and time of the creation of the Public Gateway DHCP configuration.
Hostname string
The hostname of the client machine.
Id string
The provider-assigned unique ID for this managed resource.
Type string
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
UpdatedAt string
The date and time of the last update of the Public Gateway DHCP configuration.
createdAt String
The date and time of the creation of the Public Gateway DHCP configuration.
hostname String
The hostname of the client machine.
id String
The provider-assigned unique ID for this managed resource.
type String
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updatedAt String
The date and time of the last update of the Public Gateway DHCP configuration.
createdAt string
The date and time of the creation of the Public Gateway DHCP configuration.
hostname string
The hostname of the client machine.
id string
The provider-assigned unique ID for this managed resource.
type string
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updatedAt string
The date and time of the last update of the Public Gateway DHCP configuration.
created_at str
The date and time of the creation of the Public Gateway DHCP configuration.
hostname str
The hostname of the client machine.
id str
The provider-assigned unique ID for this managed resource.
type str
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updated_at str
The date and time of the last update of the Public Gateway DHCP configuration.
createdAt String
The date and time of the creation of the Public Gateway DHCP configuration.
hostname String
The hostname of the client machine.
id String
The provider-assigned unique ID for this managed resource.
type String
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updatedAt String
The date and time of the last update of the Public Gateway DHCP configuration.

Look up Existing PublicGatewayDhcpReservation Resource

Get an existing PublicGatewayDhcpReservation 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?: PublicGatewayDhcpReservationState, opts?: CustomResourceOptions): PublicGatewayDhcpReservation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_at: Optional[str] = None,
        gateway_network_id: Optional[str] = None,
        hostname: Optional[str] = None,
        ip_address: Optional[str] = None,
        mac_address: Optional[str] = None,
        type: Optional[str] = None,
        updated_at: Optional[str] = None,
        zone: Optional[str] = None) -> PublicGatewayDhcpReservation
func GetPublicGatewayDhcpReservation(ctx *Context, name string, id IDInput, state *PublicGatewayDhcpReservationState, opts ...ResourceOption) (*PublicGatewayDhcpReservation, error)
public static PublicGatewayDhcpReservation Get(string name, Input<string> id, PublicGatewayDhcpReservationState? state, CustomResourceOptions? opts = null)
public static PublicGatewayDhcpReservation get(String name, Output<String> id, PublicGatewayDhcpReservationState state, CustomResourceOptions options)
resources:  _:    type: scaleway:network:PublicGatewayDhcpReservation    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 Public Gateway DHCP configuration.
GatewayNetworkId string
The ID of the owning GatewayNetwork.
Hostname string
The hostname of the client machine.
IpAddress string
The IP address to give to the machine.
MacAddress Changes to this property will trigger replacement. string
The MAC address for the static entry.
Type string
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
UpdatedAt string
The date and time of the last update of the Public Gateway DHCP configuration.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the public gateway DHCP config should be created.
CreatedAt string
The date and time of the creation of the Public Gateway DHCP configuration.
GatewayNetworkId string
The ID of the owning GatewayNetwork.
Hostname string
The hostname of the client machine.
IpAddress string
The IP address to give to the machine.
MacAddress Changes to this property will trigger replacement. string
The MAC address for the static entry.
Type string
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
UpdatedAt string
The date and time of the last update of the Public Gateway DHCP configuration.
Zone Changes to this property will trigger replacement. string
zone) The zone in which the public gateway DHCP config should be created.
createdAt String
The date and time of the creation of the Public Gateway DHCP configuration.
gatewayNetworkId String
The ID of the owning GatewayNetwork.
hostname String
The hostname of the client machine.
ipAddress String
The IP address to give to the machine.
macAddress Changes to this property will trigger replacement. String
The MAC address for the static entry.
type String
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updatedAt String
The date and time of the last update of the Public Gateway DHCP configuration.
zone Changes to this property will trigger replacement. String
zone) The zone in which the public gateway DHCP config should be created.
createdAt string
The date and time of the creation of the Public Gateway DHCP configuration.
gatewayNetworkId string
The ID of the owning GatewayNetwork.
hostname string
The hostname of the client machine.
ipAddress string
The IP address to give to the machine.
macAddress Changes to this property will trigger replacement. string
The MAC address for the static entry.
type string
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updatedAt string
The date and time of the last update of the Public Gateway DHCP configuration.
zone Changes to this property will trigger replacement. string
zone) The zone in which the public gateway DHCP config should be created.
created_at str
The date and time of the creation of the Public Gateway DHCP configuration.
gateway_network_id str
The ID of the owning GatewayNetwork.
hostname str
The hostname of the client machine.
ip_address str
The IP address to give to the machine.
mac_address Changes to this property will trigger replacement. str
The MAC address for the static entry.
type str
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updated_at str
The date and time of the last update of the Public Gateway DHCP configuration.
zone Changes to this property will trigger replacement. str
zone) The zone in which the public gateway DHCP config should be created.
createdAt String
The date and time of the creation of the Public Gateway DHCP configuration.
gatewayNetworkId String
The ID of the owning GatewayNetwork.
hostname String
The hostname of the client machine.
ipAddress String
The IP address to give to the machine.
macAddress Changes to this property will trigger replacement. String
The MAC address for the static entry.
type String
The reservation type, either static (DHCP reservation) or dynamic (DHCP lease). Possible values are reservation and lease.
updatedAt String
The date and time of the last update of the Public Gateway DHCP configuration.
zone Changes to this property will trigger replacement. String
zone) The zone in which the public gateway DHCP config should be created.

Import

Public Gateway DHCP reservation configurations can be imported using {zone}/{id}, e.g.

bash

$ pulumi import scaleway:network/publicGatewayDhcpReservation:PublicGatewayDhcpReservation main fr-par-1/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.