Files
GoogleDriveManagement/wiki/Chrome-Device-Counts.md
2025-11-07 08:45:35 -08:00

2.4 KiB

Chrome Device Counts

API documentation

Notes

To use these features you must add the Chrome Management API to your project and authorize the appropriate scope: Chrome Management API - read only.

gam update project
gam oauth create

Definitions

<Date> ::=
        <Year>-<Month>-<Day> |
        (+|-)<Number>(d|w|y) |
        today

## Display Chrome device counts

gam show chromedevicecounts [mode active|perboottype|perreleasechannel] [date ] [formatjson]

By default, `mode` is `active'.

By default, `date` is `today`.

By default, Gam displays the information as an indented list of keys and values.
* `formatjson` - Display the fields in JSON format.

gam print chromedevicecouints [todrive *] [mode active|perboottype|perreleasechannel] [date ] [formatjson [quotechar ]]

By default, `mode` is `active'.

By default, `date` is `today`.

By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
* `formatjson` - Display the fields in JSON format.

By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain
the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled.
When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output.
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.