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",
});
import pulumi
import pulumi_routeros as routeros
test = routeros.Ipv6DhcpServerOption("test",
code=24,
value="0x07'example'0x05'local'0x00")
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
})
}
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",
});
});
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());
}
}
resources:
test:
type: routeros:Ipv6DhcpServerOption
properties:
code: 24
value: 0x07'example'0x05'local'0x00
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 string
- The unique name of the resource.
- args Ipv6DhcpServerOptionArgs
- 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 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 string
- The unique name of the resource.
- args Ipv6DhcpServerOptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv6DhcpServerOptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 double
- Dhcp option code.
- Comment string
- Ipv6Dhcp
Server stringOption Id - 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 float64
- Dhcp option code.
- Comment string
- Ipv6Dhcp
Server stringOption Id - 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 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
- ipv6Dhcp
Server StringOption Id - 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 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
- ipv6Dhcp
Server stringOption Id - 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 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_ strserver_ option_ id - 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 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
- ipv6Dhcp
Server StringOption Id - 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:
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
- 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.
- Code double
- Dhcp option code.
- Comment string
- Ipv6Dhcp
Server stringOption Id - Name string
- Descriptive name of the option.
- Raw
Value 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
- Ipv6Dhcp
Server stringOption Id - Name string
- Descriptive name of the option.
- Raw
Value 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
- ipv6Dhcp
Server StringOption Id - name String
- Descriptive name of the option.
- raw
Value 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
- ipv6Dhcp
Server stringOption Id - name string
- Descriptive name of the option.
- raw
Value 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_ strserver_ option_ id - 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
- ipv6Dhcp
Server StringOption Id - name String
- Descriptive name of the option.
- raw
Value 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
#Or you can import a resource using one of its attributes
$ pulumi import routeros:index/ipv6DhcpServerOption:Ipv6DhcpServerOption test "name=domain-search"
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.