如何从Azure Graph API json响应中过滤字符串数组?

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

我正在尝试过滤以下Azure GRAPH API响应中存在的标记:

{
     "displayName": "BlazorApp2-AuthenticationAAD",
     "tags": [
     "WindowsAzureActiveDirectoryIntegratedApp"
   ]
 },

我想为Rest调用设置一个过滤器,以显示其中具有以下标记的应用程序。有人可以帮我打个电话吗,可以在这里使用以达到相同的效果。

azure-active-directory microsoft-graph microsoft-graph-sdks
1个回答
0
投票

您可以使用:

GET https://graph.microsoft.com/v1.0/applications?$filter=tags/any(c:c eq 'WindowsAzureActiveDirectoryIntegratedApp') 

过滤包含标签的应用程序。

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