Method: admin.directory.v1.customers.chrome.printServers.list
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Liệt kê cấu hình máy chủ in.
Yêu cầu HTTP
GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Mã nhận dạng duy nhất của tài khoản Google Workspace của khách hàng. Định dạng customers/{id}
|
Tham số truy vấn
Thông số |
pageSize |
integer
Số lượng đối tượng tối đa cần trả về (mặc định là 100 , tối đa là 100 ). Dịch vụ có thể trả về ít hơn giá trị này.
|
pageToken |
string
Mã thông báo được tạo để phân trang kết quả (nextPageToken từ lệnh gọi trước đó).
|
orgUnitId |
string
Nếu orgUnitId có trong yêu cầu, thì chỉ những máy chủ in do đơn vị tổ chức (OU) sở hữu hoặc kế thừa mới được trả về. Nếu orgUnitId của tài nguyên PrintServer khớp với orgUnitId trong yêu cầu, thì OU sở hữu máy chủ. Nếu bạn không chỉ định orgUnitId trong yêu cầu, tất cả máy chủ máy in sẽ được trả về hoặc được lọc theo.
|
filter |
string
Cụm từ tìm kiếm theo cú pháp Ngôn ngữ biểu thức thông thường. Các bộ lọc được hỗ trợ là displayName , description và uri . Ví dụ: printServer.displayName=='marketing-queue'
|
orderBy |
string
Thứ tự sắp xếp cho kết quả. Các giá trị được hỗ trợ là displayName , description hoặc createTime . Thứ tự mặc định là tăng dần, nhưng bạn có thể trả về thứ tự giảm dần bằng cách thêm "desc" vào trường orderBy . Ví dụ: orderBy=='description desc' trả về các máy chủ in được sắp xếp theo nội dung mô tả theo thứ tự giảm dần.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"printServers": [
{
object (PrintServer )
}
],
"nextPageToken": string
} |
Trường |
printServers[] |
object (PrintServer )
Danh sách máy chủ in.
|
nextPageToken |
string
Mã thông báo có thể được gửi dưới dạng pageToken trong yêu cầu truy xuất trang tiếp theo. Nếu bạn bỏ qua trường này, thì sẽ không có trang tiếp theo.
|
Phạm vi uỷ quyền
Yêu cầu một trong các phạm vi OAuth sau:
https://www.googleapis.com/auth/admin.chrome.printers
https://www.googleapis.com/auth/admin.chrome.printers.readonly
Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-24 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-24 UTC."],[],[],null,["# Method: admin.directory.v1.customers.chrome.printServers.list\n\nLists print server configurations.\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printServers`\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 [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer's Google Workspace account. Format: `customers/{id}` |\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` The maximum number of objects to return (default `100`, max `100`). The service might return fewer than this value. |\n| `pageToken` | `string` A generated token to paginate results (the `nextPageToken` from a previous call). |\n| `orgUnitId` | `string` If `orgUnitId` is present in the request, only print servers owned or inherited by the organizational unit (OU) are returned. If the [`PrintServer`](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers) resource's `orgUnitId` matches the one in the request, the OU owns the server. If `orgUnitId` is not specified in the request, all print servers are returned or filtered against. |\n| `filter` | `string` Search query in [Common Expression Language syntax](https://github.com/google/cel-spec). Supported filters are `displayName`, `description`, and `uri`. Example: `printServer.displayName=='marketing-queue'`. |\n| `orderBy` | `string` Sort order for results. Supported values are `displayName`, `description`, or `createTime`. Default order is ascending, but descending order can be returned by appending \"desc\" to the `orderBy` field. For instance, `orderBy=='description desc'` returns the print servers sorted by description in descending order. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"printServers\": [ { object (/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers#PrintServer) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `printServers[]` | `object (`[PrintServer](/workspace/admin/chrome-printer/reference/rest/v1/admin.directory.v1.customers.chrome.printServers#PrintServer)`)` List of print servers. |\n| `nextPageToken` | `string` A token that can be sent as `pageToken` in a request 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)."]]