Method: customers.reports.countPrintJobsByPrinter
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
รับข้อมูลสรุปการพิมพ์ของเครื่องพิมพ์แต่ละเครื่อง
คำขอ HTTP
GET https://chromemanagement.googleapis.com/v1/{customer=customers/*}/reports:countPrintJobsByPrinter
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
customer |
string
ต้องระบุ รหัสลูกค้าที่ขึ้นต้นด้วย "customers/" หรือ "customers/my_customer" ให้ใช้ลูกค้าที่เชื่อมโยงกับบัญชีที่ส่งคำขอ
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
printerOrgUnitId |
string
รหัสหน่วยขององค์กรสำหรับเครื่องพิมพ์ หากระบุไว้ ระบบจะส่งเฉพาะข้อมูลของเครื่องพิมพ์จากหน่วยขององค์กรที่ระบุเท่านั้น หากละไว้ ระบบจะแสดงผลข้อมูลของเครื่องพิมพ์จากหน่วยขององค์กรทั้งหมด
|
pageSize |
integer
จำนวนผลลัพธ์สูงสุดที่จะแสดง ค่าสูงสุดและค่าเริ่มต้นคือ 100
|
pageToken |
string
โทเค็นสำหรับระบุหน้าของการตอบกลับที่จะแสดงผล
|
filter |
string
สตริงการค้นหาเพื่อกรองผลลัพธ์ ฟิลด์ที่คั่นด้วย AND ในไวยากรณ์ EBNF หมายเหตุ: ตัวกรองนี้ไม่รองรับการดำเนินการ "OR" หมายเหตุ: ตัวกรองนี้รองรับเฉพาะตัวเปรียบเทียบ >= และ <= เท่านั้น ช่องตัวกรองที่รองรับ:
|
orderBy |
string
ฟิลด์ที่ใช้เรียงลำดับผลลัพธ์ หากไม่ระบุ ผลลัพธ์จะเรียงลำดับจากน้อยไปหามากของ "เครื่องพิมพ์" ด้วย ฟิลด์ orderBy ที่รองรับมีดังนี้
- เครื่องพิมพ์
- jobCount
- deviceCount
- userCount
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
คำตอบที่มีรายงานการพิมพ์สรุปสำหรับเครื่องพิมพ์แต่ละเครื่องจากหน่วยขององค์กรที่ระบุในช่วงเวลาที่ขอ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"printerReports": [
{
object (PrinterReport )
}
],
"nextPageToken": string,
"totalSize": string
} |
ช่อง |
printerReports[] |
object (PrinterReport )
รายการคำขอจับคู่ PrinterReports
|
nextPageToken |
string
โทเค็นการใส่เลขหน้าเพื่อขอหน้าถัดไป
|
totalSize |
string (int64 format)
จำนวนรวมของคำขอจับคู่เครื่องพิมพ์
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/chrome.management.reports.readonly
PrinterReport
รายงานสำหรับ reports.countPrintJobsByPrinter มีสถิติการใช้เครื่องพิมพ์ ประกอบด้วยจำนวนงานพิมพ์ทั้งหมดที่เริ่มต้นจากเครื่องพิมพ์นี้ จำนวนผู้ใช้ และจำนวนอุปกรณ์ที่เริ่มต้นงานพิมพ์อย่างน้อย 1 งานด้วยเครื่องพิมพ์นี้
การแสดง JSON |
{
"printerId": string,
"printer": string,
"printerModel": string,
"jobCount": string,
"userCount": string,
"deviceCount": string
} |
ช่อง |
printerId |
string
รหัส API เครื่องพิมพ์
|
printer |
string
ชื่อเครื่องพิมพ์
|
printerModel |
string
รุ่นเครื่องพิมพ์
|
jobCount |
string (int64 format)
จำนวนงานพิมพ์ที่ส่งไปยังเครื่องพิมพ์
|
userCount |
string (int64 format)
จำนวนผู้ใช้ที่ส่งงานพิมพ์ไปยังเครื่องพิมพ์
|
deviceCount |
string (int64 format)
จำนวนอุปกรณ์ Chrome ที่ใช้ในการส่งงานพิมพ์ไปยังเครื่องพิมพ์ที่ระบุ
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eGet a summary of printing activity by each printer, including the number of jobs, users, and devices.\u003c/p\u003e\n"],["\u003cp\u003eFilter results by organizational unit and time range using query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of PrinterReports, each containing printer details and usage statistics.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/chrome.management.reports.readonly\u003c/code\u003e authorization scope for access.\u003c/p\u003e\n"]]],[],null,["# Method: customers.reports.countPrintJobsByPrinter\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.CountPrintJobsByPrinterResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [PrinterReport](#PrinterReport)\n - [JSON representation](#PrinterReport.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nGet a summary of printing done by each printer.\n\n### HTTP request\n\n`GET https://chromemanagement.googleapis.com/v1/{customer=customers/*}/reports:countPrintJobsByPrinter`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `customer` | `string` Required. Customer ID prefixed with \"customers/\" or \"customers/my_customer\" to use the customer associated to the account making the request. |\n\n### Query parameters\n\n| Parameters ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printerOrgUnitId` | `string` The ID of the organizational unit for printers. If specified, only data for printers from the specified organizational unit will be returned. If omitted, data for printers from all organizational units will be returned. |\n| `pageSize` | `integer` Maximum number of results to return. Maximum and default are 100. |\n| `pageToken` | `string` Token to specify the page of the response to be returned. |\n| `filter` | `string` Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Note: Only \\\u003e= and \\\u003c= comparators are supported in this filter. Supported filter fields: - completeTime |\n| `orderBy` | `string` Field used to order results. If omitted, results will be ordered in ascending order of the 'printer' field. Supported orderBy fields: - printer - jobCount - deviceCount - userCount |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse containing a summary printing report for each printer from the specified organizational unit for the requested time interval.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printerReports\": [ { object (/chrome/management/reference/rest/v1/customers.reports/countPrintJobsByPrinter#PrinterReport) } ], \"nextPageToken\": string, \"totalSize\": string } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printerReports[]` | `object (`[PrinterReport](/chrome/management/reference/rest/v1/customers.reports/countPrintJobsByPrinter#PrinterReport)`)` List of PrinterReports matching request. |\n| `nextPageToken` | `string` Pagination token for requesting the next page. |\n| `totalSize` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Total number of printers matching request. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chrome.management.reports.readonly`\n\nPrinterReport\n-------------\n\nReport for reports.countPrintJobsByPrinter, contains statistics on printer usage. Contains the total number of print jobs initiated with this printer, the number of users and the number of devices that have initiated at least one print job with this printer.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printerId\": string, \"printer\": string, \"printerModel\": string, \"jobCount\": string, \"userCount\": string, \"deviceCount\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printerId` | `string` Printer API ID. |\n| `printer` | `string` Printer name. |\n| `printerModel` | `string` Printer model. |\n| `jobCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Number of print jobs sent to the printer. |\n| `userCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Number of users that have sent print jobs to the printer. |\n| `deviceCount` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Number of chrome devices that have been used to send print jobs to the specified printer. |"]]