Is there a new 'return the fields I asked for even if the value is null or blank' switch? That's not my whole problem, but it's definitely part of the problem.
I started looking at examples in the UI, and the orderNumber and willAutoRenew fields aren't displayed at all. I don't know that they ever were. The rest of them are displayed, but are empty in many cases, which is expected.
Between the time that I posted earlier today and now, some of the fields have returned, and some others are gone. When I run this command now:
gam print cros nolists allfields > output.csv
I am still missing these:
orderNumber
supportEndDate
willAutoRenew
I now have these that were missing:
annotatedLocation
ethernetMacAddress
meid
notes
I am now missing these that I had yesterday:
autoUpdateExpiration
lastKnownNetwork
platformVersion
systemRamTotal
But if I query for a specific device, like this:
gam print cros query <serialnumber> nolists allfields
I might get a value for lastKnownNetwork, and for some other serials I don't. When I query for an individual device this way, I notice that it only returns fields for which there exist values. If this particular device doesn't have a value for the Location in the UI, I don't get a field output from GAM for annotatedLocation. But when I dump the whole device list (typical), I do get that field (I wasn't getting it yesterday), and it's empty for most devices, which is appropriate.
So one issue is that it apparently doesn't output a field at all for one specific device, if that field for that device has no value. That's the case for annotatedLocation. Most of my devices have no value there, but it has always in the past, and is once again, outputting that field regardless when I dump the whole device list. But if I query one device, and that device doesn't have a value for annotatedLocation, it doesn't return the field at all. I would expect it to return the field with a blank value.
I'm also getting a JSON formatted value for the lastKnownNetwork field (if anything), whereas I'm pretty sure that was just a plain text value in the past. Example:
[{'ipAddress': '192.168.1.59', 'wanIpAddress': '2603:6080:4904:498b:24a2:9910:f659:ad90'}]
The columns not all being returned consistently, and the the JSON format of the lastKnownNetwork field are both problems that I'll have to resolve.
Thanks,
Tommy