Skip to main content
  • alterRole

    public AlterRoleResponse alterRole(AlterRoleRequest request) throws GPUdbException
    Alters a Role.
    Parameters:
    request - Request object containing the parameters for the operation.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.
  • alterRole

    public AlterRoleResponse alterRole(String name, String action, String value, Map<String,String> options) throws GPUdbException
    Alters a Role.
    Parameters:
    name - Name of the role to be altered. Must be an existing role.
    action - Modification operation to be applied to the role. Supported values:
    • SET_COMMENT: Sets the comment for an internal role.
    • SET_RESOURCE_GROUP: Sets the resource group for an internal role. The resource group must exist, otherwise, an empty string assigns the role to the default resource group.
    value - The value of the modification, depending on action.
    options - Optional parameters. The default value is an empty Map.
    Returns:
    Response object containing the results of the operation.
    Throws:
    GPUdbException - if an error occurs during the operation.