取得每個設定時間範圍內的使用中裝置數。
HTTP 要求
GET https://chromemanagement.googleapis.com/v1/{customer=customers/*}/reports:countActiveDevices
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
customer |
必要欄位。以「customers/C」或「customers/my_customer」為前置字串的模糊處理客戶 ID。 |
查詢參數
| 參數 | |
|---|---|
date |
代表系統開始計算使用中裝置的日期 (以世界標準時間為準)。時間戳記採用 ISO 8601 格式, |
要求主體
要求主體必須為空白。
回應主體
包含使用中裝置數的回應。
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 |
|---|
{ "sevenDaysCount": string, "thirtyDaysCount": string } |
| 欄位 | |
|---|---|
sevenDaysCount |
要求中指定日期前 7 天內的使用中裝置數。 |
thirtyDaysCount |
要求中指定日期前 30 天內的使用中裝置數。 |
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/chrome.management.reports.readonly