E. Erfan
E. Erfan

Reputation: 1411

Azure databricks repos: how to pull via API

I am using repos for Azure DevOps to connect Azure databricks to my respositories in DevOps. I need to pull automatically from Azure DevOps pipelines. For that I tried using databricks API to pull, but referring to this link there is no method for pulling.

Following the instruction and looking at swagger the only methods available are: repos API Is there a way to pull via API or CLI or any other way programmatically? If yes, how?

Upvotes: 5

Views: 1407

Answers (1)

Alex Ott
Alex Ott

Reputation: 87154

You need to use PATCH endpoint as described in 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.

Upvotes: 3

Related Questions