简体   繁体   中英

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 )

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'?

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)

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

Please go and vote!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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