Skip to main content

storage

Creates, updates, deletes, gets or lists a storage resource.

Overview

Namestorage
TypeResource
Iddatabricks_account.provisioning.storage

Fields

The following fields are returned by SELECT queries:

The storage configuration was successfully returned.

NameDatatypeDescription
account_idstring
storage_configuration_idstring
storage_configuration_namestring
creation_timeinteger
root_bucket_infoobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a Databricks storage configuration for an account, both specified by ID.
listselectGets a list of all Databricks storage configurations for your account, specified by ID.
createinsertCreates new storage configuration for an account, specified by ID. Uploads a storage configuration object that represents the root AWS S3 bucket in your account. Databricks stores related workspace assets including DBFS, cluster logs, and job results. For the AWS S3 bucket, you need to configure the required bucket policy.
deletedeleteDeletes a Databricks storage configuration. You cannot delete a storage configuration that is associated with any workspace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription

SELECT examples

Gets a Databricks storage configuration for an account, both specified by ID.

SELECT
account_id,
storage_configuration_id,
storage_configuration_name,
creation_time,
root_bucket_info
FROM databricks_account.provisioning.storage;

INSERT examples

Creates new storage configuration for an account, specified by ID. Uploads a storage configuration object that represents the root AWS S3 bucket in your account. Databricks stores related workspace assets including DBFS, cluster logs, and job results. For the AWS S3 bucket, you need to configure the required bucket policy.

INSERT INTO databricks_account.provisioning.storage (
data__storage_configuration_name,
data__root_bucket_info
)
SELECT
'{{ storage_configuration_name }}',
'{{ root_bucket_info }}'
;

DELETE examples

Deletes a Databricks storage configuration. You cannot delete a storage configuration that is associated with any workspace.

DELETE FROM databricks_account.provisioning.storage;