...
push a DHCP config | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description | Builds a DHCP configuration from the attributes assigned to a dhcp_module and all of the linked dhcp_pools. Pushes that config to the configured DHCP server, tests it against the config parsing function, then restarts the server with the new configuration. | ||||||||||
URL | /api/v1/api.php?target=dhcp&action=push&id=1292 | ||||||||||
Returns | Examples:
Data Detail
|
DHCP search | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | Searches DHCP information by name, mac, or IP. | ||||||||||||||||||||||||||||||||||||||||
URL | /api/v1/api.php?target=dhcp&action=search&searchType=name&searchValue=Blah /api/v1/api.php?target=dhcp&action=search&searchType=mac&searchValue=22: /api/v1/api.php?target=dhcp&action=search&searchType=ip&searchValue=13.0.0.255 | ||||||||||||||||||||||||||||||||||||||||
Returns | Examples:
Return Detail
Attributes
| ||||||||||||||||||||||||||||||||||||||||
Required Parameters |
| ||||||||||||||||||||||||||||||||||||||||
Optional Parameters |
|
Data Attributes
_dhcp_attributes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description | The _dhcp_attributes data attribute holds the specific settings used to generate a DHCP configuration file, place it on a server via SCP, and restart that server via a SSH session. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example: | {"type":"ISC", "notes":"notes here", "username":"username", "port":"22", "config_test":"/etc/init.d/dhcpd configtest", "server_stop":"/etc/init.d/dhcpd stop", "server_start":"/etc/init.d/dhcpd start", "config_path":"/tmp/dhcpd.conf", "option_routers":"", "option_domain_name_servers":"", "option_domain_name":"", "authoritative":"1", "default_lease_time":"600", "max_lease_time":"7200", "local_port":"67", "log_facility":"local7", "password":"", "server_ip":"10.0.0.0", "freeLines":0} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Data Description
|
...