• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Get hosting IP address in psa database

Samuelcr

New Pleskian
Hello,

I guess a change in psa has been made in this version.

In previous versions i could get IP address with hosting.ip_address_id pointing to IP_Addresses table.

Now this reference is always "0". Where can i find that relationship now?

Thank!
 
I answer to mysqelf.

Form some mysterious reason that relationship is now in dom_param.

dom_id points to hosting.dom_id
look for a param = 'ip_addr_id'
Its value points to IP_Addresses.

So, for example...

SELECT domains.name, IP_Addresses.ip_address
FROM domains
INNER JOIN hosting ON domains.id = hosting.dom_id
INNER JOIN dom_param ON hosting.dom_id = dom_param.dom_id AND dom_param.param = 'ip_addr_id'
INNER JOIN IP_Addresses ON dom_param.val = IP_Addresses.id

A pain in the *** to obtain consistently the IP through versions... tough...
 
Back
Top