如何使用Python中的Rest API对Azure数据目录进行身份验证并从中获取目录 [英] How do i authenticate to and get catalog from Azure Data Catalog using Rest API in Python
问题描述
如何使用Python对Azure数据目录进行身份验证和获取目录?
How do i Authenticate and get a catalog from Azure Data Catalog using Python?
当我尝试使用以下命令时
When I tried using the following command
requests.get(" https://maragement.azure.com/subscriptions/ {id} / resourceGroups / {group_name} /providers/Microsoft.DataCatalog/catalogs/ {catalogname}")
requests.get("https://management.azure.com/subscriptions/{id}/resourceGroups/{group_name}/providers/Microsoft.DataCatalog/catalogs/{catalogname}")
,如链接中所述 https://docs.microsoft.com/en-us/rest/api/datacatalog/data-catalog-data-catalog
抛出以下错误
It throws the following error
回复[400]
Response [400]
看起来我必须先进行身份验证。如何在获取目录之前进行身份验证?
Looks like I have to authenticate first. How do I authenticate prior to getting catalog?
推荐答案
你好,
看起来您可能缺少适当的权限。如果您在数据目录中定义了OWNER / CONTRIBUTOR / READER角色,您应该能够查看它。请咨询您的DBA。
Looks like you might be lacking appropriate permissions. You should be able to view it if you have OWNER/CONTRIBUTOR/READER Roles defined in data catalog. Please check with your DBA.
如果这有帮助,请告诉我们。否则,我们很乐意继续进一步探讨。
Let us know if this helps. Else, we can gladly continue to probe in further.
这篇关于如何使用Python中的Rest API对Azure数据目录进行身份验证并从中获取目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!