cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Change cluster owner API call failed

hdu
New Contributor II

I am trying to change cluster's owner using API call. but get following error. I am positive that host, cluster_id and owner_username are all correct. 

The error message says No API found. Is this related with the compute I am using? or something else? Can any one help please?  Thank you in advance. 

hdu_0-1742837197352.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

Brahmareddy
Honored Contributor III

Hi hdu,

How are you doing today?, As per my understanding, It sounds like youโ€™re really close! That โ€œNo API foundโ€ error usually means either the wrong API endpoint is being used, or the cluster type doesnโ€™t support ownership changesโ€”for example, shared or serverless clusters often donโ€™t allow changing the owner via API. Make sure youโ€™re using the Permissions API (not the Clusters API) with this format: POST /api/2.0/permissions/clusters/{cluster_id} and passing the new owner's info in the body. Also, your user needs to have admin or CAN_MANAGE permissions on the cluster to make the change. If everything checks out and itโ€™s still failing, the issue is probably the cluster type not allowing this update. Let me know if you want help with the exact API call formatโ€”Iโ€™m happy to share a quick example!

Regards,

Brahma

View solution in original post

1 REPLY 1

Brahmareddy
Honored Contributor III

Hi hdu,

How are you doing today?, As per my understanding, It sounds like youโ€™re really close! That โ€œNo API foundโ€ error usually means either the wrong API endpoint is being used, or the cluster type doesnโ€™t support ownership changesโ€”for example, shared or serverless clusters often donโ€™t allow changing the owner via API. Make sure youโ€™re using the Permissions API (not the Clusters API) with this format: POST /api/2.0/permissions/clusters/{cluster_id} and passing the new owner's info in the body. Also, your user needs to have admin or CAN_MANAGE permissions on the cluster to make the change. If everything checks out and itโ€™s still failing, the issue is probably the cluster type not allowing this update. Let me know if you want help with the exact API call formatโ€”Iโ€™m happy to share a quick example!

Regards,

Brahma

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