Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] IAM permissions documentation issue for request_object_type in the case of SQL Warehouses #582

Open
elisabetao opened this issue Mar 13, 2024 · 1 comment

Comments

@elisabetao
Copy link

Description
The issue revolves around IAM permissions documentation for request_object_type in the case of SQL Warehouses. The documentation should mention request_object_type being 'warehouses' instead of 'sql-warehouses' .

If one now uses 'sql-warehouses' as a request_object_type , one will get the following error : " databricks.sdk.errors.platform.BadRequest: 'sql-warehouses' is not a supported object type for permissions. Expected one of {authorization,clusters,cluster-policies,directories,experiments,files,instance-pools,jobs,notebooks,pipelines,registered-models,repos,serving-endpoints,sql-warehouses} "

But the Python SDK uses the Databricks REST API PUT to set permissions re -

res = self._api.do('PUT',
, which as can be seen here: https://docs.databricks.com/api/workspace/warehouses/setpermissions, the request_object_type should be 'warehouses' and not 'sql-warehouses'

Thanks

@mgyucht
Copy link
Contributor

mgyucht commented Mar 13, 2024

Thanks for reporting this! I've reported this to the appropriate team, and they will prioritize fixing the documentation & error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants