1. Packages
  2. Scaleway
  3. API Docs
  4. VpcPublicGatewayDhcpReservation
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

scaleway.VpcPublicGatewayDhcpReservation

Explore with Pulumi AI

scaleway logo
Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse

    Creates and manages the Scaleway DHCP Reservations.

    The static associations are used to assign IP addresses based on the MAC addresses of the Instance.

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

    For more information, see the documentation and configuration guide.

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const mainVpcPrivateNetwork = new scaleway.VpcPrivateNetwork("mainVpcPrivateNetwork", {});
    const mainInstanceServer = new scaleway.InstanceServer("mainInstanceServer", {
        image: "ubuntu_jammy",
        type: "DEV1-S",
        zone: "fr-par-1",
        privateNetworks: [{
            pnId: mainVpcPrivateNetwork.id,
        }],
    });
    const mainVpcPublicGatewayIp = new scaleway.VpcPublicGatewayIp("mainVpcPublicGatewayIp", {});
    const mainVpcPublicGatewayDhcp = new scaleway.VpcPublicGatewayDhcp("mainVpcPublicGatewayDhcp", {subnet: "192.168.1.0/24"});
    const mainVpcPublicGateway = new scaleway.VpcPublicGateway("mainVpcPublicGateway", {
        type: "VPC-GW-S",
        ipId: mainVpcPublicGatewayIp.id,
    });
    const mainVpcGatewayNetwork = new scaleway.VpcGatewayNetwork("mainVpcGatewayNetwork", {
        gatewayId: mainVpcPublicGateway.id,
        privateNetworkId: mainVpcPrivateNetwork.id,
        dhcpId: mainVpcPublicGatewayDhcp.id,
        cleanupDhcp: true,
        enableMasquerade: true,
    }, {
        dependsOn: [
            mainVpcPublicGatewayIp,
            mainVpcPrivateNetwork,
        ],
    });
    const mainVpcPublicGatewayDhcpReservation = new scaleway.VpcPublicGatewayDhcpReservation("mainVpcPublicGatewayDhcpReservation", {
        gatewayNetworkId: mainVpcGatewayNetwork.id,
        macAddress: mainInstanceServer.privateNetworks.apply(privateNetworks => privateNetworks?.[0]?.macAddress),
        ipAddress: "192.168.1.1",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    main_vpc_private_network = scaleway.VpcPrivateNetwork("mainVpcPrivateNetwork")
    main_instance_server = scaleway.InstanceServer("mainInstanceServer",
        image="ubuntu_jammy",
        type="DEV1-S",
        zone="fr-par-1",
        private_networks=[scaleway.InstanceServerPrivateNetworkArgs(
            pn_id=main_vpc_private_network.id,
        )])
    main_vpc_public_gateway_ip = scaleway.VpcPublicGatewayIp("mainVpcPublicGatewayIp")
    main_vpc_public_gateway_dhcp = scaleway.VpcPublicGatewayDhcp("mainVpcPublicGatewayDhcp", subnet="192.168.1.0/24")
    main_vpc_public_gateway = scaleway.VpcPublicGateway("mainVpcPublicGateway",
        type="VPC-GW-S",
        ip_id=main_vpc_public_gateway_ip.id)
    main_vpc_gateway_network = scaleway.VpcGatewayNetwork("mainVpcGatewayNetwork",
        gateway_id=main_vpc_public_gateway.id,
        private_network_id=main_vpc_private_network.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_vpc_private_network,
            ]))
    main_vpc_public_gateway_dhcp_reservation = scaleway.VpcPublicGatewayDhcpReservation("mainVpcPublicGatewayDhcpReservation",
        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 {
    		mainVpcPrivateNetwork, err := scaleway.NewVpcPrivateNetwork(ctx, "mainVpcPrivateNetwork", nil)
    		if err != nil {
    			return err
    		}
    		mainInstanceServer, err := scaleway.NewInstanceServer(ctx, "mainInstanceServer", &scaleway.InstanceServerArgs{
    			Image: pulumi.String("ubuntu_jammy"),
    			Type:  pulumi.String("DEV1-S"),
    			Zone:  pulumi.String("fr-par-1"),
    			PrivateNetworks: scaleway.InstanceServerPrivateNetworkArray{
    				&scaleway.InstanceServerPrivateNetworkArgs{
    					PnId: mainVpcPrivateNetwork.ID(),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		mainVpcPublicGatewayIp, err := scaleway.NewVpcPublicGatewayIp(ctx, "mainVpcPublicGatewayIp", nil)
    		if err != nil {
    			return err
    		}
    		mainVpcPublicGatewayDhcp, err := scaleway.NewVpcPublicGatewayDhcp(ctx, "mainVpcPublicGatewayDhcp", &scaleway.VpcPublicGatewayDhcpArgs{
    			Subnet: pulumi.String("192.168.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		mainVpcPublicGateway, err := scaleway.NewVpcPublicGateway(ctx, "mainVpcPublicGateway", &scaleway.VpcPublicGatewayArgs{
    			Type: pulumi.String("VPC-GW-S"),
    			IpId: mainVpcPublicGatewayIp.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		mainVpcGatewayNetwork, err := scaleway.NewVpcGatewayNetwork(ctx, "mainVpcGatewayNetwork", &scaleway.VpcGatewayNetworkArgs{
    			GatewayId:        mainVpcPublicGateway.ID(),
    			PrivateNetworkId: mainVpcPrivateNetwork.ID(),
    			DhcpId:           mainVpcPublicGatewayDhcp.ID(),
    			CleanupDhcp:      pulumi.Bool(true),
    			EnableMasquerade: pulumi.Bool(true),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			mainVpcPublicGatewayIp,
    			mainVpcPrivateNetwork,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = scaleway.NewVpcPublicGatewayDhcpReservation(ctx, "mainVpcPublicGatewayDhcpReservation", &scaleway.VpcPublicGatewayDhcpReservationArgs{
    			GatewayNetworkId: mainVpcGatewayNetwork.ID(),
    			MacAddress: 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 mainVpcPrivateNetwork = new Scaleway.VpcPrivateNetwork("mainVpcPrivateNetwork");
    
        var mainInstanceServer = new Scaleway.InstanceServer("mainInstanceServer", new()
        {
            Image = "ubuntu_jammy",
            Type = "DEV1-S",
            Zone = "fr-par-1",
            PrivateNetworks = new[]
            {
                new Scaleway.Inputs.InstanceServerPrivateNetworkArgs
                {
                    PnId = mainVpcPrivateNetwork.Id,
                },
            },
        });
    
        var mainVpcPublicGatewayIp = new Scaleway.VpcPublicGatewayIp("mainVpcPublicGatewayIp");
    
        var mainVpcPublicGatewayDhcp = new Scaleway.VpcPublicGatewayDhcp("mainVpcPublicGatewayDhcp", new()
        {
            Subnet = "192.168.1.0/24",
        });
    
        var mainVpcPublicGateway = new Scaleway.VpcPublicGateway("mainVpcPublicGateway", new()
        {
            Type = "VPC-GW-S",
            IpId = mainVpcPublicGatewayIp.Id,
        });
    
        var mainVpcGatewayNetwork = new Scaleway.VpcGatewayNetwork("mainVpcGatewayNetwork", new()
        {
            GatewayId = mainVpcPublicGateway.Id,
            PrivateNetworkId = mainVpcPrivateNetwork.Id,
            DhcpId = mainVpcPublicGatewayDhcp.Id,
            CleanupDhcp = true,
            EnableMasquerade = true,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                mainVpcPublicGatewayIp, 
                mainVpcPrivateNetwork, 
            },
        });
    
        var mainVpcPublicGatewayDhcpReservation = new Scaleway.VpcPublicGatewayDhcpReservation("mainVpcPublicGatewayDhcpReservation", 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.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 mainVpcPrivateNetwork = new VpcPrivateNetwork("mainVpcPrivateNetwork");
    
            var mainInstanceServer = new InstanceServer("mainInstanceServer", InstanceServerArgs.builder()        
                .image("ubuntu_jammy")
                .type("DEV1-S")
                .zone("fr-par-1")
                .privateNetworks(InstanceServerPrivateNetworkArgs.builder()
                    .pnId(mainVpcPrivateNetwork.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()        
                .type("VPC-GW-S")
                .ipId(mainVpcPublicGatewayIp.id())
                .build());
    
            var mainVpcGatewayNetwork = new VpcGatewayNetwork("mainVpcGatewayNetwork", VpcGatewayNetworkArgs.builder()        
                .gatewayId(mainVpcPublicGateway.id())
                .privateNetworkId(mainVpcPrivateNetwork.id())
                .dhcpId(mainVpcPublicGatewayDhcp.id())
                .cleanupDhcp(true)
                .enableMasquerade(true)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        mainVpcPublicGatewayIp,
                        mainVpcPrivateNetwork)
                    .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:
      mainVpcPrivateNetwork:
        type: scaleway:VpcPrivateNetwork
      mainInstanceServer:
        type: scaleway:InstanceServer
        properties:
          image: ubuntu_jammy
          type: DEV1-S
          zone: fr-par-1
          privateNetworks:
            - pnId: ${mainVpcPrivateNetwork.id}
      mainVpcPublicGatewayIp:
        type: scaleway:VpcPublicGatewayIp
      mainVpcPublicGatewayDhcp:
        type: scaleway:VpcPublicGatewayDhcp
        properties:
          subnet: 192.168.1.0/24
      mainVpcPublicGateway:
        type: scaleway:VpcPublicGateway
        properties:
          type: VPC-GW-S
          ipId: ${mainVpcPublicGatewayIp.id}
      mainVpcGatewayNetwork:
        type: scaleway:VpcGatewayNetwork
        properties:
          gatewayId: ${mainVpcPublicGateway.id}
          privateNetworkId: ${mainVpcPrivateNetwork.id}
          dhcpId: ${mainVpcPublicGatewayDhcp.id}
          cleanupDhcp: true
          enableMasquerade: true
        options:
          dependson:
            - ${mainVpcPublicGatewayIp}
            - ${mainVpcPrivateNetwork}
      mainVpcPublicGatewayDhcpReservation:
        type: scaleway:VpcPublicGatewayDhcpReservation
        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.

    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

    The VpcPublicGatewayDhcpReservation resource accepts the following input properties:

    GatewayNetworkId string
    The ID of the owning GatewayNetwork.
    IpAddress string
    The IP address to give to the machine (IP address).
    MacAddress string
    The MAC address to give a static entry to.
    Zone string
    zone) The zone in which the public gateway DHCP config should be created.
    GatewayNetworkId string
    The ID of the owning GatewayNetwork.
    IpAddress string
    The IP address to give to the machine (IP address).
    MacAddress string
    The MAC address to give a static entry to.
    Zone string
    zone) The zone in which the public gateway DHCP config should be created.
    gatewayNetworkId String
    The ID of the owning GatewayNetwork.
    ipAddress String
    The IP address to give to the machine (IP address).
    macAddress String
    The MAC address to give a static entry to.
    zone String
    zone) The zone in which the public gateway DHCP config should be created.
    gatewayNetworkId string
    The ID of the owning GatewayNetwork.
    ipAddress string
    The IP address to give to the machine (IP address).
    macAddress string
    The MAC address to give a static entry to.
    zone string
    zone) The zone in which the public gateway DHCP config should be created.
    gateway_network_id str
    The ID of the owning GatewayNetwork.
    ip_address str
    The IP address to give to the machine (IP address).
    mac_address str
    The MAC address to give a static entry to.
    zone str
    zone) The zone in which the public gateway DHCP config should be created.
    gatewayNetworkId String
    The ID of the owning GatewayNetwork.
    ipAddress String
    The IP address to give to the machine (IP address).
    macAddress String
    The MAC address to give a static entry to.
    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:

    CreatedAt string
    The date and time of the creation of the public gateway DHCP config.
    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 config.
    CreatedAt string
    The date and time of the creation of the public gateway DHCP config.
    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 config.
    createdAt String
    The date and time of the creation of the public gateway DHCP config.
    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 config.
    createdAt string
    The date and time of the creation of the public gateway DHCP config.
    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 config.
    created_at str
    The date and time of the creation of the public gateway DHCP config.
    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 config.
    createdAt String
    The date and time of the creation of the public gateway DHCP config.
    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 config.

    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.
    The following state arguments are supported:
    CreatedAt string
    The date and time of the creation of the public gateway DHCP config.
    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 (IP address).
    MacAddress string
    The MAC address to give a static entry to.
    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 config.
    Zone 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 config.
    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 (IP address).
    MacAddress string
    The MAC address to give a static entry to.
    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 config.
    Zone 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 config.
    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 (IP address).
    macAddress String
    The MAC address to give a static entry to.
    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 config.
    zone 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 config.
    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 (IP address).
    macAddress string
    The MAC address to give a static entry to.
    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 config.
    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 config.
    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 (IP address).
    mac_address str
    The MAC address to give a static entry to.
    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 config.
    zone 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 config.
    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 (IP address).
    macAddress String
    The MAC address to give a static entry to.
    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 config.
    zone String
    zone) The zone in which the public gateway DHCP config should be created.

    Import

    Public gateway DHCP Reservation config can be imported using the {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.
    scaleway logo
    Scaleway v1.12.1 published on Monday, Apr 15, 2024 by pulumiverse