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

"policy_id" parameter in JOB API

Anonymous
Not applicable

I can't find information about that parameter in

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

Where is it documented?

1 ACCEPTED SOLUTION

Accepted Solutions

Ryan_Chynoweth
Honored Contributor III

I believe it is just "policy_id". As an incomplete example the specification via API would be something like:

{
  "cluster_id": "1234-567890-abd35gh",
  "spark_context_id": 1234567890,
  "cluster_name": "my_cluster",
  "spark_version": "9.1.x-scala2.12",
  "node_type_id": "Standard_DS13_v2",
  "driver_node_type_id": "Standard_DS13_v2",
  "spark_env_vars": {
    "PYSPARK_PYTHON": "/databricks/python3/bin/python3"
  },
  "autotermination_minutes": 25,
  "policy_id": "D901239DSFKJ43234"
}

View solution in original post

2 REPLIES 2

Ryan_Chynoweth
Honored Contributor III

I believe it is just "policy_id". As an incomplete example the specification via API would be something like:

{
  "cluster_id": "1234-567890-abd35gh",
  "spark_context_id": 1234567890,
  "cluster_name": "my_cluster",
  "spark_version": "9.1.x-scala2.12",
  "node_type_id": "Standard_DS13_v2",
  "driver_node_type_id": "Standard_DS13_v2",
  "spark_env_vars": {
    "PYSPARK_PYTHON": "/databricks/python3/bin/python3"
  },
  "autotermination_minutes": 25,
  "policy_id": "D901239DSFKJ43234"
}

Kaniz
Community Manager
Community Manager

Hi @Alessio Palma​ , Did you get a chance to look at @Ryan Chynoweth​ 's response?

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.