outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getDhcpOptions
Explore with Pulumi AI
Provides information about DHCP options.
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 dhcpOptions01 = outscale.getDhcpOptions({
    filters: [
        {
            name: "domain_name_servers",
            values: [
                "111.11.111.1",
                "222.22.222.2",
            ],
        },
        {
            name: "domain_names",
            values: ["example.com"],
        },
    ],
});
import pulumi
import pulumi_outscale as outscale
dhcp_options01 = outscale.get_dhcp_options(filters=[
    {
        "name": "domain_name_servers",
        "values": [
            "111.11.111.1",
            "222.22.222.2",
        ],
    },
    {
        "name": "domain_names",
        "values": ["example.com"],
    },
])
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.GetDhcpOptions(ctx, &outscale.GetDhcpOptionsArgs{
			Filters: []outscale.GetDhcpOptionsFilter{
				{
					Name: "domain_name_servers",
					Values: []string{
						"111.11.111.1",
						"222.22.222.2",
					},
				},
				{
					Name: "domain_names",
					Values: []string{
						"example.com",
					},
				},
			},
		}, 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 dhcpOptions01 = Outscale.GetDhcpOptions.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetDhcpOptionsFilterInputArgs
            {
                Name = "domain_name_servers",
                Values = new[]
                {
                    "111.11.111.1",
                    "222.22.222.2",
                },
            },
            new Outscale.Inputs.GetDhcpOptionsFilterInputArgs
            {
                Name = "domain_names",
                Values = new[]
                {
                    "example.com",
                },
            },
        },
    });
});
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.GetDhcpOptionsArgs;
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 dhcpOptions01 = OutscaleFunctions.getDhcpOptions(GetDhcpOptionsArgs.builder()
            .filters(            
                GetDhcpOptionsFilterArgs.builder()
                    .name("domain_name_servers")
                    .values(                    
                        "111.11.111.1",
                        "222.22.222.2")
                    .build(),
                GetDhcpOptionsFilterArgs.builder()
                    .name("domain_names")
                    .values("example.com")
                    .build())
            .build());
    }
}
variables:
  dhcpOptions01:
    fn::invoke:
      function: outscale:getDhcpOptions
      arguments:
        filters:
          - name: domain_name_servers
            values:
              - 111.11.111.1
              - 222.22.222.2
          - name: domain_names
            values:
              - example.com
Using getDhcpOptions
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 getDhcpOptions(args: GetDhcpOptionsArgs, opts?: InvokeOptions): Promise<GetDhcpOptionsResult>
function getDhcpOptionsOutput(args: GetDhcpOptionsOutputArgs, opts?: InvokeOptions): Output<GetDhcpOptionsResult>def get_dhcp_options(filters: Optional[Sequence[GetDhcpOptionsFilter]] = None,
                     id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDhcpOptionsResult
def get_dhcp_options_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDhcpOptionsFilterArgs]]]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetDhcpOptionsResult]func GetDhcpOptions(ctx *Context, args *GetDhcpOptionsArgs, opts ...InvokeOption) (*GetDhcpOptionsResult, error)
func GetDhcpOptionsOutput(ctx *Context, args *GetDhcpOptionsOutputArgs, opts ...InvokeOption) GetDhcpOptionsResultOutput> Note: This function is named GetDhcpOptions in the Go SDK.
public static class GetDhcpOptions 
{
    public static Task<GetDhcpOptionsResult> InvokeAsync(GetDhcpOptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDhcpOptionsResult> Invoke(GetDhcpOptionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDhcpOptionsResult> getDhcpOptions(GetDhcpOptionsArgs args, InvokeOptions options)
public static Output<GetDhcpOptionsResult> getDhcpOptions(GetDhcpOptionsArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getDhcpOptions:getDhcpOptions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetDhcp Options 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 Options 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 Options 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 Options 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 Options 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
getDhcpOptions Result
The following output properties are available:
- DhcpOptions List<GetDhcp Options Dhcp Option> 
- DhcpOptions List<string>Set Ids 
- Id string
- RequestId string
- Filters
List<GetDhcp Options Filter> 
- DhcpOptions []GetDhcp Options Dhcp Option 
- DhcpOptions []stringSet Ids 
- Id string
- RequestId string
- Filters
[]GetDhcp Options Filter 
- dhcpOptions List<GetDhcp Options Dhcp Option> 
- dhcpOptions List<String>Set Ids 
- id String
- requestId String
- filters
List<GetDhcp Options Filter> 
- dhcpOptions GetDhcp Options Dhcp Option[] 
- dhcpOptions string[]Set Ids 
- id string
- requestId string
- filters
GetDhcp Options Filter[] 
- dhcpOptions List<Property Map>
- dhcpOptions List<String>Set Ids 
- id String
- requestId String
- filters List<Property Map>
Supporting Types
GetDhcpOptionsDhcpOption    
- 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.
- LogServers List<string>
- One or more IPs for the log servers.
- NtpServers List<string>
- One or more IPs for the NTP servers.
- 
List<GetDhcp Options Dhcp Option Tag> 
- One or more tags associated with the DHCP options set.
- 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.
- LogServers []string
- One or more IPs for the log servers.
- NtpServers []string
- One or more IPs for the NTP servers.
- 
[]GetDhcp Options Dhcp Option Tag 
- One or more tags associated with the DHCP options set.
- 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.
- logServers List<String>
- One or more IPs for the log servers.
- ntpServers List<String>
- One or more IPs for the NTP servers.
- 
List<GetDhcp Options Dhcp Option Tag> 
- One or more tags associated with the DHCP options set.
- 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.
- logServers string[]
- One or more IPs for the log servers.
- ntpServers string[]
- One or more IPs for the NTP servers.
- 
GetDhcp Options Dhcp Option Tag[] 
- One or more tags associated with the DHCP options set.
- 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.
- log_servers Sequence[str]
- One or more IPs for the log servers.
- ntp_servers Sequence[str]
- One or more IPs for the NTP servers.
- 
Sequence[GetDhcp Options Dhcp Option Tag] 
- One or more tags associated with the DHCP options set.
- 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.
- logServers List<String>
- One or more IPs for the log servers.
- ntpServers List<String>
- One or more IPs for the NTP servers.
- List<Property Map>
- One or more tags associated with the DHCP options set.
GetDhcpOptionsDhcpOptionTag     
GetDhcpOptionsFilter   
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.