revokePermission
public RevokePermissionResponse revokePermission(RevokePermissionRequest request) throws GPUdbException Revoke user or role the specified permission on the specified object.Parameters:request-Requestobject containing the parameters for the operation.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.revokePermission
public RevokePermissionResponse revokePermission(String principal, String object, String objectType, String permission, Map<String, String> options) throws GPUdbException Revoke user or role the specified permission on the specified object.Parameters:principal- Name of the user or role for which the permission is being revoked. Must be an existing user or role. The default value is ”.object- Name of object permission is being revoked from. It is recommended to use a fully-qualified name when possible.objectType- The type of object being revoked. Supported values:CATALOG: CatalogCONTEXT: ContextCREDENTIAL: CredentialDATASINK: Data SinkDATASOURCE: Data SourceDIRECTORY: KIFS File DirectoryGRAPH: A Graph objectPROC: UDF ProcedureSCHEMA: SchemaSQL_PROC: SQL ProcedureSYSTEM: System-level accessTABLE: Database TableTABLE_MONITOR: Table monitor
permission- Permission being revoked. Supported values:ADMIN: Full read/write and administrative access on the object.CONNECT: Connect access on the given data source or data sink.CREATE: Ability to create new objects of this type.DELETE: Delete rows from tables.EXECUTE: Ability to Execute the Procedure object.INSERT: Insert access to tables.MONITOR: Monitor logs and statistics.READ: Ability to read, list and use the object.SEND_ALERT: Ability to send system alerts.UPDATE: Update access to the table.USER_ADMIN: Access to administer users and roles that do not have system_admin permission.WRITE: Access to write, change and delete objects.
options- Optional parameters.COLUMNS: Revoke table security from these columns, comma-separated. The default value is ”.
Map.Returns:Responseobject containing the results of the operation.Throws:GPUdbException- if an error occurs during the operation.