log_delivery
Creates, updates, deletes, gets or lists a log_delivery
resource.
Overview
Name | log_delivery |
Type | Resource |
Id | databricks_account.logging.log_delivery |
Fields
The following fields are returned by SELECT
queries:
- get
- list
The log delivery configuration was successfully returned.
Name | Datatype | Description |
---|---|---|
account_id | string | |
config_id | string | |
credentials_id | string | |
storage_configuration_id | string | |
config_name | string | |
creation_time | integer | |
delivery_path_prefix | string | |
delivery_start_time | string | |
log_delivery_status | object | |
log_type | string | |
output_format | string | |
status | string | |
update_time | integer | |
workspace_ids_filter | array |
Log delivery configurations were returned successfully.
Name | Datatype | Description |
---|---|---|
account_id | string | |
config_id | string | |
credentials_id | string | |
storage_configuration_id | string | |
config_name | string | |
creation_time | integer | |
delivery_path_prefix | string | |
delivery_start_time | string | |
log_delivery_status | object | |
log_type | string | |
output_format | string | |
status | string | |
update_time | integer | |
workspace_ids_filter | array |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | Gets a Databricks log delivery configuration object for an account, both specified by ID. | ||
list | select | Gets all Databricks log delivery configurations associated with an account specified by ID. | ||
create | insert | Creates a new Databricks log delivery configuration to enable delivery of the specified type of logs to your storage location. This requires that you already created a | ||
patchstatus | exec | Enables or disables a log delivery configuration. Deletion of delivery configurations is not supported, so disable log delivery configurations that are no longer needed. Note that you can't re-enable a delivery configuration if this would violate the delivery configuration limits described under |
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 log delivery configuration object for an account, both specified by ID.
SELECT
account_id,
config_id,
credentials_id,
storage_configuration_id,
config_name,
creation_time,
delivery_path_prefix,
delivery_start_time,
log_delivery_status,
log_type,
output_format,
status,
update_time,
workspace_ids_filter
FROM databricks_account.logging.log_delivery;
Gets all Databricks log delivery configurations associated with an account specified by ID.
SELECT
account_id,
config_id,
credentials_id,
storage_configuration_id,
config_name,
creation_time,
delivery_path_prefix,
delivery_start_time,
log_delivery_status,
log_type,
output_format,
status,
update_time,
workspace_ids_filter
FROM databricks_account.logging.log_delivery;
INSERT
examples
- create
- Manifest
Creates a new Databricks log delivery configuration to enable delivery of the specified type of logs to your storage location. This requires that you already created a
INSERT INTO databricks_account.logging.log_delivery (
data__log_delivery_configuration
)
SELECT
'{{ log_delivery_configuration }}'
RETURNING
log_delivery_configuration
;
# Description fields are for documentation purposes
- name: log_delivery
props:
- name: log_delivery_configuration
value: object
Lifecycle Methods
- patchstatus
Enables or disables a log delivery configuration. Deletion of delivery configurations is not supported, so disable log delivery configurations that are no longer needed. Note that you can't re-enable a delivery configuration if this would violate the delivery configuration limits described under
EXEC databricks_account.logging.log_delivery.patchstatus
@@json=
'{
"status": "{{ status }}"
}';