Description
This function renames a PostgreSQL® database.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
oldname |
string |
Required The database's current name. |
A valid string. Note: If database prefixing is enabled, this parameter must include the database prefix for the account. |
database |
newname |
string |
Required The database's new name. |
A valid string. Note: If database prefixing is enabled, this parameter must include the database prefix for the account. |
database2 |
Returns
This function only returns metadata.