1. Packages
  2. Routeros Provider
  3. API Docs
  4. Ipv6DhcpServerOption
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

routeros.Ipv6DhcpServerOption

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";

const test = new routeros.Ipv6DhcpServerOption("test", {
    code: 24,
    value: "0x07'example'0x05'local'0x00",
});
Copy
import pulumi
import pulumi_routeros as routeros

test = routeros.Ipv6DhcpServerOption("test",
    code=24,
    value="0x07'example'0x05'local'0x00")
Copy
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 {
		_, err := routeros.NewIpv6DhcpServerOption(ctx, "test", &routeros.Ipv6DhcpServerOptionArgs{
			Code:  pulumi.Float64(24),
			Value: pulumi.String("0x07'example'0x05'local'0x00"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;

return await Deployment.RunAsync(() => 
{
    var test = new Routeros.Ipv6DhcpServerOption("test", new()
    {
        Code = 24,
        Value = "0x07'example'0x05'local'0x00",
    });

});
Copy
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 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 test = new Ipv6DhcpServerOption("test", Ipv6DhcpServerOptionArgs.builder()
            .code(24)
            .value("0x07'example'0x05'local'0x00")
            .build());

    }
}
Copy
resources:
  test:
    type: routeros:Ipv6DhcpServerOption
    properties:
      code: 24
      value: 0x07'example'0x05'local'0x00
Copy

Create Ipv6DhcpServerOption Resource

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

Constructor syntax

new Ipv6DhcpServerOption(name: string, args: Ipv6DhcpServerOptionArgs, opts?: CustomResourceOptions);
@overload
def Ipv6DhcpServerOption(resource_name: str,
                         args: Ipv6DhcpServerOptionArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def Ipv6DhcpServerOption(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         code: Optional[float] = None,
                         ___id_: Optional[float] = None,
                         ___path_: Optional[str] = None,
                         comment: Optional[str] = None,
                         ipv6_dhcp_server_option_id: Optional[str] = None,
                         name: Optional[str] = None,
                         value: Optional[str] = None)
func NewIpv6DhcpServerOption(ctx *Context, name string, args Ipv6DhcpServerOptionArgs, opts ...ResourceOption) (*Ipv6DhcpServerOption, error)
public Ipv6DhcpServerOption(string name, Ipv6DhcpServerOptionArgs args, CustomResourceOptions? opts = null)
public Ipv6DhcpServerOption(String name, Ipv6DhcpServerOptionArgs args)
public Ipv6DhcpServerOption(String name, Ipv6DhcpServerOptionArgs args, CustomResourceOptions options)
type: routeros:Ipv6DhcpServerOption
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Ipv6DhcpServerOption 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 Ipv6DhcpServerOption resource accepts the following input properties:

Code This property is required. double
Dhcp option code.
Comment string
Ipv6DhcpServerOptionId string
Name string
Descriptive name of the option.
Value string
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
Code This property is required. float64
Dhcp option code.
Comment string
Ipv6DhcpServerOptionId string
Name string
Descriptive name of the option.
Value string
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
code This property is required. Double
Dhcp option code.
___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
ipv6DhcpServerOptionId String
name String
Descriptive name of the option.
value String
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
code This property is required. number
Dhcp option code.
___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
ipv6DhcpServerOptionId string
name string
Descriptive name of the option.
value string
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
code This property is required. float
Dhcp option code.
___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_id str
name str
Descriptive name of the option.
value str
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
code This property is required. Number
Dhcp option code.
___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
ipv6DhcpServerOptionId String
name String
Descriptive name of the option.
value String
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
RawValue string
Read-only field which shows raw DHCP option value (the format actually sent out).
Id string
The provider-assigned unique ID for this managed resource.
RawValue string
Read-only field which shows raw DHCP option value (the format actually sent out).
id String
The provider-assigned unique ID for this managed resource.
rawValue String
Read-only field which shows raw DHCP option value (the format actually sent out).
id string
The provider-assigned unique ID for this managed resource.
rawValue string
Read-only field which shows raw DHCP option value (the format actually sent out).
id str
The provider-assigned unique ID for this managed resource.
raw_value str
Read-only field which shows raw DHCP option value (the format actually sent out).
id String
The provider-assigned unique ID for this managed resource.
rawValue String
Read-only field which shows raw DHCP option value (the format actually sent out).

Look up Existing Ipv6DhcpServerOption Resource

Get an existing Ipv6DhcpServerOption 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?: Ipv6DhcpServerOptionState, opts?: CustomResourceOptions): Ipv6DhcpServerOption
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        code: Optional[float] = None,
        comment: Optional[str] = None,
        ipv6_dhcp_server_option_id: Optional[str] = None,
        name: Optional[str] = None,
        raw_value: Optional[str] = None,
        value: Optional[str] = None) -> Ipv6DhcpServerOption
func GetIpv6DhcpServerOption(ctx *Context, name string, id IDInput, state *Ipv6DhcpServerOptionState, opts ...ResourceOption) (*Ipv6DhcpServerOption, error)
public static Ipv6DhcpServerOption Get(string name, Input<string> id, Ipv6DhcpServerOptionState? state, CustomResourceOptions? opts = null)
public static Ipv6DhcpServerOption get(String name, Output<String> id, Ipv6DhcpServerOptionState state, CustomResourceOptions options)
resources:  _:    type: routeros:Ipv6DhcpServerOption    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Code double
Dhcp option code.
Comment string
Ipv6DhcpServerOptionId string
Name string
Descriptive name of the option.
RawValue string
Read-only field which shows raw DHCP option value (the format actually sent out).
Value string
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
Code float64
Dhcp option code.
Comment string
Ipv6DhcpServerOptionId string
Name string
Descriptive name of the option.
RawValue string
Read-only field which shows raw DHCP option value (the format actually sent out).
Value string
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
code Double
Dhcp option code.
comment String
ipv6DhcpServerOptionId String
name String
Descriptive name of the option.
rawValue String
Read-only field which shows raw DHCP option value (the format actually sent out).
value String
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
code number
Dhcp option code.
comment string
ipv6DhcpServerOptionId string
name string
Descriptive name of the option.
rawValue string
Read-only field which shows raw DHCP option value (the format actually sent out).
value string
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
code float
Dhcp option code.
comment str
ipv6_dhcp_server_option_id str
name str
Descriptive name of the option.
raw_value str
Read-only field which shows raw DHCP option value (the format actually sent out).
value str
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.
___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.
code Number
Dhcp option code.
comment String
ipv6DhcpServerOptionId String
name String
Descriptive name of the option.
rawValue String
Read-only field which shows raw DHCP option value (the format actually sent out).
value String
Parameter's value. Available data types for options are: - 'test' > ASCII to Hex 0x74657374 - '10.10.10.10' > Unicode IP to Hex 0x0a0a0a0a - s'10.10.10.10' > ASCII to Hex 0x31302e31302e31302e3130 - s'160' > ASCII to Hex 0x313630 - '10' > Decimal to Hex 0x0a - 0x0a0a > No conversion - $(VARIABLE) > hardcoded values RouterOS has predefined variables that can be used: - HOSTNAME - client hostname - RADIUS_MT_STR1 - from radius MT attr nr. 24

  • RADIUS_MT_STR2 - from radius MT attr nr. 25 - REMOTE_ID - agent remote-id - NETWORK_GATEWAY - the first gateway from /ip dhcp-server network, note that this option won't work if used from lease. Now it is also possible to combine data types into one, for example: 0x01'vards'$(HOSTNAME)`For example if HOSTNAME is 'kvm', then raw value will be 0x0176617264736b766d.

Import

#The ID can be found via API or the terminal

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

$ pulumi import routeros:index/ipv6DhcpServerOption:Ipv6DhcpServerOption test *3
Copy

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

$ pulumi import routeros:index/ipv6DhcpServerOption:Ipv6DhcpServerOption test "name=domain-search"
Copy

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.