routeros.IpDhcpServerLease
Explore with Pulumi AI
# routeros.IpDhcpServerLease (Resource)
Creates a DHCP lease on the mikrotik device.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const dhcpLease = new routeros.IpDhcpServerLease("dhcpLease", {
address: "10.0.0.2",
macAddress: "AA:BB:CC:DD:11:22",
});
import pulumi
import pulumi_routeros as routeros
dhcp_lease = routeros.IpDhcpServerLease("dhcpLease",
address="10.0.0.2",
mac_address="AA:BB:CC:DD:11:22")
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.NewIpDhcpServerLease(ctx, "dhcpLease", &routeros.IpDhcpServerLeaseArgs{
Address: pulumi.String("10.0.0.2"),
MacAddress: pulumi.String("AA:BB:CC:DD:11:22"),
})
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 dhcpLease = new Routeros.IpDhcpServerLease("dhcpLease", new()
{
Address = "10.0.0.2",
MacAddress = "AA:BB:CC:DD:11:22",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.IpDhcpServerLease;
import com.pulumi.routeros.IpDhcpServerLeaseArgs;
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 dhcpLease = new IpDhcpServerLease("dhcpLease", IpDhcpServerLeaseArgs.builder()
.address("10.0.0.2")
.macAddress("AA:BB:CC:DD:11:22")
.build());
}
}
resources:
dhcpLease:
type: routeros:IpDhcpServerLease
properties:
address: 10.0.0.2
macAddress: AA:BB:CC:DD:11:22
Create IpDhcpServerLease Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpDhcpServerLease(name: string, args: IpDhcpServerLeaseArgs, opts?: CustomResourceOptions);
@overload
def IpDhcpServerLease(resource_name: str,
args: IpDhcpServerLeaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpDhcpServerLease(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
mac_address: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
allow_dual_stack_queue: Optional[bool] = None,
always_broadcast: Optional[bool] = None,
block_access: Optional[bool] = None,
client_id: Optional[str] = None,
___id_: Optional[float] = None,
dhcp_option: Optional[str] = None,
dhcp_option_set: Optional[str] = None,
address_lists: Optional[str] = None,
insert_queue_before: Optional[str] = None,
ip_dhcp_server_lease_id: Optional[str] = None,
lease_time: Optional[str] = None,
___path_: Optional[str] = None,
rate_limit: Optional[str] = None,
server: Optional[str] = None,
use_src_mac: Optional[bool] = None)
func NewIpDhcpServerLease(ctx *Context, name string, args IpDhcpServerLeaseArgs, opts ...ResourceOption) (*IpDhcpServerLease, error)
public IpDhcpServerLease(string name, IpDhcpServerLeaseArgs args, CustomResourceOptions? opts = null)
public IpDhcpServerLease(String name, IpDhcpServerLeaseArgs args)
public IpDhcpServerLease(String name, IpDhcpServerLeaseArgs args, CustomResourceOptions options)
type: routeros:IpDhcpServerLease
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 IpDhcpServerLeaseArgs
- 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 IpDhcpServerLeaseArgs
- 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 IpDhcpServerLeaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpDhcpServerLeaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpDhcpServerLeaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IpDhcpServerLease 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 IpDhcpServerLease resource accepts the following input properties:
- Address string
- The IP address of the DHCP lease to be created.
- Mac
Address string - The MAC addreess of the DHCP lease to be created.
- Address
Lists string - Address list to which address will be added if lease is bound.
- Allow
Dual boolStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- Always
Broadcast bool - Send all replies as broadcasts.
- Block
Access bool - Whether to block access for this DHCP client (true|false).
- Client
Id string - If specified, must match DHCP 'client identifier' option of the request.
- Comment string
- Dhcp
Option string - Add additional DHCP options.
- Dhcp
Option stringSet - Add additional set of DHCP options.
- Disabled bool
- Insert
Queue stringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- Ip
Dhcp stringServer Lease Id - The ID of this resource.
- Lease
Time string - Time that the client may use the address. If set to 0s lease will never expire.
- Rate
Limit string - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- Server string
- Server name which serves this client.
- Use
Src boolMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- Address string
- The IP address of the DHCP lease to be created.
- Mac
Address string - The MAC addreess of the DHCP lease to be created.
- Address
Lists string - Address list to which address will be added if lease is bound.
- Allow
Dual boolStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- Always
Broadcast bool - Send all replies as broadcasts.
- Block
Access bool - Whether to block access for this DHCP client (true|false).
- Client
Id string - If specified, must match DHCP 'client identifier' option of the request.
- Comment string
- Dhcp
Option string - Add additional DHCP options.
- Dhcp
Option stringSet - Add additional set of DHCP options.
- Disabled bool
- Insert
Queue stringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- Ip
Dhcp stringServer Lease Id - The ID of this resource.
- Lease
Time string - Time that the client may use the address. If set to 0s lease will never expire.
- Rate
Limit string - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- Server string
- Server name which serves this client.
- Use
Src boolMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- address String
- The IP address of the DHCP lease to be created.
- mac
Address String - The MAC addreess of the DHCP lease to be created.
- ___
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.
- address
Lists String - Address list to which address will be added if lease is bound.
- allow
Dual BooleanStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always
Broadcast Boolean - Send all replies as broadcasts.
- block
Access Boolean - Whether to block access for this DHCP client (true|false).
- client
Id String - If specified, must match DHCP 'client identifier' option of the request.
- comment String
- dhcp
Option String - Add additional DHCP options.
- dhcp
Option StringSet - Add additional set of DHCP options.
- disabled Boolean
- insert
Queue StringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip
Dhcp StringServer Lease Id - The ID of this resource.
- lease
Time String - Time that the client may use the address. If set to 0s lease will never expire.
- rate
Limit String - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server String
- Server name which serves this client.
- use
Src BooleanMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- address string
- The IP address of the DHCP lease to be created.
- mac
Address string - The MAC addreess of the DHCP lease to be created.
- ___
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.
- address
Lists string - Address list to which address will be added if lease is bound.
- allow
Dual booleanStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always
Broadcast boolean - Send all replies as broadcasts.
- block
Access boolean - Whether to block access for this DHCP client (true|false).
- client
Id string - If specified, must match DHCP 'client identifier' option of the request.
- comment string
- dhcp
Option string - Add additional DHCP options.
- dhcp
Option stringSet - Add additional set of DHCP options.
- disabled boolean
- insert
Queue stringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip
Dhcp stringServer Lease Id - The ID of this resource.
- lease
Time string - Time that the client may use the address. If set to 0s lease will never expire.
- rate
Limit string - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server string
- Server name which serves this client.
- use
Src booleanMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- address str
- The IP address of the DHCP lease to be created.
- mac_
address str - The MAC addreess of the DHCP lease to be created.
- ___
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.
- address_
lists str - Address list to which address will be added if lease is bound.
- allow_
dual_ boolstack_ queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always_
broadcast bool - Send all replies as broadcasts.
- block_
access bool - Whether to block access for this DHCP client (true|false).
- client_
id str - If specified, must match DHCP 'client identifier' option of the request.
- comment str
- dhcp_
option str - Add additional DHCP options.
- dhcp_
option_ strset - Add additional set of DHCP options.
- disabled bool
- insert_
queue_ strbefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip_
dhcp_ strserver_ lease_ id - The ID of this resource.
- lease_
time str - Time that the client may use the address. If set to 0s lease will never expire.
- rate_
limit str - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server str
- Server name which serves this client.
- use_
src_ boolmac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- address String
- The IP address of the DHCP lease to be created.
- mac
Address String - The MAC addreess of the DHCP lease to be created.
- ___
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.
- address
Lists String - Address list to which address will be added if lease is bound.
- allow
Dual BooleanStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always
Broadcast Boolean - Send all replies as broadcasts.
- block
Access Boolean - Whether to block access for this DHCP client (true|false).
- client
Id String - If specified, must match DHCP 'client identifier' option of the request.
- comment String
- dhcp
Option String - Add additional DHCP options.
- dhcp
Option StringSet - Add additional set of DHCP options.
- disabled Boolean
- insert
Queue StringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip
Dhcp StringServer Lease Id - The ID of this resource.
- lease
Time String - Time that the client may use the address. If set to 0s lease will never expire.
- rate
Limit String - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server String
- Server name which serves this client.
- use
Src BooleanMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
Outputs
All input properties are implicitly available as output properties. Additionally, the IpDhcpServerLease resource produces the following output properties:
- Active
Address string - The IP address of the machine currently holding the DHCP lease.
- Active
Client stringId - Actual client-id of the client.
- Active
Hostname string - The hostname of the machine currently holding the DHCP lease.
- Active
Mac stringAddress - The MAC address of of the machine currently holding the DHCP lease.
- Active
Server string - Actual dhcp server, which serves this client.
- Agent
Circuit stringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- Agent
Remote stringId - Remote ID, set by DHCP relay agent.
- Blocked bool
- Whether the lease is blocked.
- Class
Id string - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- Dynamic bool
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- Expires
After string - Time until lease expires.
- Host
Name string - The hostname of the device
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Seen string - Radius string
- Shows if this dynamic lease is authenticated by RADIUS or not.
- Src
Mac stringAddress - Source MAC address.
- Status string
- Lease status.
- Active
Address string - The IP address of the machine currently holding the DHCP lease.
- Active
Client stringId - Actual client-id of the client.
- Active
Hostname string - The hostname of the machine currently holding the DHCP lease.
- Active
Mac stringAddress - The MAC address of of the machine currently holding the DHCP lease.
- Active
Server string - Actual dhcp server, which serves this client.
- Agent
Circuit stringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- Agent
Remote stringId - Remote ID, set by DHCP relay agent.
- Blocked bool
- Whether the lease is blocked.
- Class
Id string - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- Dynamic bool
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- Expires
After string - Time until lease expires.
- Host
Name string - The hostname of the device
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Seen string - Radius string
- Shows if this dynamic lease is authenticated by RADIUS or not.
- Src
Mac stringAddress - Source MAC address.
- Status string
- Lease status.
- active
Address String - The IP address of the machine currently holding the DHCP lease.
- active
Client StringId - Actual client-id of the client.
- active
Hostname String - The hostname of the machine currently holding the DHCP lease.
- active
Mac StringAddress - The MAC address of of the machine currently holding the DHCP lease.
- active
Server String - Actual dhcp server, which serves this client.
- agent
Circuit StringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent
Remote StringId - Remote ID, set by DHCP relay agent.
- blocked Boolean
- Whether the lease is blocked.
- class
Id String - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- dynamic Boolean
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires
After String - Time until lease expires.
- host
Name String - The hostname of the device
- id String
- The provider-assigned unique ID for this managed resource.
- last
Seen String - radius String
- Shows if this dynamic lease is authenticated by RADIUS or not.
- src
Mac StringAddress - Source MAC address.
- status String
- Lease status.
- active
Address string - The IP address of the machine currently holding the DHCP lease.
- active
Client stringId - Actual client-id of the client.
- active
Hostname string - The hostname of the machine currently holding the DHCP lease.
- active
Mac stringAddress - The MAC address of of the machine currently holding the DHCP lease.
- active
Server string - Actual dhcp server, which serves this client.
- agent
Circuit stringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent
Remote stringId - Remote ID, set by DHCP relay agent.
- blocked boolean
- Whether the lease is blocked.
- class
Id string - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- dynamic boolean
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires
After string - Time until lease expires.
- host
Name string - The hostname of the device
- id string
- The provider-assigned unique ID for this managed resource.
- last
Seen string - radius string
- Shows if this dynamic lease is authenticated by RADIUS or not.
- src
Mac stringAddress - Source MAC address.
- status string
- Lease status.
- active_
address str - The IP address of the machine currently holding the DHCP lease.
- active_
client_ strid - Actual client-id of the client.
- active_
hostname str - The hostname of the machine currently holding the DHCP lease.
- active_
mac_ straddress - The MAC address of of the machine currently holding the DHCP lease.
- active_
server str - Actual dhcp server, which serves this client.
- agent_
circuit_ strid - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent_
remote_ strid - Remote ID, set by DHCP relay agent.
- blocked bool
- Whether the lease is blocked.
- class_
id str - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- dynamic bool
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires_
after str - Time until lease expires.
- host_
name str - The hostname of the device
- id str
- The provider-assigned unique ID for this managed resource.
- last_
seen str - radius str
- Shows if this dynamic lease is authenticated by RADIUS or not.
- src_
mac_ straddress - Source MAC address.
- status str
- Lease status.
- active
Address String - The IP address of the machine currently holding the DHCP lease.
- active
Client StringId - Actual client-id of the client.
- active
Hostname String - The hostname of the machine currently holding the DHCP lease.
- active
Mac StringAddress - The MAC address of of the machine currently holding the DHCP lease.
- active
Server String - Actual dhcp server, which serves this client.
- agent
Circuit StringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent
Remote StringId - Remote ID, set by DHCP relay agent.
- blocked Boolean
- Whether the lease is blocked.
- class
Id String - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- dynamic Boolean
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires
After String - Time until lease expires.
- host
Name String - The hostname of the device
- id String
- The provider-assigned unique ID for this managed resource.
- last
Seen String - radius String
- Shows if this dynamic lease is authenticated by RADIUS or not.
- src
Mac StringAddress - Source MAC address.
- status String
- Lease status.
Look up Existing IpDhcpServerLease Resource
Get an existing IpDhcpServerLease 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?: IpDhcpServerLeaseState, opts?: CustomResourceOptions): IpDhcpServerLease
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
active_address: Optional[str] = None,
active_client_id: Optional[str] = None,
active_hostname: Optional[str] = None,
active_mac_address: Optional[str] = None,
active_server: Optional[str] = None,
address: Optional[str] = None,
address_lists: Optional[str] = None,
agent_circuit_id: Optional[str] = None,
agent_remote_id: Optional[str] = None,
allow_dual_stack_queue: Optional[bool] = None,
always_broadcast: Optional[bool] = None,
block_access: Optional[bool] = None,
blocked: Optional[bool] = None,
class_id: Optional[str] = None,
client_id: Optional[str] = None,
comment: Optional[str] = None,
dhcp_option: Optional[str] = None,
dhcp_option_set: Optional[str] = None,
disabled: Optional[bool] = None,
dynamic: Optional[bool] = None,
expires_after: Optional[str] = None,
host_name: Optional[str] = None,
insert_queue_before: Optional[str] = None,
ip_dhcp_server_lease_id: Optional[str] = None,
last_seen: Optional[str] = None,
lease_time: Optional[str] = None,
mac_address: Optional[str] = None,
radius: Optional[str] = None,
rate_limit: Optional[str] = None,
server: Optional[str] = None,
src_mac_address: Optional[str] = None,
status: Optional[str] = None,
use_src_mac: Optional[bool] = None) -> IpDhcpServerLease
func GetIpDhcpServerLease(ctx *Context, name string, id IDInput, state *IpDhcpServerLeaseState, opts ...ResourceOption) (*IpDhcpServerLease, error)
public static IpDhcpServerLease Get(string name, Input<string> id, IpDhcpServerLeaseState? state, CustomResourceOptions? opts = null)
public static IpDhcpServerLease get(String name, Output<String> id, IpDhcpServerLeaseState state, CustomResourceOptions options)
resources: _: type: routeros:IpDhcpServerLease 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.
- Active
Address string - The IP address of the machine currently holding the DHCP lease.
- Active
Client stringId - Actual client-id of the client.
- Active
Hostname string - The hostname of the machine currently holding the DHCP lease.
- Active
Mac stringAddress - The MAC address of of the machine currently holding the DHCP lease.
- Active
Server string - Actual dhcp server, which serves this client.
- Address string
- The IP address of the DHCP lease to be created.
- Address
Lists string - Address list to which address will be added if lease is bound.
- Agent
Circuit stringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- Agent
Remote stringId - Remote ID, set by DHCP relay agent.
- Allow
Dual boolStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- Always
Broadcast bool - Send all replies as broadcasts.
- Block
Access bool - Whether to block access for this DHCP client (true|false).
- Blocked bool
- Whether the lease is blocked.
- Class
Id string - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- Client
Id string - If specified, must match DHCP 'client identifier' option of the request.
- Comment string
- Dhcp
Option string - Add additional DHCP options.
- Dhcp
Option stringSet - Add additional set of DHCP options.
- Disabled bool
- Dynamic bool
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- Expires
After string - Time until lease expires.
- Host
Name string - The hostname of the device
- Insert
Queue stringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- Ip
Dhcp stringServer Lease Id - The ID of this resource.
- Last
Seen string - Lease
Time string - Time that the client may use the address. If set to 0s lease will never expire.
- Mac
Address string - The MAC addreess of the DHCP lease to be created.
- Radius string
- Shows if this dynamic lease is authenticated by RADIUS or not.
- Rate
Limit string - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- Server string
- Server name which serves this client.
- Src
Mac stringAddress - Source MAC address.
- Status string
- Lease status.
- Use
Src boolMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- Active
Address string - The IP address of the machine currently holding the DHCP lease.
- Active
Client stringId - Actual client-id of the client.
- Active
Hostname string - The hostname of the machine currently holding the DHCP lease.
- Active
Mac stringAddress - The MAC address of of the machine currently holding the DHCP lease.
- Active
Server string - Actual dhcp server, which serves this client.
- Address string
- The IP address of the DHCP lease to be created.
- Address
Lists string - Address list to which address will be added if lease is bound.
- Agent
Circuit stringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- Agent
Remote stringId - Remote ID, set by DHCP relay agent.
- Allow
Dual boolStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- Always
Broadcast bool - Send all replies as broadcasts.
- Block
Access bool - Whether to block access for this DHCP client (true|false).
- Blocked bool
- Whether the lease is blocked.
- Class
Id string - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- Client
Id string - If specified, must match DHCP 'client identifier' option of the request.
- Comment string
- Dhcp
Option string - Add additional DHCP options.
- Dhcp
Option stringSet - Add additional set of DHCP options.
- Disabled bool
- Dynamic bool
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- Expires
After string - Time until lease expires.
- Host
Name string - The hostname of the device
- Insert
Queue stringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- Ip
Dhcp stringServer Lease Id - The ID of this resource.
- Last
Seen string - Lease
Time string - Time that the client may use the address. If set to 0s lease will never expire.
- Mac
Address string - The MAC addreess of the DHCP lease to be created.
- Radius string
- Shows if this dynamic lease is authenticated by RADIUS or not.
- Rate
Limit string - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- Server string
- Server name which serves this client.
- Src
Mac stringAddress - Source MAC address.
- Status string
- Lease status.
- Use
Src boolMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- active
Address String - The IP address of the machine currently holding the DHCP lease.
- active
Client StringId - Actual client-id of the client.
- active
Hostname String - The hostname of the machine currently holding the DHCP lease.
- active
Mac StringAddress - The MAC address of of the machine currently holding the DHCP lease.
- active
Server String - Actual dhcp server, which serves this client.
- address String
- The IP address of the DHCP lease to be created.
- address
Lists String - Address list to which address will be added if lease is bound.
- agent
Circuit StringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent
Remote StringId - Remote ID, set by DHCP relay agent.
- allow
Dual BooleanStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always
Broadcast Boolean - Send all replies as broadcasts.
- block
Access Boolean - Whether to block access for this DHCP client (true|false).
- blocked Boolean
- Whether the lease is blocked.
- class
Id String - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- client
Id String - If specified, must match DHCP 'client identifier' option of the request.
- comment String
- dhcp
Option String - Add additional DHCP options.
- dhcp
Option StringSet - Add additional set of DHCP options.
- disabled Boolean
- dynamic Boolean
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires
After String - Time until lease expires.
- host
Name String - The hostname of the device
- insert
Queue StringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip
Dhcp StringServer Lease Id - The ID of this resource.
- last
Seen String - lease
Time String - Time that the client may use the address. If set to 0s lease will never expire.
- mac
Address String - The MAC addreess of the DHCP lease to be created.
- radius String
- Shows if this dynamic lease is authenticated by RADIUS or not.
- rate
Limit String - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server String
- Server name which serves this client.
- src
Mac StringAddress - Source MAC address.
- status String
- Lease status.
- use
Src BooleanMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- active
Address string - The IP address of the machine currently holding the DHCP lease.
- active
Client stringId - Actual client-id of the client.
- active
Hostname string - The hostname of the machine currently holding the DHCP lease.
- active
Mac stringAddress - The MAC address of of the machine currently holding the DHCP lease.
- active
Server string - Actual dhcp server, which serves this client.
- address string
- The IP address of the DHCP lease to be created.
- address
Lists string - Address list to which address will be added if lease is bound.
- agent
Circuit stringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent
Remote stringId - Remote ID, set by DHCP relay agent.
- allow
Dual booleanStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always
Broadcast boolean - Send all replies as broadcasts.
- block
Access boolean - Whether to block access for this DHCP client (true|false).
- blocked boolean
- Whether the lease is blocked.
- class
Id string - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- client
Id string - If specified, must match DHCP 'client identifier' option of the request.
- comment string
- dhcp
Option string - Add additional DHCP options.
- dhcp
Option stringSet - Add additional set of DHCP options.
- disabled boolean
- dynamic boolean
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires
After string - Time until lease expires.
- host
Name string - The hostname of the device
- insert
Queue stringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip
Dhcp stringServer Lease Id - The ID of this resource.
- last
Seen string - lease
Time string - Time that the client may use the address. If set to 0s lease will never expire.
- mac
Address string - The MAC addreess of the DHCP lease to be created.
- radius string
- Shows if this dynamic lease is authenticated by RADIUS or not.
- rate
Limit string - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server string
- Server name which serves this client.
- src
Mac stringAddress - Source MAC address.
- status string
- Lease status.
- use
Src booleanMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- active_
address str - The IP address of the machine currently holding the DHCP lease.
- active_
client_ strid - Actual client-id of the client.
- active_
hostname str - The hostname of the machine currently holding the DHCP lease.
- active_
mac_ straddress - The MAC address of of the machine currently holding the DHCP lease.
- active_
server str - Actual dhcp server, which serves this client.
- address str
- The IP address of the DHCP lease to be created.
- address_
lists str - Address list to which address will be added if lease is bound.
- agent_
circuit_ strid - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent_
remote_ strid - Remote ID, set by DHCP relay agent.
- allow_
dual_ boolstack_ queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always_
broadcast bool - Send all replies as broadcasts.
- block_
access bool - Whether to block access for this DHCP client (true|false).
- blocked bool
- Whether the lease is blocked.
- class_
id str - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- client_
id str - If specified, must match DHCP 'client identifier' option of the request.
- comment str
- dhcp_
option str - Add additional DHCP options.
- dhcp_
option_ strset - Add additional set of DHCP options.
- disabled bool
- dynamic bool
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires_
after str - Time until lease expires.
- host_
name str - The hostname of the device
- insert_
queue_ strbefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip_
dhcp_ strserver_ lease_ id - The ID of this resource.
- last_
seen str - lease_
time str - Time that the client may use the address. If set to 0s lease will never expire.
- mac_
address str - The MAC addreess of the DHCP lease to be created.
- radius str
- Shows if this dynamic lease is authenticated by RADIUS or not.
- rate_
limit str - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server str
- Server name which serves this client.
- src_
mac_ straddress - Source MAC address.
- status str
- Lease status.
- use_
src_ boolmac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
- ___
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.
- active
Address String - The IP address of the machine currently holding the DHCP lease.
- active
Client StringId - Actual client-id of the client.
- active
Hostname String - The hostname of the machine currently holding the DHCP lease.
- active
Mac StringAddress - The MAC address of of the machine currently holding the DHCP lease.
- active
Server String - Actual dhcp server, which serves this client.
- address String
- The IP address of the DHCP lease to be created.
- address
Lists String - Address list to which address will be added if lease is bound.
- agent
Circuit StringId - Circuit ID of DHCP relay agent. If each character should be valid ASCII text symbol or else this value is displayed as hex dump.
- agent
Remote StringId - Remote ID, set by DHCP relay agent.
- allow
Dual BooleanStack Queue - Creates a single simple queue entry for both IPv4 and IPv6 addresses, uses the MAC address and DUID for identification.
- always
Broadcast Boolean - Send all replies as broadcasts.
- block
Access Boolean - Whether to block access for this DHCP client (true|false).
- blocked Boolean
- Whether the lease is blocked.
- class
Id String - Class ID of the client. This option is available in RouterOS starting from version 7.16.
- client
Id String - If specified, must match DHCP 'client identifier' option of the request.
- comment String
- dhcp
Option String - Add additional DHCP options.
- dhcp
Option StringSet - Add additional set of DHCP options.
- disabled Boolean
- dynamic Boolean
- Whether the dhcp lease is static or dynamic. Dynamic leases are not guaranteed to continue to be assigned to that specific device.
- expires
After String - Time until lease expires.
- host
Name String - The hostname of the device
- insert
Queue StringBefore - Specify where to place dynamic simple queue entries for static DCHP leases with rate-limit parameter set.
- ip
Dhcp StringServer Lease Id - The ID of this resource.
- last
Seen String - lease
Time String - Time that the client may use the address. If set to 0s lease will never expire.
- mac
Address String - The MAC addreess of the DHCP lease to be created.
- radius String
- Shows if this dynamic lease is authenticated by RADIUS or not.
- rate
Limit String - Adds a dynamic simple queue to limit IP's bandwidth to a specified rate. Requires the lease to be static.
- server String
- Server name which serves this client.
- src
Mac StringAddress - Source MAC address.
- status String
- Lease status.
- use
Src BooleanMac - When this option is set server uses source MAC address instead of received CHADDR to assign address.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/ip/dhcp-server/lease get [print show-ids]]
$ pulumi import routeros:index/ipDhcpServerLease:IpDhcpServerLease dhcp_lease "*0"
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.