Skip to main content
  • createRole

    public CreateRoleResponse createRole(CreateRoleRequest request) throws GPUdbException
    Creates a new role.

    Note: This method should be used for on-premise deployments only.

    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.
  • createRole

    public CreateRoleResponse createRole(String name, Map<String,String> options) throws GPUdbException
    Creates a new role.

    Note: This method should be used for on-premise deployments only.

    Parameters:
    name - Name of the role to be created. Must contain only lowercase letters, digits, and underscores, and cannot begin with a digit. Must not be the same name as an existing user or role.
    options - Optional parameters.
    • RESOURCE_GROUP: Name of an existing resource group to associate with this user.
    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.