Joe
Joe

Reputation: 13111

Databricks Azure - How to to run API commands from a Notebook

How to run within Databricks notebook - API for checking other running jobs:

https://docs.databricks.com/dev-tools/api/latest/jobs.html

Thanks

Upvotes: 1

Views: 796

Answers (1)

dwolfeu
dwolfeu

Reputation: 1251

You could use %%sh cell magic and then use the usual curl commands, e.g.:

%%sh
curl -n -X GET https://<databricks-instance>/api/2.0/jobs/list

(You'll need to authenticate first though: The -n flag is for an .netrc file. This question might be useful for that.)

I think this is the only option: Jobs can be managed either through the REST API or through the Databricks GUI. I can't see anything about managing jobs using dbutils, for instance.

Upvotes: 0

Related Questions