Can you create Clusters via a REST API?

User16856693631
Databricks Employee
Databricks Employee

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
}