C# 如何在Microsoft Graph中检索现有订阅?
这是我正在尝试的电话:C# 如何在Microsoft Graph中检索现有订阅?,c#,azure-active-directory,microsoft-graph-api,C#,Azure Active Directory,Microsoft Graph Api,这是我正在尝试的电话: https://graph.microsoft.com/v1.0/subscriptions 这将导致以下错误: { "error": { "code": "QueryNotSupported", "message": "The query is not supported.", "innerError": { "request-id": "8b2f2137-51ed-498d-9fbb-b
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();
无法检索所有现有文件的列表。您需要知道给定订阅的
订阅ID
,然后才能获取
、补丁
、或删除
订阅
请记住,订阅本质上是临时资源。除非请求订阅的应用程序将其续订,否则给定订阅通常会在3天内自动过期 感谢@Marc LaFleur的快速回复