@Generated public class RecipientsAPI extends Object
- For recipients with access to a Databricks workspace that is enabled for Unity Catalog, you can create a recipient object along with a unique sharing identifier you get from the recipient. The sharing identifier is the key identifier that enables the secure connection. This sharing mode is called **Databricks-to-Databricks sharing**.
- For recipients without access to a Databricks workspace that is enabled for Unity Catalog, when you create a recipient object, Databricks generates an activation link you can send to the recipient. The recipient follows the activation link to download the credential file, and then uses the credential file to establish a secure connection to receive the shared data. This sharing mode is called **open sharing**.
| Constructor and Description |
|---|
RecipientsAPI(ApiClient apiClient)
Regular-use constructor
|
RecipientsAPI(RecipientsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
RecipientInfo |
create(CreateRecipient request)
Creates a new recipient with the delta sharing authentication type in the metastore.
|
void |
delete(DeleteRecipientRequest request)
Deletes the specified recipient from the metastore.
|
void |
delete(String name) |
RecipientInfo |
get(GetRecipientRequest request)
Gets a share recipient from the metastore.
|
RecipientInfo |
get(String name) |
RecipientsService |
impl() |
Iterable<RecipientInfo> |
list(ListRecipientsRequest request)
Gets an array of all share recipients within the current metastore where:
|
RecipientInfo |
rotateToken(RotateRecipientToken request)
Refreshes the specified recipient's delta sharing authentication token with the provided token
info.
|
GetRecipientSharePermissionsResponse |
sharePermissions(SharePermissionsRequest request)
Gets the share permissions for the specified Recipient.
|
GetRecipientSharePermissionsResponse |
sharePermissions(String name) |
RecipientInfo |
update(UpdateRecipient request)
Updates an existing recipient in the metastore.
|
public RecipientsAPI(ApiClient apiClient)
public RecipientsAPI(RecipientsService mock)
public RecipientInfo create(CreateRecipient request)
public void delete(String name)
public void delete(DeleteRecipientRequest request)
public RecipientInfo get(String name)
public RecipientInfo get(GetRecipientRequest request)
public Iterable<RecipientInfo> list(ListRecipientsRequest request)
* the caller is a metastore admin, or * the caller is the owner. There is no guarantee of a specific ordering of the elements in the array.
public RecipientInfo rotateToken(RotateRecipientToken request)
public GetRecipientSharePermissionsResponse sharePermissions(String name)
public GetRecipientSharePermissionsResponse sharePermissions(SharePermissionsRequest request)
public RecipientInfo update(UpdateRecipient request)
public RecipientsService impl()
Copyright © 2026. All rights reserved.