Skip to main content
revoke_permission_datasource(name=None, permission=None, datasource_name=None, options=)[source]

[DEPRECATED–please use GPUdb.revoke_permission() instead] Revokes a data source permission from a user or role.

Parameters

name (str) –

Name of the user or role from which the permission will be revoked. Must be an existing user or role.

permission (str) –

Permission to revoke from the user or role. Allowed values are:

  • admin – Admin access on the given data source.

  • connect – Connect access on the given data source.

datasource_name (str) –

Name of the data source on which the permission will be revoked. Must be an existing data source, or an empty string to revoke permission from all data sources.

options (dict of str to str) –

Optional parameters. The default value is an empty dict ( ).

Returns

A dict with the following entries–

name (str) –

Value of input parameter name.

permission (str) –

Value of input parameter permission.

datasource_name (str) –

Value of input parameter datasource_name.

info (dict of str to str) –

Additional information.