cPanel API 2 Modules - Postgres
Warning:
The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
Introduction
The Postgres
module manages PostgreSQL® databases and users.
Important:
When you enable a non-Standard Node server profile, the system disables API calls associated with that profile's disabled roles.
Available functions
-
cPanel API 2 Functions -
Postgres::listdbs
— This function lists a cPanel account's PostgreSQL® databases. -
cPanel API 2 Functions -
Postgres::listusers
— This function lists a cPanel account's PostgreSQL® database users. -
cPanel API 2 Functions -
Postgres::listusersindb
— This function lists the users with access to a PostgreSQL® database. -
cPanel API 2 Functions -
Postgres::userexists
— This function checks whether a PostgreSQL® database user exists.