0

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."

3
  • Can you share the endpoint you're using? I believe it's Method: devices.list, but I'd like to be sure. Commented Apr 3, 2025 at 14:28
  • @Saddles I'm using developers.google.com/workspace/admin/directory/reference/rest/… Commented 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? Commented Apr 4, 2025 at 20:34

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.