cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Can you create Clusters via a REST API?

User16856693631
New Contributor II

Yes, you can. See here: https://docs.databricks.com/dev-tools/api/latest/clusters.html

The JSON payload would look as follows:

{
  "cluster_name": "my-cluster",
  "spark_version": "7.3.x-scala2.12",
  "node_type_id": "i3.xlarge",
  "spark_conf": {
    "spark.speculation": true
  },
  "aws_attributes": {
    "availability": "SPOT",
    "zone_id": "us-west-2a"
  },
  "num_workers": 25
}

2 REPLIES 2

Kaniz
Community Manager
Community Manager

Hi @User16179889794975565842! My name is Kaniz, and I'm the technical moderator here. Great to meet you, and thanks for your question! Let's see if your peers on the Forum have an answer to your question first. Or else I will follow up shortly with a response.

ManishPatil
New Contributor II

One can create a Cluster(s) using CLuster API @ https://docs.databricks.com/dev-tools/api/latest/clusters.html#create

However, REST API 2.0 doesn't provide certain features like "Enable Table Access Control", which has been introduced after REST API 2.0. Given said that one can always enable those features using spark config:

spark.databricks.acl.sqlOnly true

Ref: https://docs.databricks.com/security/access-control/table-acls/table-acl.html#sql-only-table-access-...

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.