Workspace Base Environment
A WorkspaceBaseEnvironment defines a workspace-level environment configuration consisting of an environment version and a list of dependencies.
WorkspaceBaseEnvironment object
A WorkspaceBaseEnvironment defines a workspace-level environment configuration consisting of an environment version and a list of dependencies.
- namestring
The resource name of the workspace base environment. Format: workspace-base-environments/{workspace-base-environment}
- display_namestring
Human-readable display name for the workspace base environment.
- filepathstring
The WSFS or UC Volumes path to the environment YAML file.
- creator_user_idstring
User ID of the creator.
- create_timestring
Timestamp when the environment was created.
- last_updated_user_idstring
User ID of the last user who updated the environment.
- update_timestring
Timestamp when the environment was last updated.
- statusstring
The status of the materialized workspace base environment.
- messagestring
Status message providing additional details about the environment status.
- is_defaultboolean
Whether this is the default environment for the workspace.
- base_environment_typestring
The type of base environment (CPU or GPU).
- specobjectBeta
The environment specification containing version and dependencies.
Show child attributesHide child attributes
- dependenciesarray of stringBeta
List of pip dependencies, as supported by the version of pip in this environment. Each dependency is a valid pip requirements file line per https://pip.pypa.io/en/stable/reference/requirements-file-format/. Allowed dependencies include a requirement specifier, an archive URL, a local project path (such as WSFS or UC Volumes in <Databricks>), or a VCS project URL.
- environment_versionstringBeta
Environment version used by the environment. Each version comes with a specific Python version and a set of Python packages. The version is a string, consisting of an integer.
Get GA
GET
Retrieves a WorkspaceBaseEnvironment by its name.
API scopes: environments
Parameters
- namestringpath
Required. The resource name of the workspace base environment to retrieve. Format: workspace-base-environments/{workspace_base_environment}
Response
Returns the WorkspaceBaseEnvironment object.
List GA
GET
Lists all WorkspaceBaseEnvironments in the workspace.
<Databricks> provides the following base environments:
-
workspace-base-environments/databricks_ai_...: includes popular AI and deep learning packages for serverless GPU compute. -
workspace-base-environments/databricks_ml_...: includes popular ML packages for serverless compute.
Databricks-provided base environments are versioned. For example, workspace-base-environments/databricks_ml_v5 corresponds to the ML environment built on environment version 5.
API scopes: environments
Lists all WorkspaceBaseEnvironments in the workspace.
<Databricks> provides the following base environments:
-
workspace-base-environments/databricks_ai_...: includes popular AI and deep learning packages for serverless GPU compute. See https://docs.databricks.com/aws/en/release-notes/serverless/environment-version/five-gpu#ai-environment. -
workspace-base-environments/databricks_ml_...: includes popular ML packages for serverless compute. See https://docs.databricks.com/aws/en/release-notes/serverless/environment-version/five#ml-environment.
Databricks-provided base environments are versioned. For example, workspace-base-environments/databricks_ml_v5 corresponds to the ML environment built on environment version 5.
Lists all WorkspaceBaseEnvironments in the workspace.
<Databricks> provides the following base environments:
workspace-base-environments/databricks_ai_...: includes popular AI and deep learning packages for serverless GPU compute.
workspace-base-environments/databricks_ml_...: includes popular ML packages for serverless compute.
Databricks-provided base environments are versioned. For example, workspace-base-environments/databricks_ml_v5 corresponds to the ML environment built on environment version 5.
Lists all WorkspaceBaseEnvironments in the workspace.
<Databricks> provides the following base environments:
workspace-base-environments/databricks_ai_...: includes popular AI and deep learning packages for serverless GPU compute.
workspace-base-environments/databricks_ml_...: includes popular ML packages for serverless compute.
See https://docs.databricks.com/gcp/en/release-notes/serverless/environment-version/five#ml-environment.
Databricks-provided base environments are versioned. For example, workspace-base-environments/databricks_ml_v5 corresponds to the ML environment built on environment version 5.
Parameters
- page_sizeint32query
The maximum number of environments to return per page. Default is 1000.
- page_tokenstringquery
Page token for pagination. Received from a previous ListWorkspaceBaseEnvironments call.
Response
Returns a list of WorkspaceBaseEnvironment objects.
Create GA
POST
Creates a new WorkspaceBaseEnvironment. This is a long-running operation. The operation will asynchronously generate a materialized environment to optimize dependency resolution and is only marked as done when the materialized environment has been successfully generated or has failed.
API scopes: environments
Parameters
- workspace_base_environment_idstringquery
The ID to use for the workspace base environment, which will become the final component of the resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.
- request_idstringquery
A unique identifier for this request. A random UUID is recommended. This request is only idempotent if a request_id is provided.
Request body
- workspace_base_environmentobject
Required. The workspace base environment to create.
Show child attributesHide child attributes
- namestring
The resource name of the workspace base environment. Format: workspace-base-environments/{workspace-base-environment}
- display_namestring
Human-readable display name for the workspace base environment.
- filepathstring
The WSFS or UC Volumes path to the environment YAML file.
- creator_user_idstring
User ID of the creator.
- create_timestring
Timestamp when the environment was created.
- last_updated_user_idstring
User ID of the last user who updated the environment.
- update_timestring
Timestamp when the environment was last updated.
- statusstring
The status of the materialized workspace base environment.
- messagestring
Status message providing additional details about the environment status.
- is_defaultboolean
Whether this is the default environment for the workspace.
- base_environment_typestring
The type of base environment (CPU or GPU).
- specobjectBeta
The environment specification containing version and dependencies.
Show child attributesHide child attributes
- dependenciesarray of stringBeta
List of pip dependencies, as supported by the version of pip in this environment. Each dependency is a valid pip requirements file line per https://pip.pypa.io/en/stable/reference/requirements-file-format/. Allowed dependencies include a requirement specifier, an archive URL, a local project path (such as WSFS or UC Volumes in <Databricks>), or a VCS project URL.
- environment_versionstringBeta
Environment version used by the environment. Each version comes with a specific Python version and a set of Python packages. The version is a string, consisting of an integer.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.
Update GA
PATCH
Updates an existing WorkspaceBaseEnvironment. This is a long-running operation. The operation will asynchronously regenerate the materialized environment and is only marked as done when the materialized environment has been successfully generated or has failed. The existing materialized environment remains available until it expires.
API scopes: environments
Parameters
- namestringpath
Request body
- workspace_base_environmentobject
Required. The workspace base environment with updated fields. The name field is used to identify the environment to update.
Show child attributesHide child attributes
- namestring
The resource name of the workspace base environment. Format: workspace-base-environments/{workspace-base-environment}
- display_namestring
Human-readable display name for the workspace base environment.
- filepathstring
The WSFS or UC Volumes path to the environment YAML file.
- creator_user_idstring
User ID of the creator.
- create_timestring
Timestamp when the environment was created.
- last_updated_user_idstring
User ID of the last user who updated the environment.
- update_timestring
Timestamp when the environment was last updated.
- statusstring
The status of the materialized workspace base environment.
- messagestring
Status message providing additional details about the environment status.
- is_defaultboolean
Whether this is the default environment for the workspace.
- base_environment_typestring
The type of base environment (CPU or GPU).
- specobjectBeta
The environment specification containing version and dependencies.
Show child attributesHide child attributes
- dependenciesarray of stringBeta
List of pip dependencies, as supported by the version of pip in this environment. Each dependency is a valid pip requirements file line per https://pip.pypa.io/en/stable/reference/requirements-file-format/. Allowed dependencies include a requirement specifier, an archive URL, a local project path (such as WSFS or UC Volumes in <Databricks>), or a VCS project URL.
- environment_versionstringBeta
Environment version used by the environment. Each version comes with a specific Python version and a set of Python packages. The version is a string, consisting of an integer.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.
Delete GA
DELETE
Deletes a WorkspaceBaseEnvironment. Deleting a base environment may impact linked notebooks and jobs. This operation is irreversible and should be performed only when you are certain the environment is no longer needed.
API scopes: environments
Parameters
- namestringpath
Required. The resource name of the workspace base environment to delete. Format: workspace-base-environments/{workspace_base_environment}