• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue GetDatabases Rest API Fatal Error

safemoon

Basic Pleskian
Server operating system version
Ubuntu 24.04.2 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.68 Update #2 Web Host Edition
Hi All,

Recently the API call to the /databases endpoint is not working properly without a "domain" parameter.
It used to work without any issues before.

Having the ability to find if a database name already exists in the server is very beneficial as it allows you to create databases/domains etc remotely without conflicts.
Is there any other way to check if a string of database name already exists in the system?

URL: <serverurl>:8443/api/v2/databases
Response:
JSON:
{
    "code": 0,
    "message": "PleskX\\Api\\Operator\\Database::getAll(): Argument #1 ($field) must be of type string, null given, called in /opt/psa/admin/plib/modules/rest-api/v2/library/SDK/pm_Database.php on line 47"
}

From my understanding it's a Fatal error on Plesk's API Files as the empty/non existent "domain" parameter is not handled properly.
@IgorG
 
Also the endpoint /dbusers does NOT work without a string query "dbId"
It used to work fine previously. It seems like a lot has changed in the API in the last few weeks, particularly in the databases from what I can see.

However, this is not good because now we have to make a lot more API calls and nested for loops just to check if a database user or a database exists before creating a new one.
 
Back
Top