Method: admin.directory.v1.customers.chrome.printers.list
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงรายการการกำหนดค่าเครื่องพิมพ์
คำขอ HTTP
GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
parent |
string
ต้องระบุ ชื่อลูกค้าที่เป็นเจ้าของเครื่องพิมพ์ชุดนี้ รูปแบบ: customers/{customer_id}
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
pageSize |
integer
จำนวนสูงสุดของออบเจ็กต์ที่จะแสดง บริการอาจแสดงผลน้อยกว่าค่านี้
|
pageToken |
string
โทเค็นหน้าเว็บที่ได้รับจากการเรียกใช้ก่อนหน้านี้
|
orgUnitId |
string
หน่วยขององค์กรที่ต้องการแสดงรายการเครื่องพิมพ์ เมื่อไม่มี org_unit ในคำขอ ระบบจะแสดงผล (หรือกรอง) เครื่องพิมพ์ทั้งหมดของลูกค้า เมื่อ org_unit อยู่ในคำขอ ระบบจะแสดงเฉพาะเครื่องพิมพ์ที่ใช้ได้กับ OU นี้ (เป็นเจ้าของหรือรับช่วงมา) คุณดูได้ว่าเครื่องพิมพ์เป็นของผู้ใช้ใน OU นี้หรือรับช่วงมาโดยดูที่ Printer.org_unit_id
|
filter |
string
คําค้นหา ไวยากรณ์การค้นหาจะแชร์ระหว่าง API นี้กับหน้าเครื่องพิมพ์ในคอนโซลผู้ดูแลระบบ
|
orderBy |
string
ลําดับการจัดเรียงผลลัพธ์ ต้องเป็น displayName, description, makeAndModel หรือ createTime อย่างใดอย่างหนึ่ง ลำดับเริ่มต้นจะเรียงจากน้อยไปมาก แต่ระบบจะแสดงผลตามลำดับจากมากไปน้อยได้โดยการเพิ่ม "desc" ต่อท้ายช่อง orderBy เช่น "description desc" จะแสดงเครื่องพิมพ์ที่จัดเรียงตามคําอธิบายจากมากไปน้อย
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
การตอบกลับสำหรับการแสดงข้อมูลเครื่องพิมพ์
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"printers": [
{
object (Printer )
}
],
"nextPageToken": string
} |
ช่อง |
printers[] |
object (Printer )
รายการเครื่องพิมพ์ หากระบุ orgUnitId ในคำขอ ระบบจะแสดงเฉพาะเครื่องพิมพ์ที่มองเห็นได้สำหรับ OU นี้ หากไม่ได้ระบุ orgUnitId ในคำขอ ระบบจะแสดงเครื่องพิมพ์ทั้งหมด
|
nextPageToken |
string
โทเค็น ซึ่งสามารถส่งเป็น pageToken เพื่อเรียกข้อมูลหน้าถัดไป หากละเว้นช่องนี้ จะไม่มีหน้าถัดไป
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/admin.chrome.printers.readonly
ดูข้อมูลเพิ่มเติมได้ที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-24 UTC
[null,null,["อัปเดตล่าสุด 2025-07-24 UTC"],[],[],null,["# Method: admin.directory.v1.customers.chrome.printers.list\n\nList printers configs.\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the customer who owns this collection of printers. Format: customers/{customer_id} |\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of objects to return. The service may return fewer than this value. |\n| `pageToken` | `string` A page token, received from a previous call. |\n| `orgUnitId` | `string` Organization Unit that we want to list the printers for. When org_unit is not present in the request then all printers of the customer are returned (or filtered). When org_unit is present in the request then only printers available to this OU will be returned (owned or inherited). You may see if printer is owned or inherited for this OU by looking at Printer.org_unit_id. |\n| `filter` | `string` Search query. Search syntax is shared between this api and Admin Console printers pages. |\n| `orderBy` | `string` The order to sort results by. Must be one of displayName, description, makeAndModel, or createTime. Default order is ascending, but descending order can be returned by appending \"desc\" to the orderBy field. For instance, \"description desc\" will return the printers sorted by description in descending order. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse for listing printers.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printers\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printers[]` | `object (`[Printer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printers#Printer)`)` List of printers. If `orgUnitId` was given in the request, then only printers visible for this OU will be returned. If `orgUnitId` was not given in the request, then all printers will be returned. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/admin.chrome.printers`\n- `\n https://www.googleapis.com/auth/admin.chrome.printers.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]