outscale 1.1.0 published on Thursday, Apr 3, 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<Get
Dhcp 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
[]Get
Dhcp 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<Get
Dhcp 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
Get
Dhcp 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[Get
Dhcp 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.
 - Dhcp
Options stringSet Id  - The ID of the DHCP options set.
 - Domain
Name string - The domain name.
 - Domain
Name List<string>Servers  - One or more IPs for the domain name servers.
 - Id string
 - Log
Servers List<string> - One or more IPs for the log servers.
 - Ntp
Servers List<string> - One or more IPs for the NTP servers.
 - Request
Id string - 
List<Get
Dhcp Option Tag>  - One or more tags associated with the DHCP options set.
 - Filters
List<Get
Dhcp Option Filter>  
- Default bool
 - If true, the DHCP options set is a default one. If false, it is not.
 - Dhcp
Options stringSet Id  - The ID of the DHCP options set.
 - Domain
Name string - The domain name.
 - Domain
Name []stringServers  - One or more IPs for the domain name servers.
 - Id string
 - Log
Servers []string - One or more IPs for the log servers.
 - Ntp
Servers []string - One or more IPs for the NTP servers.
 - Request
Id string - 
[]Get
Dhcp Option Tag  - One or more tags associated with the DHCP options set.
 - Filters
[]Get
Dhcp Option Filter  
- default_ Boolean
 - If true, the DHCP options set is a default one. If false, it is not.
 - dhcp
Options StringSet Id  - The ID of the DHCP options set.
 - domain
Name String - The domain name.
 - domain
Name List<String>Servers  - One or more IPs for the domain name servers.
 - id String
 - log
Servers List<String> - One or more IPs for the log servers.
 - ntp
Servers List<String> - One or more IPs for the NTP servers.
 - request
Id String - 
List<Get
Dhcp Option Tag>  - One or more tags associated with the DHCP options set.
 - filters
List<Get
Dhcp Option Filter>  
- default boolean
 - If true, the DHCP options set is a default one. If false, it is not.
 - dhcp
Options stringSet Id  - The ID of the DHCP options set.
 - domain
Name string - The domain name.
 - domain
Name string[]Servers  - One or more IPs for the domain name servers.
 - id string
 - log
Servers string[] - One or more IPs for the log servers.
 - ntp
Servers string[] - One or more IPs for the NTP servers.
 - request
Id string - 
Get
Dhcp Option Tag[]  - One or more tags associated with the DHCP options set.
 - filters
Get
Dhcp 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[Get
Dhcp Option Tag]  - One or more tags associated with the DHCP options set.
 - filters
Sequence[Get
Dhcp Option Filter]  
- default Boolean
 - If true, the DHCP options set is a default one. If false, it is not.
 - dhcp
Options StringSet Id  - The ID of the DHCP options set.
 - domain
Name String - The domain name.
 - domain
Name List<String>Servers  - One or more IPs for the domain name servers.
 - id String
 - log
Servers List<String> - One or more IPs for the log servers.
 - ntp
Servers List<String> - One or more IPs for the NTP servers.
 - request
Id 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.