Scaleway v1.15.0 published on Tuesday, Jul 30, 2024 by pulumiverse
scaleway.getVpcPublicGatewayDhcp
Explore with Pulumi AI
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:
- Dhcp
Id string
- Dhcp
Id string
- dhcp
Id String
- dhcp
Id string
- dhcp_
id str
- dhcp
Id String
getVpcPublicGatewayDhcp Result
The following output properties are available:
- Address string
- Created
At string - Dhcp
Id string - Dns
Local stringName - Dns
Searches List<string> - Dns
Servers List<string>Overrides - Enable
Dynamic bool - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Pool
High string - Pool
Low string - Project
Id string - Push
Default boolRoute - Push
Dns boolServer - Rebind
Timer int - Renew
Timer int - Subnet string
- Updated
At string - Valid
Lifetime int - Zone string
- Address string
- Created
At string - Dhcp
Id string - Dns
Local stringName - Dns
Searches []string - Dns
Servers []stringOverrides - Enable
Dynamic bool - Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Pool
High string - Pool
Low string - Project
Id string - Push
Default boolRoute - Push
Dns boolServer - Rebind
Timer int - Renew
Timer int - Subnet string
- Updated
At string - Valid
Lifetime int - Zone string
- address String
- created
At String - dhcp
Id String - dns
Local StringName - dns
Searches List<String> - dns
Servers List<String>Overrides - enable
Dynamic Boolean - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - pool
High String - pool
Low String - project
Id String - push
Default BooleanRoute - push
Dns BooleanServer - rebind
Timer Integer - renew
Timer Integer - subnet String
- updated
At String - valid
Lifetime Integer - zone String
- address string
- created
At string - dhcp
Id string - dns
Local stringName - dns
Searches string[] - dns
Servers string[]Overrides - enable
Dynamic boolean - id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - pool
High string - pool
Low string - project
Id string - push
Default booleanRoute - push
Dns booleanServer - rebind
Timer number - renew
Timer number - subnet string
- updated
At string - valid
Lifetime number - zone string
- address str
- created_
at str - dhcp_
id str - dns_
local_ strname - dns_
searches Sequence[str] - dns_
servers_ Sequence[str]overrides - 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_ boolroute - push_
dns_ boolserver - rebind_
timer int - renew_
timer int - subnet str
- updated_
at str - valid_
lifetime int - zone str
- address String
- created
At String - dhcp
Id String - dns
Local StringName - dns
Searches List<String> - dns
Servers List<String>Overrides - enable
Dynamic Boolean - id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - pool
High String - pool
Low String - project
Id String - push
Default BooleanRoute - push
Dns BooleanServer - rebind
Timer Number - renew
Timer Number - subnet String
- updated
At String - valid
Lifetime 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.