Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added example URL

...

update

URL/api/v1/api.php?target=DHCPServer&action=update
DescriptionFirst performs a search based on the submitted DHCP Server criteria, then performs an Update across those entries based on new values.
Returns

Examples:

SUCCESSFUL:{"success":1,"message":"Update Successful."}
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.
NameTypeExampleDescription
SearchIdINT123The DHCP Server ID to search for.
SearchServerSTRINGIP/domainThe Server Name to search for.
SearchPortSTRING43The Port to search for.
SearchUsernameSTRINGkjenningsThe Username to search for.
SearchTypeSTRINGMSDHCPThe DHCP Server Type to search for.
SearchConfigPathSTRING/where/is/it/The Config Path to search for.
SearchServerStopSTRING/path/to/server/stopSearch by server stop command.
SearchServerStartSTRING/path/to/server/startSearch by server start command.
SearchDefaultLeaseINT64000Search by default lease.
SearchMaxLeaseINT128000Search by max lease.
SearchAuthoritativeBOOL1Search by whether the server is authoritative.
SearchLogFacilitySTRINGlocal7Search by logging facility.
SearchDomainNameSTRINGdomain.name.serverSearch by domain name servers.
SearchNameServersSTRINGns.domain.comSearch by name servers.
SearchUseTextBOOL1Search by using text configs or not.
SearchConfigTextSTRINGText FileSearch by text file contents.
NameTypeExampleDescription
UpdateServerSTRINGIP/domainThe new server address.
UpdatePortSTRING43The new port.
UpdateUsernameSTRINGkjenningsThe new username.
UpdatePasswordSTRING********The new password.
UpdateTypeSTRINGISCThe new server type.
UpdateConfigPathSTRING/where/is/it/The new config path.
UpdateServerStopSTRING/path/to/server/stopThe new server stop command.
UpdateServerStartSTRING/path/to/server/startThe new server start command.
UpdateDefaultLeaseINT64000The new default lease.
UpdateMaxLeaseINT128000The new max lease.
UpdateAuthoritativeBOOL1The new Authoritative status.
UpdateLogFacilitySTRINGlocal7The new logging facility.
UpdateDomainNameSTRINGdomain.name.serverThe new domain name servers.
UpdateNameServersSTRINGns.domain.comThe new name servers.
UpdateUseTextBOOL1The new use text file setting.
UpdateConfigTextSTRINGText FileThe new use text file content.
Example URL

/api/v1/api.php?target=DHCPServer&action=get&likeFlag=1&DHCPUsername=kjenn

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.

...