@Generated public class EncryptionKeysAPI extends Object
* Managed services: A key configuration can be used to encrypt a workspace's notebook and secret data in the control plane, as well as Databricks SQL queries and query history. * Storage: A key configuration can be used to encrypt a workspace's DBFS and EBS data in the data plane.
In both of these cases, the key configuration's ID is used when creating a new workspace. This Preview feature is available if your account is on the E2 version of the platform. Updating a running workspace with workspace storage encryption requires that the workspace is on the E2 version of the platform. If you have an older workspace, it might not be on the E2 version of the platform. If you are not sure, contact your Databricks representative.
| Constructor and Description |
|---|
EncryptionKeysAPI(ApiClient apiClient)
Regular-use constructor
|
EncryptionKeysAPI(EncryptionKeysService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
CustomerManagedKey |
create(CreateCustomerManagedKeyRequest request)
Creates a customer-managed key configuration object for an account, specified by ID.
|
CustomerManagedKey |
delete(DeleteEncryptionKeyRequest request)
Deletes a customer-managed key configuration object for an account.
|
CustomerManagedKey |
delete(String customerManagedKeyId) |
CustomerManagedKey |
get(GetEncryptionKeyRequest request)
Gets a customer-managed key configuration object for an account, specified by ID.
|
CustomerManagedKey |
get(String customerManagedKeyId) |
EncryptionKeysService |
impl() |
Iterable<CustomerManagedKey> |
list()
Lists Databricks customer-managed key configurations for an account.
|
public EncryptionKeysAPI(ApiClient apiClient)
public EncryptionKeysAPI(EncryptionKeysService mock)
public CustomerManagedKey create(CreateCustomerManagedKeyRequest request)
**Important**: Customer-managed keys are supported only for some deployment types, subscription types, and AWS regions that currently support creation of Databricks workspaces.
This operation is available only if your account is on the E2 version of the platform or on a select custom plan that allows multiple workspaces per account.
public CustomerManagedKey delete(String customerManagedKeyId)
public CustomerManagedKey delete(DeleteEncryptionKeyRequest request)
public CustomerManagedKey get(String customerManagedKeyId)
public CustomerManagedKey get(GetEncryptionKeyRequest request)
**Important**: Customer-managed keys are supported only for some deployment types, subscription types, and AWS regions.
This operation is available only if your account is on the E2 version of the platform.",
public Iterable<CustomerManagedKey> list()
public EncryptionKeysService impl()
Copyright © 2026. All rights reserved.