I'm trying to filter the fields that I get back from the chromeOsDevices api when listing devices. I think this used to work.
GET {{baseUrl}}admin/directory/v1/customer/my_customer/devices/chromeos?maxResults=10&fields=nextPageToken,chromeosdevices(deviceId,serialNumber,macAddress,status,model,osVersion,activeTimeRanges,lastSync,lastEnrollmentTime,manufactureDate,autoUpdateExpiration,bootMode,recentUsers,orgUnitId,orgUnitPath)
But now, I always get ALL the fields back. The &fields=xxx "filter" doesn't work anymore.
Accoding to the documentation (https://developers.google.com/workspace/admin/directory/v1/parameters)
"Query parameters that apply to all Directory API operations are documented at System Parameters."
-
Can you share the endpoint you're using? I believe it's Method: devices.list, but I'd like to be sure.Saddles– Saddles2025年04月03日 14:28:45 +00:00Commented Apr 3, 2025 at 14:28
-
@Saddles I'm using developers.google.com/workspace/admin/directory/reference/rest/…Jan Kretschmer– Jan Kretschmer2025年04月04日 05:14:44 +00:00Commented Apr 4, 2025 at 5:14
-
I'm unsure if there was a filter parameter in the API before, but I don't see one in the documentation. What are you trying to filter out?Saddles– Saddles2025年04月04日 20:34:47 +00:00Commented Apr 4, 2025 at 20:34