Reports API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Reports API 可讓您產生
瞭解受管理的 ChromeOS 裝置 / Chrome 瀏覽器部署作業。
API 方法快速總覽
網址為 https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER
如需要求與回應範例,請參閱程式碼範例。
管理員權限
Reports API 會遵循管理員角色委派功能。
根據管理員要產生的報告,需要具備不同的管理員權限。
方法 |
需要管理員權限 |
countChromeBrowsersNeedingAttention
|
「服務 ->Chrome 管理服務 ->查看 Chrome Insights 報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome Insights 報告」 |
countChromeDevicesReachingAutoExpirationDate
|
「服務 ->Chrome 管理服務 ->查看 Chrome Insights 報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome Insights 報告」 |
countChromeDevicesThatNeedAttention
|
「服務 ->Chrome 管理服務 ->查看 Chrome Insights 報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome Insights 報告」 |
countChromeHardwareFleetDevices
|
「服務 ->Chrome 管理服務 ->查看 Chrome Insights 報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome Insights 報告」 |
countChromeVersions
|
「服務 ->Chrome 管理服務 ->查看 Chrome 版本報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome 版本報告」 |
countInstalledApps
|
「服務 ->Chrome 管理服務 ->查看擴充功能清單報表
或「服務 ->」ChromeOS ->設定 ->查看擴充功能清單報表 |
countPrintJobsByPrinter
|
「服務 ->Chrome 管理服務 ->查看 Chrome 印表機報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome 印表機報告」 |
countPrintJobsByUser
|
「服務 ->Chrome 管理服務 ->查看 Chrome 印表機報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome 印表機報告」 |
enumeratePrintJobs
|
「服務 ->Chrome 管理服務 ->查看 Chrome 印表機報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome 印表機報告」 |
findInstalledAppDevices
|
「服務 ->Chrome 管理服務 ->查看擴充功能清單報表
或「服務 ->」ChromeOS ->設定 ->查看擴充功能清單報表 |
countChromeCrashEvents
|
「服務 ->Chrome 管理服務 ->查看 Chrome 當機報告」
或「服務 ->」ChromeOS ->設定 ->查看 Chrome 當機報告」 |
如要管理管理員角色與權限,請前往「管理控制台」->管理員角色」。
API 範圍
Reports API 需要下列 OAuth 範圍:
https://www.googleapis.com/auth/chrome.management.reports.readonly
詳情請參閱驗證總覽一文。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThe Reports API lets you create reports to get insights on your managed ChromeOS devices and Chrome Browsers.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the API to count devices, browsers, apps, and more, as well as view print job summaries and crash events.\u003c/p\u003e\n"],["\u003cp\u003eDifferent API methods require specific admin privileges to access the data.\u003c/p\u003e\n"],["\u003cp\u003eTo use the API, you need the \u003ccode\u003ehttps://www.googleapis.com/auth/chrome.management.reports.readonly\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Reports API\n\nThe Reports API enables you to generate reports that give you aggregate\ninformation on your managed ChromeOS device / Chrome Browser deployment.\n\nQuick overview of API methods\n-----------------------------\n\nURLs are relative to `https://chromemanagement.googleapis.com/v1/customers/`*$CUSTOMER*\n\n| Description | Relative URL | Http method | Allowed request parameters |\n|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|--------------------------------------------------------------------|\n| Count Chrome browsers needing attention in your domain | [/reports:countChromeBrowsersNeedingAttention](/chrome/management/reference/rest/v1/customers.reports/countChromeBrowsersNeedingAttention) | GET | *Optional*: orgUnitId |\n| Count Chrome devices reaching auto expiration date in your domain | [/reports:countChromeDevicesReachingAutoExpirationDate](/chrome/management/reference/rest/v1/customers.reports/countChromeDevicesReachingAutoExpirationDate) | GET | *Optional*: orgUnitId, minAueDate, maxAueDate |\n| Count Chrome devices needing attention in your domain | [/reports:countChromeDevicesThatNeedAttention](/chrome/management/reference/rest/v1/customers.reports/countChromeDevicesThatNeedAttention) | GET | *Optional*: orgUnitId, readMask |\n| Count Chrome hardware fleet devices in your domain | [/reports:countChromeHardwareFleetDevices](/chrome/management/reference/rest/v1/customers.reports/countChromeHardwareFleetDevices) | GET | *Optional*: orgUnitId, readMask |\n| Count versions of Chrome deployed to devices in your domain | [/reports:countChromeVersions](/chrome/management/reference/rest/v1/customers.reports/countChromeVersions) | GET | *Optional*: orgUnitId, filter, pageSize, pageToken |\n| Count the reported apps installed across your devices and browsers | [/reports:countInstalledApps](/chrome/management/reference/rest/v1/customers.reports/countInstalledApps) | GET | *Optional*: orgUnitId, filter, pageSize, pageToken, orderBy |\n| Get a summary of printing done by each printer in your domain | [/reports:countPrintJobsByPrinter](/chrome/management/reference/rest/v1/customers.reports/countPrintJobsByPrinter) | GET | *Optional*: printerOrgUnitId, filter, pageSize, pageToken, orderBy |\n| Get a summary of printing done by each user in your domain | [/reports:countPrintJobsByUser](/chrome/management/reference/rest/v1/customers.reports/countPrintJobsByUser) | GET | *Optional*: printerOrgUnitId, filter, pageSize, pageToken, orderBy |\n| Get a detailed report of print jobs in your domain | [/reports:enumeratePrintJobs](/chrome/management/reference/rest/v1/customers.reports/enumeratePrintJobs) | GET | *Optional*: printerOrgUnitId, filter, pageSize, pageToken, orderBy |\n| List the devices on which a particular app is installed | [/reports:findInstalledAppDevices](/chrome/management/reference/rest/v1/customers.reports/findInstalledAppDevices) | GET | *Optional*: orgUnitId, filter, pageSize, pageToken, orderBy |\n| Get a count of Chrome crash events | [/reports:countChromeCrashEvents](/chrome/management/reference/rest/v1/customers.reports/countChromeCrashEvents) | GET | *Optional*: orgUnitId, filter, orderBy |\n\nSee [code samples](/chrome/management/guides/samples_reportsapi) for example requests and responses.\n\nAdmin Privileges\n----------------\n\nReports API respects admin role delegation.\nDepending on which reports the admin wants to generate, different admin privileges are required.\n\n| Method | Admin privileges required |\n|----------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| countChromeBrowsersNeedingAttention | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Insights Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Insights Report\" |\n| countChromeDevicesReachingAutoExpirationDate | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Insights Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Insights Report\" |\n| countChromeDevicesThatNeedAttention | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Insights Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Insights Report\" |\n| countChromeHardwareFleetDevices | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Insights Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Insights Report\" |\n| countChromeVersions | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Versions Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Versions Report\" |\n| countInstalledApps | \"Services -\\\u003e Chrome Management -\\\u003e View Extensions List Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Extensions List Report\" |\n| countPrintJobsByPrinter | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Printers Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Printers Report\" |\n| countPrintJobsByUser | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Printers Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Printers Report\" |\n| enumeratePrintJobs | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Printers Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Printers Report\" |\n| findInstalledAppDevices | \"Services -\\\u003e Chrome Management -\\\u003e View Extensions List Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Extensions List Report\" |\n| countChromeCrashEvents | \"Services -\\\u003e Chrome Management -\\\u003e View Chrome Crash Report\" or \"Services -\\\u003e ChromeOS -\\\u003e Settings -\\\u003e View Chrome Crash Report\" |\n\nTo manage admin roles and privileges visit \"Admin Console -\\\u003e Admin Roles\".\n| **Note:** admin roles can be assigned directly to a Service Account.\n\nAPI scopes\n----------\n\nReports API requires the following OAuth scope: \n\n https://www.googleapis.com/auth/chrome.management.reports.readonly\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]