Skip to content

Commit 28b3741

Browse files
committed
Add Chrome Device Counts
1 parent d0b07fe commit 28b3741

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

wiki/Chrome-Device-Counts.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Chrome Device Counts
2+
- [API documentation](#api-documentation)
3+
- [Definitions](#definitions)
4+
- [Display Chrome device counts](#display-chrome-device-counts)
5+
6+
## API documentation
7+
* [Chrome Management API - Count Active Devices](https://developers.google.com/chrome/management/reference/rest/v1/customers.reports/countActiveDevices)
8+
* [Chrome Management API - Count Devices per Boot Type](https://developers.google.com/chrome/management/reference/rest/v1/customers.reports/countDevicesPerBootType)
9+
* [Chrome Management API - Count Devices per Release Channel](https://developers.google.com/chrome/management/reference/rest/v1/customers.reports/countDevicesPerReleaseChannel)
10+
11+
## Notes
12+
To use these features you must add the `Chrome Management API` to your project and authorize
13+
the appropriate scope: `Chrome Management API - read only`.
14+
```
15+
gam update project
16+
gam oauth create
17+
```
18+
19+
## Definitions
20+
```
21+
<Date> ::=
22+
<Year>-<Month>-<Day> |
23+
(+|-)<Number>(d|w|y) |
24+
today
25+
26+
## Display Chrome device counts
27+
```
28+
gam show chromedevicecounts
29+
[mode active|perboottype|perreleasechannel]
30+
[date <Date>]
31+
[formatjson]
32+
```
33+
By default, `mode` is `active'.
34+
35+
By default, `date` is `today`.
36+
37+
By default, Gam displays the information as an indented list of keys and values.
38+
* `formatjson` - Display the fields in JSON format.
39+
40+
```
41+
gam print chromedevicecouints [todrive <ToDriveAttribute>*]
42+
[mode active|perboottype|perreleasechannel]
43+
[date <Date>]
44+
[formatjson [quotechar <Character>]]
45+
```
46+
By default, `mode` is `active'.
47+
48+
By default, `date` is `today`.
49+
50+
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
51+
* `formatjson` - Display the fields in JSON format.
52+
53+
By default, when writing CSV files, Gam uses a quote character of double quote `"`. The quote character is used to enclose columns that contain
54+
the quote character itself, the column delimiter (comma by default) and new-line characters. Any quote characters within the column are doubled.
55+
When using the `formatjson` option, double quotes are used extensively in the data resulting in hard to read/process output.
56+
The `quotechar <Character>` option allows you to choose an alternate quote character, single quote for instance, that makes for readable/processable output.
57+
`quotechar` defaults to `gam.cfg/csv_output_quote_char`. When uploading CSV files to Google, double quote `"` should be used.

wiki/_Sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Client Access
7575
* [Calendars - Events](Calendars-Events)
7676
* [Chrome Auto Update Expiration Counts](Chrome-AUE-Counts)
7777
* [Chrome Browser Cloud Management](Chrome-Browser-Cloud-Management)
78+
* [Chrome Device Counts](Chrome-Device-Counts)
7879
* [Chrome Device Needs Attention Counts](Chrome-Needs-Attention-Counts)
7980
* [Chrome Installed Apps](Chrome-Installed-Apps)
8081
* [Chrome Policies](Chrome-Policies)

0 commit comments

Comments
 (0)