outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getDhcpOption
Explore with Pulumi AI
Provides information about a DHCP option.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const dhcpOption01 = outscale.getDhcpOption({
    filters: [{
        name: "dhcp_options_set_id",
        values: ["dopt-12345678"],
    }],
});
import pulumi
import pulumi_outscale as outscale
dhcp_option01 = outscale.get_dhcp_option(filters=[{
    "name": "dhcp_options_set_id",
    "values": ["dopt-12345678"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupDhcpOption(ctx, &outscale.LookupDhcpOptionArgs{
			Filters: []outscale.GetDhcpOptionFilter{
				{
					Name: "dhcp_options_set_id",
					Values: []string{
						"dopt-12345678",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var dhcpOption01 = Outscale.GetDhcpOption.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetDhcpOptionFilterInputArgs
            {
                Name = "dhcp_options_set_id",
                Values = new[]
                {
                    "dopt-12345678",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetDhcpOptionArgs;
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) {
        final var dhcpOption01 = OutscaleFunctions.getDhcpOption(GetDhcpOptionArgs.builder()
            .filters(GetDhcpOptionFilterArgs.builder()
                .name("dhcp_options_set_id")
                .values("dopt-12345678")
                .build())
            .build());
    }
}
variables:
  dhcpOption01:
    fn::invoke:
      function: outscale:getDhcpOption
      arguments:
        filters:
          - name: dhcp_options_set_id
            values:
              - dopt-12345678
Using getDhcpOption
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 getDhcpOption(args: GetDhcpOptionArgs, opts?: InvokeOptions): Promise<GetDhcpOptionResult>
function getDhcpOptionOutput(args: GetDhcpOptionOutputArgs, opts?: InvokeOptions): Output<GetDhcpOptionResult>def get_dhcp_option(filters: Optional[Sequence[GetDhcpOptionFilter]] = None,
                    id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDhcpOptionResult
def get_dhcp_option_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDhcpOptionFilterArgs]]]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDhcpOptionResult]func LookupDhcpOption(ctx *Context, args *LookupDhcpOptionArgs, opts ...InvokeOption) (*LookupDhcpOptionResult, error)
func LookupDhcpOptionOutput(ctx *Context, args *LookupDhcpOptionOutputArgs, opts ...InvokeOption) LookupDhcpOptionResultOutput> Note: This function is named LookupDhcpOption in the Go SDK.
public static class GetDhcpOption 
{
    public static Task<GetDhcpOptionResult> InvokeAsync(GetDhcpOptionArgs args, InvokeOptions? opts = null)
    public static Output<GetDhcpOptionResult> Invoke(GetDhcpOptionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpOptionResult> getDhcpOption(GetDhcpOptionArgs args, InvokeOptions options)
public static Output<GetDhcpOptionResult> getDhcpOption(GetDhcpOptionArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getDhcpOption:getDhcpOption
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetDhcp Option Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- Filters
[]GetDhcp Option Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- filters
List<GetDhcp Option Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- filters
GetDhcp Option Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- filters
Sequence[GetDhcp Option Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
getDhcpOption Result
The following output properties are available:
- Default bool
- If true, the DHCP options set is a default one. If false, it is not.
- DhcpOptions stringSet Id 
- The ID of the DHCP options set.
- DomainName string
- The domain name.
- DomainName List<string>Servers 
- One or more IPs for the domain name servers.
- Id string
- LogServers List<string>
- One or more IPs for the log servers.
- NtpServers List<string>
- One or more IPs for the NTP servers.
- RequestId string
- 
List<GetDhcp Option Tag> 
- One or more tags associated with the DHCP options set.
- Filters
List<GetDhcp Option Filter> 
- Default bool
- If true, the DHCP options set is a default one. If false, it is not.
- DhcpOptions stringSet Id 
- The ID of the DHCP options set.
- DomainName string
- The domain name.
- DomainName []stringServers 
- One or more IPs for the domain name servers.
- Id string
- LogServers []string
- One or more IPs for the log servers.
- NtpServers []string
- One or more IPs for the NTP servers.
- RequestId string
- 
[]GetDhcp Option Tag 
- One or more tags associated with the DHCP options set.
- Filters
[]GetDhcp Option Filter 
- default_ Boolean
- If true, the DHCP options set is a default one. If false, it is not.
- dhcpOptions StringSet Id 
- The ID of the DHCP options set.
- domainName String
- The domain name.
- domainName List<String>Servers 
- One or more IPs for the domain name servers.
- id String
- logServers List<String>
- One or more IPs for the log servers.
- ntpServers List<String>
- One or more IPs for the NTP servers.
- requestId String
- 
List<GetDhcp Option Tag> 
- One or more tags associated with the DHCP options set.
- filters
List<GetDhcp Option Filter> 
- default boolean
- If true, the DHCP options set is a default one. If false, it is not.
- dhcpOptions stringSet Id 
- The ID of the DHCP options set.
- domainName string
- The domain name.
- domainName string[]Servers 
- One or more IPs for the domain name servers.
- id string
- logServers string[]
- One or more IPs for the log servers.
- ntpServers string[]
- One or more IPs for the NTP servers.
- requestId string
- 
GetDhcp Option Tag[] 
- One or more tags associated with the DHCP options set.
- filters
GetDhcp Option Filter[] 
- default bool
- If true, the DHCP options set is a default one. If false, it is not.
- dhcp_options_ strset_ id 
- The ID of the DHCP options set.
- domain_name str
- The domain name.
- domain_name_ Sequence[str]servers 
- One or more IPs for the domain name servers.
- id str
- log_servers Sequence[str]
- One or more IPs for the log servers.
- ntp_servers Sequence[str]
- One or more IPs for the NTP servers.
- request_id str
- 
Sequence[GetDhcp Option Tag] 
- One or more tags associated with the DHCP options set.
- filters
Sequence[GetDhcp Option Filter] 
- default Boolean
- If true, the DHCP options set is a default one. If false, it is not.
- dhcpOptions StringSet Id 
- The ID of the DHCP options set.
- domainName String
- The domain name.
- domainName List<String>Servers 
- One or more IPs for the domain name servers.
- id String
- logServers List<String>
- One or more IPs for the log servers.
- ntpServers List<String>
- One or more IPs for the NTP servers.
- requestId String
- List<Property Map>
- One or more tags associated with the DHCP options set.
- filters List<Property Map>
Supporting Types
GetDhcpOptionFilter   
GetDhcpOptionTag   
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.