This function changes a PostgreSQL® database's name.
Warning:
The system requires more time to rename larger and more complex databases.
Important:
When you disable the PostgreSQL role, the system disables this function.
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ rename_postgresql_database \ oldname='database' \ newname='database2'
{- "metadata": {
- "command": "rename_postgresql_database",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}