Databricks SDK for JavaScript
    Preparing search index...
    Index

    Constructors

    Methods

    • Deletes an object or a directory (and optionally recursively deletes all objects in the directory).

      • If path does not exist, this call returns an error RESOURCE_DOES_NOT_EXIST.
      • If path is a non-empty directory and recursive is set to false, this call returns an error DIRECTORY_NOT_EMPTY.

      Object deletion cannot be undone and deleting a directory recursively is not atomic.

      Parameters

      Returns Promise<DeleteResponse>

    • Exports an object or the contents of an entire directory.

      If path does not exist, this call returns an error RESOURCE_DOES_NOT_EXIST.

      If the exported data would exceed size limit, this call returns MAX_NOTEBOOK_SIZE_EXCEEDED. Currently, this API does not support exporting a library.

      Parameters

      Returns Promise<ExportResponse>

    • Imports a workspace object (for example, a notebook or file) or the contents of an entire directory. If path already exists and overwrite is set to false, this call returns an error RESOURCE_ALREADY_EXISTS. To import a directory, you can use either the DBC format or the SOURCE format with the language field unset. To import a single file as SOURCE, you must set the language field. Zip files within directories are not supported.

      Parameters

      Returns Promise<ImportResponse>

    • Creates the specified directory (and necessary parent directories if they do not exist). If there is an object (not a directory) at any prefix of the input path, this call returns an error RESOURCE_ALREADY_EXISTS.

      Note that if this operation fails it may have succeeded in creating some of the necessary parent directories.

      Parameters

      Returns Promise<MkdirsResponse>