Art-of-WiFi / UniFi-API-client

A PHP API client class to interact with Ubiquiti's UniFi Controller API
MIT License
1.15k stars 226 forks source link

DHCP Reservations #71

Closed jeedee5 closed 4 years ago

jeedee5 commented 4 years ago

Hi,

Is it possible to create a client through the API with a fixed ip address? We do automated deployments of our servers, with DHCP reservations. I would like to automate the DHCP reservation also. Any idea if this is possible?

In the controller GUI, it would be "Clients - Add Client", and fill in all the details...

malle-pietje commented 4 years ago

Yes, with the current built-in methods/functions you can do it as follows:

This does require a USG (PRO), UXG PRO, or UDM (PRO).