Databricks SDK for JavaScript
    Preparing search index...

    The environment entity used to preserve serverless environment side panel, jobs' environment for non-notebook task, and SDP's environment for classic and serverless pipelines. In this minimal environment spec, only pip and java dependencies are supported.

    interface Environment {
        baseEnvironment?: string;
        client?: string;
        dependencies?: string[];
        environmentVersion?: string;
        javaDependencies?: string[];
    }
    Index

    Properties

    baseEnvironment?: string

    The base environment this environment is built on top of. A base environment defines the environment version and a list of dependencies for serverless compute. The value can be a file path to a custom env.yaml file (e.g., /Workspace/path/to/env.yaml). Support for a -provided base environment ID (e.g., workspace-base-environments/databricks_ai_v4) and workspace base environment ID (e.g., workspace-base-environments/dbe_b849b66e-b31a-4cb5-b161-1f2b10877fb7) is in Beta. Either environment_version or base_environment can be provided. For more information about -provided base environments, see the list workspace base environments API. For more information, see

    client?: string

    Use environment_version instead.

    dependencies?: string[]

    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 ), or a VCS project URL.

    environmentVersion?: string

    Either environment_version or base_environment needs to be provided. 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.

    javaDependencies?: string[]

    List of java dependencies. Each dependency is a string representing a java library path. For example: /Volumes/path/to/test.jar.