Description

This function lists the cPanel account's PostgreSQL® databases.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$list_database = $cpanel->api1('Postgres','listdbsopt'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $list_database = $cpliveapi->api1('Postgres','listdbsopt'); # Call the function.

<cpanel Module="Postgres::listdbsopt()">
cpapi1 --user=username Postgres listdbsopt

<option value="cpanelusername_dbname">cpanelusername_dbname</option>
<option value="cpanelusername_dbname2">cpanelusername_dbname2</option>

Parameters

This function does not accept parameters.

Returns

This function returns a list of the account's databases.