Created
February 28, 2024 11:54
-
-
Save pramit-marattha/dfcea021654643c77e51476742e02e47 to your computer and use it in GitHub Desktop.
Databricks-Jobs-API-Hoppscotch-Collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"v":2, | |
"name":"Databricks Jobs API", | |
"auth":{ | |
"authActive":true, | |
"authType":"none" | |
}, | |
"headers":[ | |
], | |
"folders":[ | |
], | |
"requests":[ | |
{ | |
"preRequestScript":"", | |
"v":"1", | |
"method":"GET", | |
"name":"Fetching the Permissions of Databricks Jobs", | |
"testScript":"", | |
"body":{ | |
"contentType":"application/json", | |
"body":null | |
}, | |
"headers":[ | |
{ | |
"key":"Content-Type", | |
"value":"", | |
"active":true | |
} | |
], | |
"auth":{ | |
"token":"<<token>>", | |
"authActive":true, | |
"authType":"bearer" | |
}, | |
"endpoint":"<<databricksInstance>>/api/2.0/permissions/jobs/1097649951024472", | |
"params":[ | |
] | |
}, | |
{ | |
"name":"Setting the Permissions of Databricks Jobs", | |
"testScript":"", | |
"headers":[ | |
], | |
"v":"1", | |
"preRequestScript":"", | |
"auth":{ | |
"authType":"bearer", | |
"token":"<<token>>", | |
"authActive":true | |
}, | |
"endpoint":"<<databricksInstance>>/api/2.0/permissions/jobs/1097649951024472", | |
"body":{ | |
"body":"{\n \"access_control_list\": [\n {\n \"user_name\": \"pramit@chaosgenius.io\",\n \"permission_level\": \"IS_OWNER\"\n },\n {\n \"group_name\": \"admins\",\n \"permission_level\": \"CAN_VIEW\"\n }\n ]\n}", | |
"contentType":"application/json" | |
}, | |
"method":"PUT", | |
"params":[ | |
] | |
}, | |
{ | |
"auth":{ | |
"token":"<<token>>", | |
"authActive":true, | |
"authType":"bearer" | |
}, | |
"v":"1", | |
"method":"PATCH", | |
"headers":[ | |
], | |
"body":{ | |
"contentType":"application/json", | |
"body":"{\n \"access_control_list\": [\n {\n \"user_name\": \"pramit@chaosgenius.io\",\n \"permission_level\": \"IS_OWNER\"\n },\n {\n \"group_name\": \"admins\",\n \"permission_level\": \"CAN_VIEW\"\n }\n ]\n}" | |
}, | |
"name":"Updating the Permissions of Databricks Jobs", | |
"params":[ | |
], | |
"preRequestScript":"", | |
"testScript":"", | |
"endpoint":"<<databricksInstance>>/api/2.0/permissions/jobs/1097649951024472" | |
}, | |
{ | |
"v":"1", | |
"params":[ | |
], | |
"auth":{ | |
"authType":"bearer", | |
"token":"<<token>>", | |
"authActive":true | |
}, | |
"body":{ | |
"contentType":"application/json", | |
"body":"{\n \"run_as\": {\n \"user_name\": \"pramit@chaosgenius.io\"\n },\n \"name\": \"Demo Databricks Jobs API\",\n \"email_notifications\": {\n \"on_failure\": [\n \"pramit@chaosgenius.io\"\n ]\n },\n \"notification_settings\": {\n \"no_alert_for_skipped_runs\": false,\n \"no_alert_for_canceled_runs\": false,\n \"alert_on_last_attempt\": false\n },\n \"webhook_notifications\": {},\n \"max_concurrent_runs\": 1,\n \"tasks\": [\n {\n \"task_key\": \"demo_task\",\n \"run_if\": \"ALL_SUCCESS\",\n \"notebook_task\": {\n \"notebook_path\": \"/Users/pramit@chaosgenius.io/DatabricksJobsAPI\",\n \"source\": \"WORKSPACE\"\n },\n \"existing_cluster_id\": \"0224-093829-ec3b9u4n\"\n }\n ],\n \"format\": \"SINGLE_TASK\"\n}" | |
}, | |
"method":"POST", | |
"preRequestScript":"", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/create", | |
"headers":[ | |
], | |
"testScript":"", | |
"name":"Creating a New Databricks Job" | |
}, | |
{ | |
"method":"GET", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"headers":[ | |
], | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/list", | |
"preRequestScript":"", | |
"name":"Listing All Databricks Jobs", | |
"testScript":"", | |
"body":{ | |
"contentType":null, | |
"body":null | |
}, | |
"params":[ | |
], | |
"v":"1" | |
}, | |
{ | |
"testScript":"", | |
"method":"GET", | |
"v":"1", | |
"name":"Listing Single Databricks Job", | |
"preRequestScript":"", | |
"body":{ | |
"body":null, | |
"contentType":null | |
}, | |
"params":[ | |
], | |
"headers":[ | |
], | |
"auth":{ | |
"authActive":true, | |
"token":"<<token>>", | |
"authType":"bearer" | |
}, | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/get?job_id=919252599198438" | |
}, | |
{ | |
"v":"1", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/delete?job_id=919826117596009", | |
"name":"Deleting Single Databricks Job", | |
"params":[ | |
], | |
"headers":[ | |
], | |
"method":"POST", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"preRequestScript":"", | |
"testScript":"", | |
"body":{ | |
"contentType":null, | |
"body":null | |
} | |
}, | |
{ | |
"preRequestScript":"", | |
"method":"POST", | |
"body":{ | |
"body":null, | |
"contentType":null | |
}, | |
"v":"1", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/run-now?job_id=919252599198438", | |
"testScript":"", | |
"headers":[ | |
], | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"params":[ | |
], | |
"name":"Triggering a New Databricks Job Run " | |
}, | |
{ | |
"v":"1", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/runs/list", | |
"name":"Listing All Databricks Job Runs", | |
"params":[ | |
], | |
"headers":[ | |
], | |
"method":"GET", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"preRequestScript":"", | |
"testScript":"", | |
"body":{ | |
"contentType":null, | |
"body":null | |
} | |
}, | |
{ | |
"preRequestScript":"", | |
"method":"GET", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"name":"Get a single job run ", | |
"body":{ | |
"contentType":null, | |
"body":null | |
}, | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/runs/get?run_id=688107498864107", | |
"params":[ | |
], | |
"v":"1", | |
"testScript":"", | |
"headers":[ | |
] | |
}, | |
{ | |
"v":"1", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/runs/cancel?run_id=688107498864107", | |
"name":"Terminating a Single Databricks Job Runs", | |
"params":[ | |
], | |
"headers":[ | |
], | |
"method":"POST", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"preRequestScript":"", | |
"testScript":"", | |
"body":{ | |
"contentType":null, | |
"body":null | |
} | |
}, | |
{ | |
"v":"1", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/runs/cancel-all?job_id=919252599198438", | |
"name":"Terminating All Databricks Job Runs", | |
"params":[ | |
], | |
"headers":[ | |
], | |
"method":"POST", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"preRequestScript":"", | |
"testScript":"", | |
"body":{ | |
"contentType":null, | |
"body":null | |
} | |
}, | |
{ | |
"v":"1", | |
"endpoint":"<<databricksInstance>>/api/2.1/jobs/runs/delete?run_id=1015508383796932", | |
"name":"Deleting All Databricks Job Runs", | |
"params":[ | |
], | |
"headers":[ | |
], | |
"method":"POST", | |
"auth":{ | |
"authType":"bearer", | |
"authActive":true, | |
"token":"<<token>>" | |
}, | |
"preRequestScript":"", | |
"testScript":"", | |
"body":{ | |
"contentType":null, | |
"body":null | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment