default_base_environment
Creates, updates, deletes, gets or lists a default_base_environment resource.
Overview
| Name | default_base_environment |
| Type | Resource |
| Id | databricks_workspace.compute.default_base_environment |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
creator_user_id | integer | |
last_updated_user_id | integer | |
base_environment_cache | array | |
base_environment_type | string | If changed, also update estore/namespaces/defaultbaseenvironments/latest.proto (CPU, GPU) |
created_timestamp | integer | |
environment | object | Note: we made ``environment`` non-internal because we need to expose its ``client`` field. All other fields should be treated as internal. |
filepath | string | |
is_default | boolean | |
last_updated_timestamp | integer | |
message | string | |
principal_ids | array | |
status | string | Create a collection of name/value pairs.<br /><br />Example enumeration:<br /><br />>>> class Color(Enum):<br />... RED = 1<br />... BLUE = 2<br />... GREEN = 3<br /><br />Access them by:<br /><br />- attribute access:<br /><br /> >>> Color.RED<br /> <Color.RED: 1><br /><br />- value lookup:<br /><br /> >>> Color(1)<br /> <Color.RED: 1><br /><br />- name lookup:<br /><br /> >>> Color['RED']<br /> <Color.RED: 1><br /><br />Enumerations can be iterated over, and know how many members they have:<br /><br />>>> len(Color)<br />3<br /><br />>>> list(Color)<br />[<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]<br /><br />Methods can be added to enumerations, and members can have their own<br />attributes -- see the documentation for details. (CREATED, EXPIRED, FAILED, INVALID, PENDING, REFRESHING) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, deployment_name | trace_id | Return the default base environment details for a given ID. |
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 |
|---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
id | string | |
trace_id | string | Deprecated: use ctx.requestId instead |
SELECT examples
- get
Return the default base environment details for a given ID.
SELECT
id,
name,
creator_user_id,
last_updated_user_id,
base_environment_cache,
base_environment_type,
created_timestamp,
environment,
filepath,
is_default,
last_updated_timestamp,
message,
principal_ids,
status
FROM databricks_workspace.compute.default_base_environment
WHERE id = '{{ id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND trace_id = '{{ trace_id }}'
;