scaleway.VpcPublicGatewayDhcpReservation
Explore with Pulumi AI
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.VpcPrivateNetwork("main", {name: "your_private_network"});
const mainInstanceServer = new scaleway.InstanceServer("main", {
image: "ubuntu_jammy",
type: "DEV1-S",
zone: "fr-par-1",
privateNetworks: [{
pnId: main.id,
}],
});
const mainVpcPublicGatewayIp = new scaleway.VpcPublicGatewayIp("main", {});
const mainVpcPublicGatewayDhcp = new scaleway.VpcPublicGatewayDhcp("main", {subnet: "192.168.1.0/24"});
const mainVpcPublicGateway = new scaleway.VpcPublicGateway("main", {
name: "foobar",
type: "VPC-GW-S",
ipId: mainVpcPublicGatewayIp.id,
});
const mainVpcGatewayNetwork = new scaleway.VpcGatewayNetwork("main", {
gatewayId: mainVpcPublicGateway.id,
privateNetworkId: main.id,
dhcpId: mainVpcPublicGatewayDhcp.id,
cleanupDhcp: true,
enableMasquerade: true,
}, {
dependsOn: [
mainVpcPublicGatewayIp,
main,
],
});
const mainVpcPublicGatewayDhcpReservation = new scaleway.VpcPublicGatewayDhcpReservation("main", {
gatewayNetworkId: mainVpcGatewayNetwork.id,
macAddress: mainInstanceServer.privateNetworks.apply(privateNetworks => privateNetworks?.[0]?.macAddress),
ipAddress: "192.168.1.1",
});
import pulumi
import pulumiverse_scaleway as scaleway
main = scaleway.VpcPrivateNetwork("main", name="your_private_network")
main_instance_server = scaleway.InstanceServer("main",
image="ubuntu_jammy",
type="DEV1-S",
zone="fr-par-1",
private_networks=[{
"pn_id": main.id,
}])
main_vpc_public_gateway_ip = scaleway.VpcPublicGatewayIp("main")
main_vpc_public_gateway_dhcp = scaleway.VpcPublicGatewayDhcp("main", subnet="192.168.1.0/24")
main_vpc_public_gateway = scaleway.VpcPublicGateway("main",
name="foobar",
type="VPC-GW-S",
ip_id=main_vpc_public_gateway_ip.id)
main_vpc_gateway_network = scaleway.VpcGatewayNetwork("main",
gateway_id=main_vpc_public_gateway.id,
private_network_id=main.id,
dhcp_id=main_vpc_public_gateway_dhcp.id,
cleanup_dhcp=True,
enable_masquerade=True,
opts = pulumi.ResourceOptions(depends_on=[
main_vpc_public_gateway_ip,
main,
]))
main_vpc_public_gateway_dhcp_reservation = scaleway.VpcPublicGatewayDhcpReservation("main",
gateway_network_id=main_vpc_gateway_network.id,
mac_address=main_instance_server.private_networks[0].mac_address,
ip_address="192.168.1.1")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := scaleway.NewVpcPrivateNetwork(ctx, "main", &scaleway.VpcPrivateNetworkArgs{
Name: pulumi.String("your_private_network"),
})
if err != nil {
return err
}
mainInstanceServer, err := scaleway.NewInstanceServer(ctx, "main", &scaleway.InstanceServerArgs{
Image: pulumi.String("ubuntu_jammy"),
Type: pulumi.String("DEV1-S"),
Zone: pulumi.String("fr-par-1"),
PrivateNetworks: scaleway.InstanceServerPrivateNetworkArray{
&scaleway.InstanceServerPrivateNetworkArgs{
PnId: main.ID(),
},
},
})
if err != nil {
return err
}
mainVpcPublicGatewayIp, err := scaleway.NewVpcPublicGatewayIp(ctx, "main", nil)
if err != nil {
return err
}
mainVpcPublicGatewayDhcp, err := scaleway.NewVpcPublicGatewayDhcp(ctx, "main", &scaleway.VpcPublicGatewayDhcpArgs{
Subnet: pulumi.String("192.168.1.0/24"),
})
if err != nil {
return err
}
mainVpcPublicGateway, err := scaleway.NewVpcPublicGateway(ctx, "main", &scaleway.VpcPublicGatewayArgs{
Name: pulumi.String("foobar"),
Type: pulumi.String("VPC-GW-S"),
IpId: mainVpcPublicGatewayIp.ID(),
})
if err != nil {
return err
}
mainVpcGatewayNetwork, err := scaleway.NewVpcGatewayNetwork(ctx, "main", &scaleway.VpcGatewayNetworkArgs{
GatewayId: mainVpcPublicGateway.ID(),
PrivateNetworkId: main.ID(),
DhcpId: mainVpcPublicGatewayDhcp.ID(),
CleanupDhcp: pulumi.Bool(true),
EnableMasquerade: pulumi.Bool(true),
}, pulumi.DependsOn([]pulumi.Resource{
mainVpcPublicGatewayIp,
main,
}))
if err != nil {
return err
}
_, err = scaleway.NewVpcPublicGatewayDhcpReservation(ctx, "main", &scaleway.VpcPublicGatewayDhcpReservationArgs{
GatewayNetworkId: mainVpcGatewayNetwork.ID(),
MacAddress: pulumi.String(mainInstanceServer.PrivateNetworks.ApplyT(func(privateNetworks []scaleway.InstanceServerPrivateNetwork) (*string, error) {
return &privateNetworks[0].MacAddress, nil
}).(pulumi.StringPtrOutput)),
IpAddress: pulumi.String("192.168.1.1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.VpcPrivateNetwork("main", new()
{
Name = "your_private_network",
});
var mainInstanceServer = new Scaleway.InstanceServer("main", new()
{
Image = "ubuntu_jammy",
Type = "DEV1-S",
Zone = "fr-par-1",
PrivateNetworks = new[]
{
new Scaleway.Inputs.InstanceServerPrivateNetworkArgs
{
PnId = main.Id,
},
},
});
var mainVpcPublicGatewayIp = new Scaleway.VpcPublicGatewayIp("main");
var mainVpcPublicGatewayDhcp = new Scaleway.VpcPublicGatewayDhcp("main", new()
{
Subnet = "192.168.1.0/24",
});
var mainVpcPublicGateway = new Scaleway.VpcPublicGateway("main", new()
{
Name = "foobar",
Type = "VPC-GW-S",
IpId = mainVpcPublicGatewayIp.Id,
});
var mainVpcGatewayNetwork = new Scaleway.VpcGatewayNetwork("main", new()
{
GatewayId = mainVpcPublicGateway.Id,
PrivateNetworkId = main.Id,
DhcpId = mainVpcPublicGatewayDhcp.Id,
CleanupDhcp = true,
EnableMasquerade = true,
}, new CustomResourceOptions
{
DependsOn =
{
mainVpcPublicGatewayIp,
main,
},
});
var mainVpcPublicGatewayDhcpReservation = new Scaleway.VpcPublicGatewayDhcpReservation("main", new()
{
GatewayNetworkId = mainVpcGatewayNetwork.Id,
MacAddress = mainInstanceServer.PrivateNetworks.Apply(privateNetworks => privateNetworks[0]?.MacAddress),
IpAddress = "192.168.1.1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.VpcPrivateNetwork;
import com.pulumi.scaleway.VpcPrivateNetworkArgs;
import com.pulumi.scaleway.InstanceServer;
import com.pulumi.scaleway.InstanceServerArgs;
import com.pulumi.scaleway.inputs.InstanceServerPrivateNetworkArgs;
import com.pulumi.scaleway.VpcPublicGatewayIp;
import com.pulumi.scaleway.VpcPublicGatewayDhcp;
import com.pulumi.scaleway.VpcPublicGatewayDhcpArgs;
import com.pulumi.scaleway.VpcPublicGateway;
import com.pulumi.scaleway.VpcPublicGatewayArgs;
import com.pulumi.scaleway.VpcGatewayNetwork;
import com.pulumi.scaleway.VpcGatewayNetworkArgs;
import com.pulumi.scaleway.VpcPublicGatewayDhcpReservation;
import com.pulumi.scaleway.VpcPublicGatewayDhcpReservationArgs;
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 VpcPrivateNetwork("main", VpcPrivateNetworkArgs.builder()
.name("your_private_network")
.build());
var mainInstanceServer = new InstanceServer("mainInstanceServer", InstanceServerArgs.builder()
.image("ubuntu_jammy")
.type("DEV1-S")
.zone("fr-par-1")
.privateNetworks(InstanceServerPrivateNetworkArgs.builder()
.pnId(main.id())
.build())
.build());
var mainVpcPublicGatewayIp = new VpcPublicGatewayIp("mainVpcPublicGatewayIp");
var mainVpcPublicGatewayDhcp = new VpcPublicGatewayDhcp("mainVpcPublicGatewayDhcp", VpcPublicGatewayDhcpArgs.builder()
.subnet("192.168.1.0/24")
.build());
var mainVpcPublicGateway = new VpcPublicGateway("mainVpcPublicGateway", VpcPublicGatewayArgs.builder()
.name("foobar")
.type("VPC-GW-S")
.ipId(mainVpcPublicGatewayIp.id())
.build());
var mainVpcGatewayNetwork = new VpcGatewayNetwork("mainVpcGatewayNetwork", VpcGatewayNetworkArgs.builder()
.gatewayId(mainVpcPublicGateway.id())
.privateNetworkId(main.id())
.dhcpId(mainVpcPublicGatewayDhcp.id())
.cleanupDhcp(true)
.enableMasquerade(true)
.build(), CustomResourceOptions.builder()
.dependsOn(
mainVpcPublicGatewayIp,
main)
.build());
var mainVpcPublicGatewayDhcpReservation = new VpcPublicGatewayDhcpReservation("mainVpcPublicGatewayDhcpReservation", VpcPublicGatewayDhcpReservationArgs.builder()
.gatewayNetworkId(mainVpcGatewayNetwork.id())
.macAddress(mainInstanceServer.privateNetworks().applyValue(privateNetworks -> privateNetworks[0].macAddress()))
.ipAddress("192.168.1.1")
.build());
}
}
resources:
main:
type: scaleway:VpcPrivateNetwork
properties:
name: your_private_network
mainInstanceServer:
type: scaleway:InstanceServer
name: main
properties:
image: ubuntu_jammy
type: DEV1-S
zone: fr-par-1
privateNetworks:
- pnId: ${main.id}
mainVpcPublicGatewayIp:
type: scaleway:VpcPublicGatewayIp
name: main
mainVpcPublicGatewayDhcp:
type: scaleway:VpcPublicGatewayDhcp
name: main
properties:
subnet: 192.168.1.0/24
mainVpcPublicGateway:
type: scaleway:VpcPublicGateway
name: main
properties:
name: foobar
type: VPC-GW-S
ipId: ${mainVpcPublicGatewayIp.id}
mainVpcGatewayNetwork:
type: scaleway:VpcGatewayNetwork
name: main
properties:
gatewayId: ${mainVpcPublicGateway.id}
privateNetworkId: ${main.id}
dhcpId: ${mainVpcPublicGatewayDhcp.id}
cleanupDhcp: true
enableMasquerade: true
options:
dependson:
- ${mainVpcPublicGatewayIp}
- ${main}
mainVpcPublicGatewayDhcpReservation:
type: scaleway:VpcPublicGatewayDhcpReservation
name: main
properties:
gatewayNetworkId: ${mainVpcGatewayNetwork.id}
macAddress: ${mainInstanceServer.privateNetworks[0].macAddress}
ipAddress: 192.168.1.1
Create VpcPublicGatewayDhcpReservation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcPublicGatewayDhcpReservation(name: string, args: VpcPublicGatewayDhcpReservationArgs, opts?: CustomResourceOptions);
@overload
def VpcPublicGatewayDhcpReservation(resource_name: str,
args: VpcPublicGatewayDhcpReservationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcPublicGatewayDhcpReservation(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 NewVpcPublicGatewayDhcpReservation(ctx *Context, name string, args VpcPublicGatewayDhcpReservationArgs, opts ...ResourceOption) (*VpcPublicGatewayDhcpReservation, error)
public VpcPublicGatewayDhcpReservation(string name, VpcPublicGatewayDhcpReservationArgs args, CustomResourceOptions? opts = null)
public VpcPublicGatewayDhcpReservation(String name, VpcPublicGatewayDhcpReservationArgs args)
public VpcPublicGatewayDhcpReservation(String name, VpcPublicGatewayDhcpReservationArgs args, CustomResourceOptions options)
type: scaleway:VpcPublicGatewayDhcpReservation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcPublicGatewayDhcpReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcPublicGatewayDhcpReservationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcPublicGatewayDhcpReservationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcPublicGatewayDhcpReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcPublicGatewayDhcpReservationArgs
- 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 vpcPublicGatewayDhcpReservationResource = new Scaleway.VpcPublicGatewayDhcpReservation("vpcPublicGatewayDhcpReservationResource", new()
{
GatewayNetworkId = "string",
IpAddress = "string",
MacAddress = "string",
Zone = "string",
});
example, err := scaleway.NewVpcPublicGatewayDhcpReservation(ctx, "vpcPublicGatewayDhcpReservationResource", &scaleway.VpcPublicGatewayDhcpReservationArgs{
GatewayNetworkId: pulumi.String("string"),
IpAddress: pulumi.String("string"),
MacAddress: pulumi.String("string"),
Zone: pulumi.String("string"),
})
var vpcPublicGatewayDhcpReservationResource = new VpcPublicGatewayDhcpReservation("vpcPublicGatewayDhcpReservationResource", VpcPublicGatewayDhcpReservationArgs.builder()
.gatewayNetworkId("string")
.ipAddress("string")
.macAddress("string")
.zone("string")
.build());
vpc_public_gateway_dhcp_reservation_resource = scaleway.VpcPublicGatewayDhcpReservation("vpcPublicGatewayDhcpReservationResource",
gateway_network_id="string",
ip_address="string",
mac_address="string",
zone="string")
const vpcPublicGatewayDhcpReservationResource = new scaleway.VpcPublicGatewayDhcpReservation("vpcPublicGatewayDhcpReservationResource", {
gatewayNetworkId: "string",
ipAddress: "string",
macAddress: "string",
zone: "string",
});
type: scaleway:VpcPublicGatewayDhcpReservation
properties:
gatewayNetworkId: string
ipAddress: string
macAddress: string
zone: string
VpcPublicGatewayDhcpReservation 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 VpcPublicGatewayDhcpReservation resource accepts the following input properties:
- Gateway
Network stringId - The ID of the owning GatewayNetwork.
- Ip
Address string - The IP address to give to the machine.
- Mac
Address string - The MAC address for the static entry.
- Zone string
zone
) The zone in which the public gateway DHCP config should be created.
- Gateway
Network stringId - The ID of the owning GatewayNetwork.
- Ip
Address string - The IP address to give to the machine.
- Mac
Address string - The MAC address for the static entry.
- Zone string
zone
) The zone in which the public gateway DHCP config should be created.
- gateway
Network StringId - The ID of the owning GatewayNetwork.
- ip
Address String - The IP address to give to the machine.
- mac
Address String - The MAC address for the static entry.
- zone String
zone
) The zone in which the public gateway DHCP config should be created.
- gateway
Network stringId - The ID of the owning GatewayNetwork.
- ip
Address string - The IP address to give to the machine.
- mac
Address string - The MAC address for the static entry.
- zone string
zone
) The zone in which the public gateway DHCP config should be created.
- gateway_
network_ strid - The ID of the owning GatewayNetwork.
- ip_
address str - The IP address to give to the machine.
- mac_
address str - The MAC address for the static entry.
- zone str
zone
) The zone in which the public gateway DHCP config should be created.
- gateway
Network StringId - The ID of the owning GatewayNetwork.
- ip
Address String - The IP address to give to the machine.
- mac
Address String - The MAC address for the static entry.
- zone 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 VpcPublicGatewayDhcpReservation resource produces the following output properties:
- Created
At 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
andlease
. - Updated
At string - The date and time of the last update of the Public Gateway DHCP configuration.
- Created
At 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
andlease
. - Updated
At string - The date and time of the last update of the Public Gateway DHCP configuration.
- created
At 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
andlease
. - updated
At String - The date and time of the last update of the Public Gateway DHCP configuration.
- created
At 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
andlease
. - updated
At 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
andlease
. - updated_
at str - The date and time of the last update of the Public Gateway DHCP configuration.
- created
At 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
andlease
. - updated
At String - The date and time of the last update of the Public Gateway DHCP configuration.
Look up Existing VpcPublicGatewayDhcpReservation Resource
Get an existing VpcPublicGatewayDhcpReservation 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?: VpcPublicGatewayDhcpReservationState, opts?: CustomResourceOptions): VpcPublicGatewayDhcpReservation
@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) -> VpcPublicGatewayDhcpReservation
func GetVpcPublicGatewayDhcpReservation(ctx *Context, name string, id IDInput, state *VpcPublicGatewayDhcpReservationState, opts ...ResourceOption) (*VpcPublicGatewayDhcpReservation, error)
public static VpcPublicGatewayDhcpReservation Get(string name, Input<string> id, VpcPublicGatewayDhcpReservationState? state, CustomResourceOptions? opts = null)
public static VpcPublicGatewayDhcpReservation get(String name, Output<String> id, VpcPublicGatewayDhcpReservationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Created
At string - The date and time of the creation of the Public Gateway DHCP configuration.
- Gateway
Network stringId - The ID of the owning GatewayNetwork.
- Hostname string
- The hostname of the client machine.
- Ip
Address string - The IP address to give to the machine.
- Mac
Address 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
andlease
. - Updated
At string - The date and time of the last update of the Public Gateway DHCP configuration.
- Zone string
zone
) The zone in which the public gateway DHCP config should be created.
- Created
At string - The date and time of the creation of the Public Gateway DHCP configuration.
- Gateway
Network stringId - The ID of the owning GatewayNetwork.
- Hostname string
- The hostname of the client machine.
- Ip
Address string - The IP address to give to the machine.
- Mac
Address 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
andlease
. - Updated
At string - The date and time of the last update of the Public Gateway DHCP configuration.
- Zone string
zone
) The zone in which the public gateway DHCP config should be created.
- created
At String - The date and time of the creation of the Public Gateway DHCP configuration.
- gateway
Network StringId - The ID of the owning GatewayNetwork.
- hostname String
- The hostname of the client machine.
- ip
Address String - The IP address to give to the machine.
- mac
Address 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
andlease
. - updated
At String - The date and time of the last update of the Public Gateway DHCP configuration.
- zone String
zone
) The zone in which the public gateway DHCP config should be created.
- created
At string - The date and time of the creation of the Public Gateway DHCP configuration.
- gateway
Network stringId - The ID of the owning GatewayNetwork.
- hostname string
- The hostname of the client machine.
- ip
Address string - The IP address to give to the machine.
- mac
Address 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
andlease
. - updated
At string - The date and time of the last update of the Public Gateway DHCP configuration.
- zone 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_ strid - 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 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
andlease
. - updated_
at str - The date and time of the last update of the Public Gateway DHCP configuration.
- zone str
zone
) The zone in which the public gateway DHCP config should be created.
- created
At String - The date and time of the creation of the Public Gateway DHCP configuration.
- gateway
Network StringId - The ID of the owning GatewayNetwork.
- hostname String
- The hostname of the client machine.
- ip
Address String - The IP address to give to the machine.
- mac
Address 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
andlease
. - updated
At String - The date and time of the last update of the Public Gateway DHCP configuration.
- zone 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:index/vpcPublicGatewayDhcpReservation:VpcPublicGatewayDhcpReservation main fr-par-1/11111111-1111-1111-1111-111111111111
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.