Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Sample URLS under DHCP server control

...

add

URL/api/v1/api.php?target=DHCPServer&action=add
DescriptionAdds a new DHCP Server.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Add Successful.","data":123}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
dataINTThe ID of the new DHCP Server.
Required Parameters
NameTypeExampleDescription
DHCPServerSTRINGIP/domainThe new server address.
DHCPPortSTRING43The new port.
DHCPUsernameSTRINGkjenningsThe new username.
DHCPPasswordSTRING********The new password.
DHCPTypeSTRINGISCThe new server type.
Optional Parameters
NameTypeExampleDescription
DHCPConfigPathSTRING/where/is/it/The new config path.
DHCPServerStopSTRING/path/to/server/stopThe new server stop command.
DHCPServerStartSTRING/path/to/server/startThe new server start command.
DHCPDefaultLeaseINT64000The new default lease.
DHCPMaxLeaseINT128000The new max lease.
DHCPAuthoritativeBOOL1The new Authoritative status.
DHCPLogFacilitySTRINGlocal7The new logging facility.
DHCPDomainNameSTRINGdomain.name.serverThe new domain name servers.
DHCPNameServersSTRINGns.domain.comThe new name servers.
DHCPUseTextBOOL1The new use text file setting.
DHCPConfigTextSTRINGText FileThe new use text file content.
Example URL

/api/v1/api.php?target=DHCPServer&action=addDHCPServer=IP/domain&DHCPPort=43&DHCPUsername=kjennings&DHCPPassword=********&DHCPType=ISC&DHCPConfigText=configtexthere

 

 

delete

URL/api/v1/api.php?target=DHCPServer&action=delete
DescriptionPerforms a search over the DHCP Servers dataset and deletes all found matches.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"DHCPServer(s) Deleted."}
ERROR:{"success":0, "message":"error message"}
Optional Parameters
NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
generalFlagBOOL1When 1, searches over the provided paramenters using OR. If 0 or omitted, uses AND.
NameTypeExampleDescription
DHCPIdINT123The DHCP Server ID to search for.
DHCPServerSTRINGIP/domainThe Server Name to search for.
DHCPPortSTRING43The Port to search for.
DHCPUsernameSTRINGkjenningsThe Username to search for.
DHCPTypeSTRINGMSDHCPThe DHCP Server Type to search for.
DHCPConfigPathSTRING/where/is/it/The Config Path to search for.
DHCPServerStopSTRING/path/to/server/stopSearch by server stop command.
DHCPServerStartSTRING/path/to/server/startSearch by server start command.
DHCPDefaultLeaseINT64000Search by default lease.
DHCPMaxLeaseINT128000Search by max lease.
DHCPAuthoritativeBOOL1Search by whether the server is authoritative.
DHCPLogFacilitySTRINGlocal7Search by logging facility.
DHCPDomainNameSTRINGdomain.name.serverSearch by domain name servers.
DHCPNameServersSTRINGns.domain.comSearch by name servers.
DHCPUseTextBOOL1Search by using text configs or not.
DHCPConfigTextSTRINGText FileSearch by text file contents.
Example URL/api/v1/api.php?target=DHCPServer&action=delete&DHCPNameServers=ns.domain.com&DHCPType=MSDHCP

testConnection

URL/api/v1/api.php?target=DHCPServer&action=testConnection
DescriptionPerforms a search over the DHCP Servers dataset and tests the login/password combo for each one returned. Returns a status array with three elements: a 1 or 0 for success/failure, the server in question, and the failure/success message.
Returns

Examples:

SUCCESSFUL: {"success":1,"message":"Pushes Attempted.","data":[[1,"foo.fun.com", "Successfully authenticated on DHCP Server 'foo.fun.com'."],[0,"foo.fun .com","Could not authenticate on server 'foo.fun.com'. Connection refused."] ,[0,"28.39.106.129","Could not connect to server '28.39.106.129'. Connection refused."]]}
ERROR:{"success":0, "message":"error message"}
Optional Parameters
NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
generalFlagBOOL1When 1, searches over the provided paramenters using OR. If 0 or omitted, uses AND.
NameTypeExampleDescription
DHCPIdINT123The DHCP Server ID to search for.
DHCPServerSTRINGIP/domainThe Server Name to search for.
DHCPPortSTRING43The Port to search for.
DHCPUsernameSTRINGkjenningsThe Username to search for.
DHCPTypeSTRINGMSDHCPThe DHCP Server Type to search for.
DHCPConfigPathSTRING/where/is/it/The Config Path to search for.
DHCPServerStopSTRING/path/to/server/stopSearch by server stop command.
DHCPServerStartSTRING/path/to/server/startSearch by server start command.
DHCPDefaultLeaseINT64000Search by default lease.
DHCPMaxLeaseINT128000Search by max lease.
DHCPAuthoritativeBOOL1Search by whether the server is authoritative.
DHCPLogFacilitySTRINGlocal7Search by logging facility.
DHCPDomainNameSTRINGdomain.name.serverSearch by domain name servers.
DHCPNameServersSTRINGns.domain.comSearch by name servers.
DHCPUseTextBOOL1Search by using text configs or not.
DHCPConfigTextSTRINGText FileSearch by text file contents.
Example URL/api/v1/api.php?target=DHCPServer&action=testConnection&DHCPId=123

