This function changes a PostgreSQL® database user's name.
Important:
When you disable the PostgreSQL role, the system disables this function.
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ rename_postgresql_user \ oldname='username' \ newname='username2' \ password='12345luggage'
{- "metadata": {
- "command": "rename_postgresql_user",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}