IP address configuration for databricks workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2025 05:54 AM
Hi All Im running the below code in notebook but always returns 400 error even though everything seems correct, Can you please help me how to see the current IP address list or enable the IP access list for the databricks workspace
your help will be appreciated. Also help me where to run the CLI commands from azure cloud instead of downloading the databricks CLi locally and then connecting to Azure databricks?
import requests
workspace_url = "https:/databricksworkspaceid.azuredatabricks.net"
token = "PAT Token" #
# API endpoint
url = f"{workspace_url}/api/2.0/ip-access-lists"
# Authorization headers
headers = {
"Authorization": f"Bearer {token}"
}
print(url)
response = requests.get(url, headers=headers)
print(response)