# Chrome Management API . customers . reports

## Instance Methods

Close httplib2 connections.

Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).

Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947

Generate report of installed Chrome versions.

Retrieves the next page of results.

Generate report of app installations.

Retrieves the next page of results.

Generate report of devices that have a specified app installed.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`countChromeDevicesReachingAutoExpirationDate(customer, maxAueDate=None, minAueDate=None, orgUnitId=None, x__xgafv=None)`

    Generate report of the number of devices expiring in each month of the selected time frame. Devices are grouped by auto update expiration date and model. Further information can be found [here](https://support.google.com/chrome/a/answer/10564947).

    Args:
      customer: string, Required. The customer ID or "my_customer" prefixed with "customers/". (required)
      maxAueDate: string, Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or earlier than the maximum date.
      minAueDate: string, Optional. Maximum expiration date in format yyyy-mm-dd in UTC timezone. If included returns all devices that have already expired and devices with auto expiration date equal to or later than the minimum date.
      orgUnitId: string, Optional. The organizational unit ID, if omitted, will return data for all organizational units.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response containing a list of devices expiring in each month of a selected time frame. Counts are grouped by model and Auto Update Expiration date.
      "deviceAueCountReports": [ # The list of reports sorted by auto update expiration date in ascending order.
        { # Report for CountChromeDevicesPerAueDateResponse, contains the count of devices of a specific model and auto update expiration range.
          "aueMonth": "A String", # Enum value of month corresponding to the auto update expiration date in UTC time zone. If the device is already expired, this field is empty.
          "aueYear": "A String", # Int value of year corresponding to the Auto Update Expiration date in UTC time zone. If the device is already expired, this field is empty.
          "count": "A String", # Count of devices of this model.
          "expired": True or False, # Boolean value for whether or not the device has already expired.
          "model": "A String", # Public model name of the devices.
        },
      ],
    }

`countChromeDevicesThatNeedAttention(customer, orgUnitId=None, readMask=None, x__xgafv=None)`

    Counts of ChromeOS devices that have not synced policies or have lacked user activity in the past 28 days, are out of date, or are not complaint. Further information can be found here https://support.google.com/chrome/a/answer/10564947

    Args:
      customer: string, Required. The customer ID or "my_customer" prefixed with "customers/". (required)
      orgUnitId: string, Optional. The ID of the organizational unit. If omitted, all data will be returned.
      readMask: string, Required. Mask of the fields that should be populated in the returned report.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response containing counts for devices that need attention.
      "noRecentPolicySyncCount": "A String", # Number of ChromeOS devices have not synced policies in the past 28 days.
      "noRecentUserActivityCount": "A String", # Number of ChromeOS devices that have not seen any user activity in the past 28 days.
      "osVersionNotCompliantCount": "A String", # Number of devices whose OS version is not compliant.
      "pendingUpdate": "A String", # Number of devices that are pending an OS update.
      "unsupportedPolicyCount": "A String", # Number of devices that are unable to apply a policy due to an OS version mismatch.
    }

`countChromeVersions(customer, filter=None, orgUnitId=None, pageSize=None, pageToken=None, x__xgafv=None)`

    Generate report of installed Chrome versions.

    Args:
      customer: string, Required. Customer id or "my_customer" to use the customer associated to the account making the request. (required)
      filter: string, Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
      orgUnitId: string, The ID of the organizational unit.
      pageSize: integer, Maximum number of results to return. Maximum and default are 100.
      pageToken: string, Token to specify the page of the request to be returned.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response containing requested browser versions details and counts.
      "browserVersions": [ # List of all browser versions and their install counts.
        { # Describes a browser version and its install count.
          "channel": "A String", # Output only. The release channel of the installed browser.
          "count": "A String", # Output only. Count grouped by device_system and major version
          "deviceOsVersion": "A String", # Output only. Version of the system-specified operating system.
          "system": "A String", # Output only. The device operating system.
          "version": "A String", # Output only. The full version of the installed browser.
        },
      ],
      "nextPageToken": "A String", # Token to specify the next page of the request.
      "totalSize": 42, # Total number browser versions matching request.
    }

`countChromeVersions_next()`

    Retrieves the next page of results.

            Args:
              previous_request: The request for the previous page. (required)
              previous_response: The response from the request for the previous page. (required)

            Returns:
              A request object that you can call 'execute()' on to request the next
              page. Returns None if there are no more items in the collection.