push

URL/api/v1/api.php?target=DHCPServer&action=push
DescriptionPerforms a search over the DHCP Servers dataset and pushes the current config file before restarting the servers. Returns a status array with three elements: a 1 or 0 for success/failure, the server in question, and the failure/success message. A response code of '2' indicates that the push went smoothly, but the configuration file itself contains errors. In this case the error return will be the actual error output from the DHCP server.
Returns

Examples:

SUCCESSFUL: {"success":1,"message":"Pushes Attempted.","data":[[1,"trace.bind.com", "Successfully pushed DHCP Config to server 'trace.bind.com'. Server Restarted."] ,[0,"trace.bind.com","Could not authenticate on server 'trace.bind.com'. Connection refused. "],[0,"208.39.106.169","Could not connect to server '208.39.106.169'. Connection refused."]]}
ERROR:{"success":0, "message":"error message"}
Optional Parameters
NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
generalFlagBOOL1When 1, searches over the provided paramenters using OR. If 0 or omitted, uses AND.
NameTypeExampleDescription
DHCPIdINT123The DHCP Server ID to search for.
DHCPServerSTRINGIP/domainThe Server Name to search for.
DHCPPortSTRING43The Port to search for.
DHCPUsernameSTRINGkjenningsThe Username to search for.
DHCPTypeSTRINGMSDHCPThe DHCP Server Type to search for.
DHCPConfigPathSTRING/where/is/it/The Config Path to search for.
DHCPServerStopSTRING/path/to/server/stopSearch by server stop command.
DHCPServerStartSTRING/path/to/server/startSearch by server start command.
DHCPDefaultLeaseINT64000Search by default lease.
DHCPMaxLeaseINT128000Search by max lease.
DHCPAuthoritativeBOOL1Search by whether the server is authoritative.
DHCPLogFacilitySTRINGlocal7Search by logging facility.
DHCPDomainNameSTRINGdomain.name.serverSearch by domain name servers.
DHCPNameServersSTRINGns.domain.comSearch by name servers.
DHCPUseTextBOOL1Search by using text configs or not.
DHCPConfigTextSTRINGText FileSearch by text file contents.
Example URL/api/v1/api.php?target=DHCPServer&action=push&DHCPServer=IP/domain

 

DHCP Entry Control

get

URL/api/v1/api.php?target=DHCPEntry&action=get
DescriptionAccepts search criteria to retrieve a list of all matching DHCP Entries along with their associated Options.
Returns

Examples:

SUCCESSFUL: {"EntryId":"27","EntryParent":null,"EntryServerId":"1","EntryName":"mike","EntryType": "host","EntryNetmask":"255.255.255.0","EntryIPCount":"1","EntryPercent":"1","Options": [{"OptionId":"46","OptionSubnetId":"27","OptionKey":"hardware ethernet","OptionValue": "11:23:45:67:89:ab"},{"OptionId":"47","OptionSubnetId":"27","OptionKey":"fixed-address", "OptionValue":"10.20.30.158"}]}]}
ERROR:{"success":0, "message":"error message"}


Data Detail:

NameTypeDescription
EntryIdINTThe ID of the DHCP Entry.
EntryParentINTThe parent Entry of this one
EntryServerIdINTThe DHCP Server to which this entry belongs.
EntryTypeSTRINGThe Entry type. Either 'host' or 'subnet'.
EntryNameSTRINGThe name of this entry. In the case of a Host, it is the hostname. In the case of a subnet, it is the subnet address.
EntryNetmaskSTRINGThe subnet mask. Empty on type 'host'
EntryIPCountINTThe number of IPs in this Entry.
EntryPercentINTPercentage of this Entry currently assigned.
OptionsSTRINGIf present, this array contains objects enumerating each option and its type.
OptionIdSTRINGThe ID of this Option
OptionSubnetIdINTThe ID of the parent. Identical to EntryId.
OptionKeySTRINGThe key portion of the option key-value pairing.
OptionValueSTRINGThe value portion of the option key-value pairing.
Optional Parameters
NameTypeExampleDescription
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
generalFlagBOOL1When 1, searches over the provided parameters using OR. If 0 or omitted, uses AND.
NameTypeExampleDescription
EntryIdINT123The ID of the DHCP Entry to search for.
EntryParentINT123The parent Entry to search for.
EntryServerIdINT123The DHCP Server to search for.
EntryTypeSTRINGsubnetThe Entry type to search for.
EntryNameSTRING30.20.10.1The name to search for.
EntryNetmaskSTRING255.255.255.0The subnet mask to search for.
OptionIdSTRING123The Option ID to search for.
OptionKeySTRINGrangeThe key portion of the option key-value pairing to search for.
OptionValueSTRING30.20.10.10 30.20.10.40The value portion of the option key-value pairing to search for.

...