我们如何在Microsoft Graph中检索现有订阅?

时间:2018-01-27 15:04:49

标签: c# azure-active-directory microsoft-graph

这是我正在尝试的电话:

https://graph.microsoft.com/v1.0/subscriptions

这会导致以下错误:

{
    "error": {
        "code": "QueryNotSupported",
        "message": "The query is not supported.",
        "innerError": {
            "request-id": "8b2f2137-51ed-498d-9fbb-bc0a29c509da",
            "date": "2018-01-27T14:56:01"
        }
    }
}

我正在使用Microsoft Graph .NET SDK进行实际调用:

var subscriptions = await graphServiceClient.Subscriptions.Request().GetAsync();

1 个答案:

答案 0 :(得分:1)

无法检索所有现有https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/basic-components.md的列表。您需要先了解给定订阅的subscriptionId,然后才能GETPATCHDELETE订阅。

请记住,订阅本质上是临时资源。除非请求订阅的应用程序续订,否则给定订阅通常会在3天内自动失效。