Databricks SDK for JavaScript
    Preparing search index...
    Index

    Constructors

    Methods

    • Downloads a regular file from a sandbox as an application/octet-stream body. The sandbox starts automatically if it is stopped. Filesystem access uses the sandbox user's permissions and follows symbolic links.

      A full download returns 200 OK. A satisfiable single byte range returns 206 Partial Content. Multiple byte ranges are unsupported and return 400. Invalid ranges are ignored; an unsatisfiable range returns 416 with Content-Range describing the file length. Range is ignored for empty files.

      Conditional requests can return 304 Not Modified or 412 Precondition Failed. If-Range selects a partial response only when its strong entity tag matches; otherwise, the entire file is returned. HTTP-date validators in If-Range cause a full download. Reads are not snapshots: concurrent in-place writes can affect the returned bytes. HEAD is unsupported.

      Range and conditional options may be supplied as query parameters or HTTP headers. A parameter and one header may both be supplied when their values match exactly. Conflicting values or repeated parameters return 400.

      Parameters

      Returns Promise<DownloadFileResponse>

    • Updates mutable fields on an existing Sandbox. Allowlisted update_mask paths today: display_name, spec.compute.inactivity_timeout. Returns INVALID_PARAMETER_VALUE for empty masks or unknown paths; NOT_FOUND if the sandbox does not exist.

      Parameters

      Returns Promise<Sandbox>

    • Uploads an application/octet-stream body to a sandbox. The sandbox starts automatically if it is stopped. Filesystem access uses the sandbox user's permissions. Replacements follow symbolic links.

      Creates the file or replaces its entire contents, creating parent directories if missing. The completed upload becomes visible atomically. A failure before commit leaves an existing destination unchanged; a lost response after commit does not undo the upload. Completion does not guarantee crash durability.

      Returns 201 Created for a new file or 204 No Content for a replacement. Set overwrite=false or supply If-None-Match: * to create a file only if the destination does not exist. An existing entry, including a symbolic link, returns 412 Precondition Failed. Conflicting options or repeated overwrite parameters return 400. Other If-None-Match values, Content-Range, If-Match, and If-Unmodified-Since are unsupported and return 400.

      Parameters

      Returns Promise<UploadFileResponse>