1. Packages
  2. Routeros Provider
  3. API Docs
  4. Ipv6DhcpServerOptionSets
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.Ipv6DhcpServerOptionSets

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const domain_search = new routeros.Ipv6DhcpServerOption("domain-search", {
        code: 24,
        value: "0x07'example'0x05'local'0x00",
    });
    const test = new routeros.Ipv6DhcpServerOptionSets("test", {options: [domain_search.name]});
    
    import pulumi
    import pulumi_routeros as routeros
    
    domain_search = routeros.Ipv6DhcpServerOption("domain-search",
        code=24,
        value="0x07'example'0x05'local'0x00")
    test = routeros.Ipv6DhcpServerOptionSets("test", options=[domain_search.name])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		domain_search, err := routeros.NewIpv6DhcpServerOption(ctx, "domain-search", &routeros.Ipv6DhcpServerOptionArgs{
    			Code:  pulumi.Float64(24),
    			Value: pulumi.String("0x07'example'0x05'local'0x00"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = routeros.NewIpv6DhcpServerOptionSets(ctx, "test", &routeros.Ipv6DhcpServerOptionSetsArgs{
    			Options: pulumi.StringArray{
    				domain_search.Name,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var domain_search = new Routeros.Ipv6DhcpServerOption("domain-search", new()
        {
            Code = 24,
            Value = "0x07'example'0x05'local'0x00",
        });
    
        var test = new Routeros.Ipv6DhcpServerOptionSets("test", new()
        {
            Options = new[]
            {
                domain_search.Name,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.Ipv6DhcpServerOption;
    import com.pulumi.routeros.Ipv6DhcpServerOptionArgs;
    import com.pulumi.routeros.Ipv6DhcpServerOptionSets;
    import com.pulumi.routeros.Ipv6DhcpServerOptionSetsArgs;
    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 domain_search = new Ipv6DhcpServerOption("domain-search", Ipv6DhcpServerOptionArgs.builder()
                .code(24)
                .value("0x07'example'0x05'local'0x00")
                .build());
    
            var test = new Ipv6DhcpServerOptionSets("test", Ipv6DhcpServerOptionSetsArgs.builder()
                .options(domain_search.name())
                .build());
    
        }
    }
    
    resources:
      domain-search:
        type: routeros:Ipv6DhcpServerOption
        properties:
          code: 24
          value: 0x07'example'0x05'local'0x00
      test:
        type: routeros:Ipv6DhcpServerOptionSets
        properties:
          options:
            - ${["domain-search"].name}
    

    Create Ipv6DhcpServerOptionSets Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Ipv6DhcpServerOptionSets(name: string, args?: Ipv6DhcpServerOptionSetsArgs, opts?: CustomResourceOptions);
    @overload
    def Ipv6DhcpServerOptionSets(resource_name: str,
                                 args: Optional[Ipv6DhcpServerOptionSetsArgs] = None,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def Ipv6DhcpServerOptionSets(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 ___id_: Optional[float] = None,
                                 ___path_: Optional[str] = None,
                                 comment: Optional[str] = None,
                                 ipv6_dhcp_server_option_sets_id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 options: Optional[Sequence[str]] = None)
    func NewIpv6DhcpServerOptionSets(ctx *Context, name string, args *Ipv6DhcpServerOptionSetsArgs, opts ...ResourceOption) (*Ipv6DhcpServerOptionSets, error)
    public Ipv6DhcpServerOptionSets(string name, Ipv6DhcpServerOptionSetsArgs? args = null, CustomResourceOptions? opts = null)
    public Ipv6DhcpServerOptionSets(String name, Ipv6DhcpServerOptionSetsArgs args)
    public Ipv6DhcpServerOptionSets(String name, Ipv6DhcpServerOptionSetsArgs args, CustomResourceOptions options)
    
    type: routeros:Ipv6DhcpServerOptionSets
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args Ipv6DhcpServerOptionSetsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args Ipv6DhcpServerOptionSetsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args Ipv6DhcpServerOptionSetsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args Ipv6DhcpServerOptionSetsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args Ipv6DhcpServerOptionSetsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Ipv6DhcpServerOptionSets Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Ipv6DhcpServerOptionSets resource accepts the following input properties:

    Comment string
    Ipv6DhcpServerOptionSetsId string
    The ID of this resource.
    Name string
    The name of the DHCPv6 option.
    Options List<string>
    The list of options.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Comment string
    Ipv6DhcpServerOptionSetsId string
    The ID of this resource.
    Name string
    The name of the DHCPv6 option.
    Options []string
    The list of options.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    ipv6DhcpServerOptionSetsId String
    The ID of this resource.
    name String
    The name of the DHCPv6 option.
    options List<String>
    The list of options.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment string
    ipv6DhcpServerOptionSetsId string
    The ID of this resource.
    name string
    The name of the DHCPv6 option.
    options string[]
    The list of options.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment str
    ipv6_dhcp_server_option_sets_id str
    The ID of this resource.
    name str
    The name of the DHCPv6 option.
    options Sequence[str]
    The list of options.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    ipv6DhcpServerOptionSetsId String
    The ID of this resource.
    name String
    The name of the DHCPv6 option.
    options List<String>
    The list of options.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Ipv6DhcpServerOptionSets resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Ipv6DhcpServerOptionSets Resource

    Get an existing Ipv6DhcpServerOptionSets resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: Ipv6DhcpServerOptionSetsState, opts?: CustomResourceOptions): Ipv6DhcpServerOptionSets
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            comment: Optional[str] = None,
            ipv6_dhcp_server_option_sets_id: Optional[str] = None,
            name: Optional[str] = None,
            options: Optional[Sequence[str]] = None) -> Ipv6DhcpServerOptionSets
    func GetIpv6DhcpServerOptionSets(ctx *Context, name string, id IDInput, state *Ipv6DhcpServerOptionSetsState, opts ...ResourceOption) (*Ipv6DhcpServerOptionSets, error)
    public static Ipv6DhcpServerOptionSets Get(string name, Input<string> id, Ipv6DhcpServerOptionSetsState? state, CustomResourceOptions? opts = null)
    public static Ipv6DhcpServerOptionSets get(String name, Output<String> id, Ipv6DhcpServerOptionSetsState state, CustomResourceOptions options)
    resources:  _:    type: routeros:Ipv6DhcpServerOptionSets    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Comment string
    Ipv6DhcpServerOptionSetsId string
    The ID of this resource.
    Name string
    The name of the DHCPv6 option.
    Options List<string>
    The list of options.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Comment string
    Ipv6DhcpServerOptionSetsId string
    The ID of this resource.
    Name string
    The name of the DHCPv6 option.
    Options []string
    The list of options.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    ipv6DhcpServerOptionSetsId String
    The ID of this resource.
    name String
    The name of the DHCPv6 option.
    options List<String>
    The list of options.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment string
    ipv6DhcpServerOptionSetsId string
    The ID of this resource.
    name string
    The name of the DHCPv6 option.
    options string[]
    The list of options.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment str
    ipv6_dhcp_server_option_sets_id str
    The ID of this resource.
    name str
    The name of the DHCPv6 option.
    options Sequence[str]
    The list of options.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    comment String
    ipv6DhcpServerOptionSetsId String
    The ID of this resource.
    name String
    The name of the DHCPv6 option.
    options List<String>
    The list of options.

    Import

    #The ID can be found via API or the terminal

    #The command for the terminal is -> :put [/ipv6/dhcp/server/option/sets get [print show-ids]]

    $ pulumi import routeros:index/ipv6DhcpServerOptionSets:Ipv6DhcpServerOptionSets test *3
    

    #Or you can import a resource using one of its attributes

    $ pulumi import routeros:index/ipv6DhcpServerOptionSets:Ipv6DhcpServerOptionSets test "name=test-set"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros