【问题标题】:How to get total and current numbers of Google Workspace Business Starter licenses using customerUsageReports.get如何使用 customerUsageReports.get 获取 Google Workspace Business Starter 许可的总数和当前数量
【发布时间】:2021-03-11 03:02:11
【问题描述】:

请告诉我如何使用 customerUsageReports.get (https://developers.google.com/admin-sdk/reports/reference/rest/v1/customerUsageReports/get) 获取 Google Workspace Business Starter 许可的总数和当前数量。当我请求帐户:gsuite_unlimited_total_licenses 或任何类型的许可证 (https://developers.google.com/admin-sdk/reports/v1/appendix/usage/customer/accounts) 时,我总是得到一个空报告。

【问题讨论】:

    标签: google-apis-explorer


    【解决方案1】:

    你是一个传奇的伙伴! 您没有收到回复的原因是因为usage report 很大并且需要时间来生成,因此大约落后了 2 天。

    很简单,使用“日期”参数至少要在您运行报告之日起 2 天后。

    GET https://admin.googleapis.com/admin/reports/v1/usage/dates/{date}
    

    那就是下面的格式

    Represents the date the usage occurred. The timestamp is in the ISO 8601 format, yyyy-mm-dd. 
    We recommend you use your account's time zone for this.
    

    参考:https://developers.google.com/admin-sdk/reports/reference/rest/v1/customerUsageReports/get

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-07-23
      • 2020-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多