findDevicesByOwner
Lists devices claimed by the specified customer or customers.
Method signature
public FindDevicesResponse findDevicesByOwner(FindDevicesByOwnerRequest request) throws CommonException;
FindDevicesByOwnerRequest
Property name |
Value |
Required |
Description |
customers |
object( CompanyReference ) |
Yes |
List of up to 100 customers. |
pageSize |
int |
No |
The page size, up to 100 . If greater than 100 or null , 100 is used. |
pageToken |
string |
No |
The page token. If empty, the first page is returned. |
vendorParams |
map |
No |
Extra fields, vendor specified key-value pair. |
FindDevicesResponse
Property name |
Value |
Description |
devices |
object( Device ) |
The list of devices uploaded by the reseller. Empty if there is no match. |
totalCount |
int |
The total count of devices matching the request. |
nextPageToken |
strong |
The next page token. Empty for the last page. |
vendorParams |
map |
Optional. Extra fields, vendor specified key-value pair. |
Error behaviour
If an error occurs, the library throws a CommonException
containing one of the
following error codes:
Error code |
AUTHORIZATION_FAILED |
INTERNAL_SERVER_ERROR |
INVALID_PAGE_TOKEN |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-07 UTC.
[null,null,["Last updated 2024-08-07 UTC."],[[["This API method `findDevicesByOwner` retrieves a list of devices associated with specified customers."],["The request requires a list of up to 100 `customers` (CompanyReference objects), and supports pagination via `pageSize` and `pageToken`."],["The response includes a list of `devices`, the `totalCount` of matching devices, and a `nextPageToken` for subsequent pages."],["Optional parameters such as `vendorParams` allow for extra, vendor-specific data to be sent and received."],["The API method may throw a `CommonException` with an `AUTHORIZATION_FAILED`, `INTERNAL_SERVER_ERROR`, or `INVALID_PAGE_TOKEN` error code if an error is encountered."]]],["The `findDevicesByOwner` method retrieves a list of devices associated with specified customers. It requires a list of up to 100 customer references. Optional parameters include `pageSize` (up to 100 devices per page), `pageToken` for pagination, and `vendorParams`. The response includes a list of devices, `totalCount`, `nextPageToken`, and optional `vendorParams`. The method can throw a `CommonException` with `AUTHORIZATION_FAILED`, `INTERNAL_SERVER_ERROR`, or `INVALID_PAGE_TOKEN` errors.\n"]]