Method: enterprises.devices.list

Lists devices managed by the enterprise.

HTTP request

GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*}/devices

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent enterprise to list devices under. E.g. "enterprises/XYZ".

Query parameters

Parameters
pageSize

integer

Optional requested page size. Server may return fewer devices than requested. If unspecified, server will pick an appropriate default.

pageToken

string

Optional token of the page to retrieve.

filter

string

Optional filter to list devices.

Filters can be done on: Device custom name (substring match): 'customName=wing'

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response message for SmartDeviceManagementService.ListDevices

JSON representation
{
  "devices": [
    {
      object (Device)
    }
  ],
  "nextPageToken": string
}
Fields
devices[]

object (Device)

The list of devices.

nextPageToken

string

The pagination token to retrieve the next page of results.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/sdm.service

For more information, see the OAuth 2.0 Overview.