简体   繁体   English

Microsoft Graph API - Odata 筛选器

[英]Microsoft Graph API - Odata Filter

I am using Microsoft Graph API to select a list of drives (used the following end point https://graph.microsoft.com/v1.0/drives )我正在使用 Microsoft Graph API 到 select 驱动器列表(使用以下端点https://graph.microsoft.com/v1.0/drives

This returns the following response这将返回以下响应

{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#drives",
"value": [
    {
        "createdDateTime": "2020-08-04T02:41:25Z",
        "description": "",
        "id": "b!cMaCrLYg0Eebp_dXxJrwY",
        "lastModifiedDateTime": "2020-08-05T11:45:01Z",
        "name": "DocLibrary1"
    },
    {
        "createdDateTime": "2020-08-04T02:41:25Z",
        "description": "",
        "id": "b!cMaCu321321jJDASJA",
        "lastModifiedDateTime": "2020-08-05T11:45:01Z",
        "name": "DocLibrary2"
    }  ]}

Now how can I change the URL request to only fetch attibutes where name = 'DocLibrary1'?现在如何更改 URL 请求以仅获取 name = 'DocLibrary1' 的属性?

This seems to be a limitation.这似乎是一个限制。 I have added this as a request for Microsoft Graph API (as it works with eh other endpoints of the Graph API)我已将此添加为对 Microsoft Graph API 的请求(因为它与 Graph API 的其他端点一起使用)

https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/41172841-microsoft-graph-api-odata-support-to-fetch-dri https://microsoftgraph.uservoice.com/forums/920506-microsoft-graph-feature-requests/suggestions/41172841-microsoft-graph-api-odata-support-to-fetch-dri

Please go and vote!请 go 投票!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM