storage
Creates, updates, deletes, gets or lists a storage
resource.
Overview
Name | storage |
Type | Resource |
Id | databricks_account.provisioning.storage |
Fields
The following fields are returned by SELECT
queries:
- get
- list
The storage configuration was successfully returned.
Name | Datatype | Description |
---|---|---|
account_id | string | |
storage_configuration_id | string | |
storage_configuration_name | string | |
creation_time | integer | |
root_bucket_info | object |
The storage configurations were successfully returned.
Name | Datatype | Description |
---|---|---|
account_id | string | |
storage_configuration_id | string | |
storage_configuration_name | string | |
creation_time | integer | |
root_bucket_info | object |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | Gets a Databricks storage configuration for an account, both specified by ID. | ||
list | select | Gets a list of all Databricks storage configurations for your account, specified by ID. | ||
create | insert | 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. | ||
delete | delete | Deletes 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.
Name | Datatype | Description |
---|
SELECT
examples
- get
- list
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;
Gets a list of all Databricks storage configurations for your account, specified by ID.
SELECT
account_id,
storage_configuration_id,
storage_configuration_name,
creation_time,
root_bucket_info
FROM databricks_account.provisioning.storage;
INSERT
examples
- create
- Manifest
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 }}'
;
# Description fields are for documentation purposes
- name: storage
props:
- name: storage_configuration_name
value: required
- name: root_bucket_info
value: required
DELETE
examples
- delete
Deletes a Databricks storage configuration. You cannot delete a storage configuration that is associated with any workspace.
DELETE FROM databricks_account.provisioning.storage;