【问题标题】:How to get the size of each SharePoint site using Microsoft Graph or SharePoint API?如何使用 Microsoft Graph 或 SharePoint API 获取每个 SharePoint 网站的大小?
【发布时间】:2020-06-11 20:21:53
【问题描述】:

我尝试将图形 API 用于报告 https://docs.microsoft.com/en-us/graph/api/reportroot-getsharepointsiteusagestorage?view=graph-rest-1.0 这将返回所需的输出,但以 CSV 格式。

GET /reports/getSharePointSiteUsageStorage(period='{period_value}')

CSV 中的输出字段是 Report Refresh Date,Site Id,Site URL,Owner Display Name,Is Deleted,Last Activity Date,File Count,Active File Count,Page View Count,Visited Page Count,Storage Used (Byte),Storage Allocated (Byte),Root Web Template,Owner Principal Name,Report Period

我只关心 Site Id、Storage Used (Byte)、Storage Allocated (Byte) 字段。有没有办法将此信息作为 JSON 输出获取?或者有没有办法使用其他 API 获取这些信息?

【问题讨论】:

    标签: sharepoint microsoft-graph-api


    【解决方案1】:

    您可以通过以下方式获取网站使用信息:

    https://<siteUrl>/_api/site/usage
    

    参考:https://sharepoint.stackexchange.com/questions/91599/retrieve-site-collection-quota-and-used-storage-from-rest-or-jsom

    【讨论】:

      猜你喜欢
      • 2018-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多