通过 REST API 端点获取所有 Purview 业务资产的列表

问题描述 投票:0回答:2

为了通过 Azure 逻辑应用程序在 Azure Purview 和其他第三方系统之间构建集成,我需要通过 REST API 获取所有业务资产 GUID 的列表 (List which can be seen here in the WebApp)

为了检索详细的实体信息,我使用以下请求:(适用于手动选择的 GUID):

GET

https://{{purview_account}}.catalog.purview.azure.com/api/atlas/v2/entity/guid/{GUID}
(通过 Bearer Token 进行身份验证)

到目前为止我尝试过的事情

根据此API文档我尝试使用发现端点,但无法执行工作请求。

想出:

  • 发布
    https://{{purview_account}}.purview.azure.com/api/atlas/v2/search/query?api-version=2023-09-01
  • 发布
    https://{{purview_account}}.purview.azure.com/datamap/api/search/query?api-version=2023-09-01

全部使用身体:

{ "keywords": "*" }

这会导致 404 Not Found 错误:{"error":{"code":"ResourceNotFound","message":"Resource not find"}}

有人可以告诉我满足我的要求的请求的语法吗?

azure azure-rest-api azure-purview
2个回答
0
投票

我可以使用以下 URL 获取所有 Purview 业务资产的列表 -

POST  https://{{purview_account}}.purview.azure.com/datamap/api/search/query?api-version=2023-09-01

在调用上述URL之前,您需要向在Microsoft Entra ID中注册的应用程序授予

user_impersonation
权限。

enter image description here

您需要生成如下所示的token

enter image description here

调用时使用令牌

POST {endpoint}/datamap/api/search/query?api-version=2023-09-01

我也使用请求正文作为

{ "keywords": "*" }

enter image description here


0
投票

这次通话的正文是什么样的?

© www.soinside.com 2019 - 2024. All rights reserved.