Azure 数据块存储库:如何通过 API 拉取

Azure databricks repos: how to pull via API

我正在使用 Azure DevOps 的存储库将 Azure databricks 连接到我在 DevOps 中的存储库。我需要从 Azure DevOps 管道自动拉取。为此,我尝试使用数据块 API 进行拉取,但参考 this link 没有拉取方法。

按照说明并查看 swagger,唯一可用的方法是: 有没有办法通过 API 或 CLI 或任何其他方式以编程方式拉取?如果是,如何?

您需要使用 PATCH 端点,如 documentation. It will Updates the repo to the given branch (or tag) - if you already on the given branch, then it will pull the latest changes. You can also use databricks-cli for that, like, it's shown in the following demo 中所述。