- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 08:55 AM
>Thank you for this script. It provided me with additional info into Databricks access keys.
>I ran the following CURL using bash (essentially the same)
"
curl -X PATCH -H "Authorization: Bearer $DB_TOKEN" \
-H "X-Databricks-Azure-SP-Management-Token: $AZ_TOKEN" \
-H "X-Databricks-Azure-Workspace-Resource-Id: $WS_ID" \
-d '{"personal_access_token": "$PAT", "git_username": "$GITUSER", "git_provider": "gitHub"}' \
https://$DATABRICKS_URL/api/2.0/git-credentials/801978151980718
"
>It works. I can then use the headers to run different information from the workspace.
>My main issue, is this error One issue that I am getting though, is when I run the following curl:
{"error_code":"PERMISSION_DENIED","message":"PERMISSION_DENIED: Missing required permissions [View] on node with ID '1759335429158542'"}
However, I am unable to locate anything with that ID. I can't view it, I can't delete it.
"
curl -X GET -H "Authorization: Bearer $DB_TOKEN" \
-H "X-Databricks-Azure-SP-Management-Token: $AZ_TOKEN" \
-H "X-Databricks-Azure-Workspace-Resource-Id: $WS_ID" \
https://adb-7866570032917376.16.azuredatabricks.net/api/2.0/repos/1759335429158542
"
This is causing terraform to fail. Do you have any idea what could cause this to fail?