【问题标题】:Why are my requests to Office365 management API getting Throttled为什么我对 Office365 管理 API 的请求受到限制
【发布时间】:2017-12-20 04:55:23
【问题描述】:

我正在使用 office365 管理 API 来收集日志。我向以下 url 发出 get 请求以获取内容 blob 列表。

https://manage.office.com/api/v1.0/xxxx.onmicrosoft.com/activity/feed/subscriptions/content?contentType=Audit.Exchange&PublisherIdentifier=640ababd-5eea-468d-8ffd-27ade0c4bdce&startTime=2017-12-05T10:24:23.520000Z&endTime=2017-12-05T13:24:23.520000Z

获得内容 blob 列表后,我根据以下收到的 ContentURI 发出获取请求

https://manage.office.com/api/v1.0/640ababd-5eea-468d-8ffd-27ade0c4bdce/activity/feed/audit/20171205104027168011446$20171205104027168011446$audit_exchange$Audit_Exchange

有时我会收到带有以下错误消息的 403 客户端错误

'{"error":{"code":"AF429","message":"Too many requests. Method=GetBlob, PublisherId=00000000-0000-0000-0000-000000000000"}}'

当我在原始请求中明确发送 PublisherIdentifier 信息以获取内容 blob 列表时,为什么我的请求被视为全局配额的一部分?

【问题讨论】:

    标签: office365


    【解决方案1】:

    我遇到了类似的问题。似乎 API 不接受将 PublisherId 添加到单个获取内容调用中,从而导致限制。

    我正在与 Microsoft 合作,看看是否有解决方案,并会通知您。

    How can I add a PublisherId to a GetBlob call to the Office365 Rest API to avoid throttling?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-09
      • 1970-01-01
      • 2020-09-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-03
      • 1970-01-01
      相关资源
      最近更新 更多