`countInstalledApps(customer, filter=None, orderBy=None, orgUnitId=None, pageSize=None, pageToken=None, x__xgafv=None)`

    Generate report of app installations.

    Args:
      customer: string, Required. Customer id or "my_customer" to use the customer associated to the account making the request. (required)
      filter: string, Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * app_name * app_type * install_type * number_of_permissions * total_install_count * latest_profile_active_date * permission_name
      orderBy: string, Field used to order results. Supported order by fields: * app_name * app_type * install_type * number_of_permissions * total_install_count
      orgUnitId: string, The ID of the organizational unit.
      pageSize: integer, Maximum number of results to return. Maximum and default are 100.
      pageToken: string, Token to specify the page of the request to be returned.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response containing details of queried installed apps.
      "installedApps": [ # List of installed apps matching request.
        { # Describes an installed app.
          "appId": "A String", # Output only. Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g. com.evernote).
          "appInstallType": "A String", # Output only. How the app was installed.
          "appSource": "A String", # Output only. Source of the installed app.
          "appType": "A String", # Output only. Type of the app.
          "browserDeviceCount": "A String", # Output only. Count of browser devices with this app installed.
          "description": "A String", # Output only. Description of the installed app.
          "disabled": True or False, # Output only. Whether the app is disabled.
          "displayName": "A String", # Output only. Name of the installed app.
          "homepageUri": "A String", # Output only. Homepage uri of the installed app.
          "osUserCount": "A String", # Output only. Count of ChromeOS users with this app installed.
          "permissions": [ # Output only. Permissions of the installed app.
            "A String",
          ],
        },
      ],
      "nextPageToken": "A String", # Token to specify the next page of the request.
      "totalSize": 42, # Total number of installed apps matching request.
    }

`countInstalledApps_next()`

    Retrieves the next page of results.

            Args:
              previous_request: The request for the previous page. (required)
              previous_response: The response from the request for the previous page. (required)

            Returns:
              A request object that you can call 'execute()' on to request the next
              page. Returns None if there are no more items in the collection.

`findInstalledAppDevices(customer, appId=None, appType=None, filter=None, orderBy=None, orgUnitId=None, pageSize=None, pageToken=None, x__xgafv=None)`

    Generate report of devices that have a specified app installed.

    Args:
      customer: string, Required. Customer id or "my_customer" to use the customer associated to the account making the request. (required)
      appId: string, Unique identifier of the app. For Chrome apps and extensions, the 32-character id (e.g. ehoadneljpdggcbbknedodolkkjodefl). For Android apps, the package name (e.g. com.evernote).
      appType: string, Type of the app.
        Allowed values
          APP_TYPE_UNSPECIFIED - App type not specified.
          EXTENSION - Chrome extension.
          APP - Chrome app.
          THEME - Chrome theme.
          HOSTED_APP - Chrome hosted app.
          ANDROID_APP - ARC++ app.
      filter: string, Query string to filter results, AND-separated fields in EBNF syntax. Note: OR operations are not supported in this filter. Supported filter fields: * last_active_date
      orderBy: string, Field used to order results. Supported order by fields: * machine * device_id
      orgUnitId: string, The ID of the organizational unit.
      pageSize: integer, Maximum number of results to return. Maximum and default are 100.
      pageToken: string, Token to specify the page of the request to be returned.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response containing a list of devices with queried app installed.
      "devices": [ # A list of devices which have the app installed. Sorted in ascending alphabetical order on the Device.machine field.
        { # Describes a device reporting Chrome browser information.
          "deviceId": "A String", # Output only. The ID of the device that reported this Chrome browser information.
          "machine": "A String", # Output only. The name of the machine within its local network.
        },
      ],
      "nextPageToken": "A String", # Token to specify the next page of the request.
      "totalSize": 42, # Total number of devices matching request.
    }

`findInstalledAppDevices_next()`

    Retrieves the next page of results.

            Args:
              previous_request: The request for the previous page. (required)
              previous_response: The response from the request for the previous page. (required)

            Returns:
              A request object that you can call 'execute()' on to request the next
              page. Returns None if there are no more items in the collection.