1. Packages
  2. Scaleway
  3. API Docs
  4. getVpcPublicGatewayDhcp
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

scaleway.getVpcPublicGatewayDhcp

Explore with Pulumi AI

scaleway logo
Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse

    Gets information about a Public Gateway DHCP configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const main = new scaleway.VpcPublicGatewayDhcp("main", {subnet: "192.168.0.0/24"});
    const dhcpById = scaleway.getVpcPublicGatewayDhcpOutput({
        dhcpId: main.id,
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    import pulumiverse_scaleway as scaleway
    
    main = scaleway.VpcPublicGatewayDhcp("main", subnet="192.168.0.0/24")
    dhcp_by_id = scaleway.get_vpc_public_gateway_dhcp_output(dhcp_id=main.id)
    
    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.NewVpcPublicGatewayDhcp(ctx, "main", &scaleway.VpcPublicGatewayDhcpArgs{
    			Subnet: pulumi.String("192.168.0.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = scaleway.LookupVpcPublicGatewayDhcpOutput(ctx, scaleway.GetVpcPublicGatewayDhcpOutputArgs{
    			DhcpId: main.ID(),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Scaleway.VpcPublicGatewayDhcp("main", new()
        {
            Subnet = "192.168.0.0/24",
        });
    
        var dhcpById = Scaleway.GetVpcPublicGatewayDhcp.Invoke(new()
        {
            DhcpId = main.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.VpcPublicGatewayDhcp;
    import com.pulumi.scaleway.VpcPublicGatewayDhcpArgs;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetVpcPublicGatewayDhcpArgs;
    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 VpcPublicGatewayDhcp("main", VpcPublicGatewayDhcpArgs.builder()
                .subnet("192.168.0.0/24")
                .build());
    
            final var dhcpById = ScalewayFunctions.getVpcPublicGatewayDhcp(GetVpcPublicGatewayDhcpArgs.builder()
                .dhcpId(main.id())
                .build());
    
        }
    }
    
    resources:
      main:
        type: scaleway:VpcPublicGatewayDhcp
        properties:
          subnet: 192.168.0.0/24
    variables:
      dhcpById:
        fn::invoke:
          Function: scaleway:getVpcPublicGatewayDhcp
          Arguments:
            dhcpId: ${main.id}
    

    Using getVpcPublicGatewayDhcp

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVpcPublicGatewayDhcp(args: GetVpcPublicGatewayDhcpArgs, opts?: InvokeOptions): Promise<GetVpcPublicGatewayDhcpResult>
    function getVpcPublicGatewayDhcpOutput(args: GetVpcPublicGatewayDhcpOutputArgs, opts?: InvokeOptions): Output<GetVpcPublicGatewayDhcpResult>
    def get_vpc_public_gateway_dhcp(dhcp_id: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetVpcPublicGatewayDhcpResult
    def get_vpc_public_gateway_dhcp_output(dhcp_id: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetVpcPublicGatewayDhcpResult]
    func LookupVpcPublicGatewayDhcp(ctx *Context, args *LookupVpcPublicGatewayDhcpArgs, opts ...InvokeOption) (*LookupVpcPublicGatewayDhcpResult, error)
    func LookupVpcPublicGatewayDhcpOutput(ctx *Context, args *LookupVpcPublicGatewayDhcpOutputArgs, opts ...InvokeOption) LookupVpcPublicGatewayDhcpResultOutput

    > Note: This function is named LookupVpcPublicGatewayDhcp in the Go SDK.

    public static class GetVpcPublicGatewayDhcp 
    {
        public static Task<GetVpcPublicGatewayDhcpResult> InvokeAsync(GetVpcPublicGatewayDhcpArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcPublicGatewayDhcpResult> Invoke(GetVpcPublicGatewayDhcpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcPublicGatewayDhcpResult> getVpcPublicGatewayDhcp(GetVpcPublicGatewayDhcpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getVpcPublicGatewayDhcp:getVpcPublicGatewayDhcp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DhcpId string
    DhcpId string
    dhcpId String
    dhcpId string
    dhcpId String

    getVpcPublicGatewayDhcp Result

    The following output properties are available:

    Address string
    CreatedAt string
    DhcpId string
    DnsLocalName string
    DnsSearches List<string>
    DnsServersOverrides List<string>
    EnableDynamic bool
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    PoolHigh string
    PoolLow string
    ProjectId string
    PushDefaultRoute bool
    PushDnsServer bool
    RebindTimer int
    RenewTimer int
    Subnet string
    UpdatedAt string
    ValidLifetime int
    Zone string
    Address string
    CreatedAt string
    DhcpId string
    DnsLocalName string
    DnsSearches []string
    DnsServersOverrides []string
    EnableDynamic bool
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    PoolHigh string
    PoolLow string
    ProjectId string
    PushDefaultRoute bool
    PushDnsServer bool
    RebindTimer int
    RenewTimer int
    Subnet string
    UpdatedAt string
    ValidLifetime int
    Zone string
    address String
    createdAt String
    dhcpId String
    dnsLocalName String
    dnsSearches List<String>
    dnsServersOverrides List<String>
    enableDynamic Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    poolHigh String
    poolLow String
    projectId String
    pushDefaultRoute Boolean
    pushDnsServer Boolean
    rebindTimer Integer
    renewTimer Integer
    subnet String
    updatedAt String
    validLifetime Integer
    zone String
    address string
    createdAt string
    dhcpId string
    dnsLocalName string
    dnsSearches string[]
    dnsServersOverrides string[]
    enableDynamic boolean
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    poolHigh string
    poolLow string
    projectId string
    pushDefaultRoute boolean
    pushDnsServer boolean
    rebindTimer number
    renewTimer number
    subnet string
    updatedAt string
    validLifetime number
    zone string
    address str
    created_at str
    dhcp_id str
    dns_local_name str
    dns_searches Sequence[str]
    dns_servers_overrides Sequence[str]
    enable_dynamic bool
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    pool_high str
    pool_low str
    project_id str
    push_default_route bool
    push_dns_server bool
    rebind_timer int
    renew_timer int
    subnet str
    updated_at str
    valid_lifetime int
    zone str
    address String
    createdAt String
    dhcpId String
    dnsLocalName String
    dnsSearches List<String>
    dnsServersOverrides List<String>
    enableDynamic Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    poolHigh String
    poolLow String
    projectId String
    pushDefaultRoute Boolean
    pushDnsServer Boolean
    rebindTimer Number
    renewTimer Number
    subnet String
    updatedAt String
    validLifetime Number
    zone String

    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.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse