- Plesk Onyx for Linux
How to find IP addresses that are not used by any domain using command-line interface or API?
Connect to the server via SSH
- Execute the following command:
# plesk db "SELECT IP_Address FROM IP_Addresses WHERE IP_Address NOT IN (SELECT ip.IP_Address FROM IP_Addresses ip join IpAddressesCollections ipc on ip.id=ipc.IpAddressId join DomainServices ds on ipc.ipCollectionId=ds.ipCollectionId where ds.type='web')"
As for API request, currently there is no such functionality in Plesk. You may share your suggestion here: https://plesk.uservoice.com/forums/184549-feature-suggestions top ranked suggestions will be implemented in the future Plesk versions.