log_delivery
Operations on a log_delivery
resource.
Overview
Name | log_delivery |
Type | Resource |
Id | databricks_account.logging.log_delivery |
Fields
Name | Datatype |
---|---|
account_id | string |
config_id | string |
config_name | string |
creation_time | integer |
credentials_id | string |
delivery_path_prefix | string |
delivery_start_time | string |
log_delivery_status | object |
log_type | string |
output_format | string |
status | string |
storage_configuration_id | string |
update_time | integer |
workspace_ids_filter | array |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | account_id, log_delivery_configuration_id | Gets a Databricks log delivery configuration object for an account, both specified by ID. |
list | SELECT | account_id | Gets all Databricks log delivery configurations associated with an account specified by ID. |
create | INSERT | account_id | 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 | account_id, log_delivery_configuration_id | 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 |
SELECT
examples
- log_delivery (list)
- log_delivery (get)
SELECT
account_id,
config_id,
config_name,
creation_time,
credentials_id,
delivery_path_prefix,
delivery_start_time,
log_delivery_status,
log_type,
output_format,
status,
storage_configuration_id,
update_time,
workspace_ids_filter
FROM databricks_account.logging.log_delivery
WHERE account_id = '{{ account_id }}';
SELECT
account_id,
config_id,
config_name,
creation_time,
credentials_id,
delivery_path_prefix,
delivery_start_time,
log_delivery_status,
log_type,
output_format,
status,
storage_configuration_id,
update_time,
workspace_ids_filter
FROM databricks_account.logging.log_delivery
WHERE account_id = '{{ account_id }}' AND
log_delivery_configuration_id = '{{ log_delivery_configuration_id }}';
INSERT
example
Use the following StackQL query and manifest file to create a new log_delivery
resource.
- log_delivery
- Manifest
/*+ create */
INSERT INTO databricks_account.logging.log_delivery (
account_id,
data__log_delivery_configuration
)
SELECT
'{{ account_id }}',
'{{ log_delivery_configuration }}'
;
- name: your_resource_model_name
props:
- name: log_delivery_configuration
value:
config_name: string
status: ENABLED
log_type: BILLABLE_USAGE
output_format: CSV
credentials_id: c7814269-df58-4ca3-85e9-f6672ef43d77
storage_configuration_id: 04aae505-1b1e-4cb9-997d-e1c49282675d
workspace_ids_filter:
- 0
delivery_path_prefix: string
delivery_start_time: string