This function revokes all privileges for a PostgreSQL® database from a database user.
Important:
When you disable the PostgreSQL role, the system disables this function.
database required | string The database's name. Note If database prefixing is enabled, this value must include the database prefix for the account. Example: |
user required | string The database user's name. Note If database prefixing is enabled, this value must include the database prefix for the account. Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --output=jsonpretty \ --user=username \ Postgresql \ revoke_all_privileges \ user='example_dbuser' \ database='example_database'
{- "apiversion": 3,
- "func": "revoke_all_privileges",
- "module": "Postgresql",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}