Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions examples/generic_restapi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from databricks.sdk import WorkspaceClient

if __name__ == "__main__":

w = WorkspaceClient()

# Make a GET request to list cluster policies
response = w.api_client.do(
method="GET",
path="/api/2.0/policies/clusters/list",
headers={
"Accept": "application/json"
}
)

# Print the response
print(response)