2015-07-09 33 views
0

我能夠通過有效的響應和驗證令牌成功調用Office 365管理活動API的/subscriptions/start?contentType=Audit.SharePoint API。 當我試着打電話/subscriptions/content?contentType=Audit.SharePoint 我得到下面的異常然而:無法找到租戶的存儲空間

[ApplicationException: Failed to locate storage for tenant.] 
    Microsoft.O365.EcoSystem.TableQueueCommon.Locator.EcoSystemSqlDbAccessor.GetStorageEndpoint(String tenantId, Category category, StorageAccountType contentType, Boolean forceToRefreshStorageSettings, Boolean isTestHookEnabled) in e:\chicago\sources\Dev\Compliance\src\EcoSystem\DataFeedInfra\TableQueueCommon\BlobStorageLocator\EcoSystemSqlDbAccessor.cs:212 
    Microsoft.O365.EcoSystem.TableQueueCommon.Locator.EcoSystemSqlDbAccessor.GetStorageEndpoint(String tenantId, Category category, StorageAccountType contentType, Boolean isTestHookEnabled) in e:\chicago\sources\Dev\Compliance\src\EcoSystem\DataFeedInfra\TableQueueCommon\BlobStorageLocator\EcoSystemSqlDbAccessor.cs:148 
    Microsoft.O365.EcoSystem.DataFeed.ApiUtility.EndRequest(String Message, Exception ee) in e:\chicago\sources\Dev\Compliance\src\EcoSystem\DataFeedInfra\PartnerSubscription\SubscriptionServiceRole\Common\Common.cs:212 
    Microsoft.O365.EcoSystem.DataFeed.GlobalExceptionLogger.Log(ExceptionLoggerContext context) in e:\chicago\sources\Dev\Compliance\src\EcoSystem\DataFeedInfra\PartnerSubscription\SubscriptionServiceRole\Common\Exceptions.cs:79 
    System.Web.Http.ExceptionHandling.ExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) +15 
    System.Web.Http.ExceptionHandling.CompositeExceptionLogger.LogAsync(ExceptionLoggerContext context, CancellationToken cancellationToken) +137 
    System.Web.Http.<SendAsync>d__0.MoveNext() +1075 
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +144 
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +84 
    System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +49 
    System.Web.Http.WebHost.<ProcessRequestAsyncCore>d__0.MoveNext() +594 
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +144 
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +84 
    System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +98 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288 

能有人請幫我這嗎?

+0

我需要這種幫助。你是如何訂閱的?你能告訴我你的要求嗎? –

+0

這裏是我的問題>>> http://stackoverflow.com/questions/32583795/office365-unauthorized-response-when-accessing-the-management-activity-api –

回答

1

在此API的有限預覽期內,所有訂閱都會在禁用狀態下創建,這意味着無法檢索內容。/content操作應該返回一個錯誤,指出當前沒有啓用訂閱。我們會解決這個問題。

感謝您儘早開始使用API​​!如果你還沒有,可以在下面的鏈接註冊預覽。目前我們正在限制參與,因此註冊並不能保證對內容的訪問,但正在努力盡快開展更廣泛的預覽。

乾杯, 湯姆

http://dev.office.com/programs/managementactivityapi