• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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