cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API for swapping cluster

IUC08
New Contributor

Hi Team, 

I am trying to find REST API reference for swapping a cluster but unable to find it in the documentation. Can anyone please tell me what is the REST API reference for swapping an existing cluster to another existing cluster, if present?

If not present, can anyone help me how to achieve this using update REST API reference and provide me a sample JSON body? I have unable to find the correct fieldname through which I can give the update cluster ID. Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Hi @IUC08 ,

Here's the API you're looking for. There's also provided sample body of request:

https://docs.databricks.com/api/workspace/jobs/update

If you encounter trouble or you're not sure how to use it let us know.

View solution in original post

4 REPLIES 4

szymon_dybczak
Esteemed Contributor III

Hi @IUC08 ,

By swapping you mean to use other existing cluster in your jobs?

IUC08
New Contributor

Hi @szymon_dybczak 

Yes, I want to swap the present cluster of the job to one of the other existing cluster and I want to achieve this using rest API. As I couldn't find any swap reference to do this, can it be done using update reference? If so, can you please share a sample JSON body? 

szymon_dybczak
Esteemed Contributor III

Hi @IUC08 ,

Here's the API you're looking for. There's also provided sample body of request:

https://docs.databricks.com/api/workspace/jobs/update

If you encounter trouble or you're not sure how to use it let us know.

IUC08
New Contributor

Hi @szymon_dybczak,

It helps! I am able to change the clusters. Thanks a lot!

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now