devices

GET /v1/devices/{devicesId}

Changed on

Retrieves the specified device.

Request

  • Base URL
    https://cloudidentity.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-identity.devices
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-identity.devices
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-identity.devices.readonly
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-identity.devices.readonly

Path parameters

devicesId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

customer, string

Optional. Resource name of the Customer in the format: customers/{customer}, where customer is the customer to whom the device belongs. If you're using this API for your own organization, use customers/my_customer. If you're using this API to manage another organization, use customers/{customer}, where customer is the customer to whom the device belongs.

Response

Successful response

GoogleAppsCloudidentityDevicesV1Device required

A Device within the Cloud Identity Devices API. Represents a Device known to Google Cloud, independent of the device ownership, type, and whether it is assigned or in use by a user.

androidSpecificAttributes, GoogleAppsCloudidentityDevicesV1AndroidAttributes

Resource representing the Android specific attributes of a Device.

assetTag, string

Asset tag of the device.

basebandVersion, string

Output only. Baseband version of the device.

bootloaderVersion, string

Output only. Device bootloader version. Example: 0.6.7.

brand, string

Output only. Device brand. Example: Samsung.

buildNumber, string

Output only. Build number of the device.

compromisedState, 'COMPROMISED_STATE_UNSPECIFIED' | 'COMPROMISED' | 'UNCOMPROMISED'

Output only. Represents whether the Device is compromised.

createTime, string google-datetime

Output only. When the Company-Owned device was imported. This field is empty for BYOD devices.

deviceId, string

Unique identifier for the device.

deviceType, 'DEVICE_TYPE_UNSPECIFIED' | 'ANDROID' | 'IOS' | 'GOOGLE_SYNC' | 'WINDOWS' | 'MAC_OS' | 'LINUX' | 'CHROME_OS' | 'GOOGLEBOOK'

Output only. Type of device.

enabledDeveloperOptions, boolean

Output only. Whether developer options is enabled on device.

enabledUsbDebugging, boolean

Output only. Whether USB debugging is enabled on device.

encryptionState, 'ENCRYPTION_STATE_UNSPECIFIED' | 'UNSUPPORTED_BY_DEVICE' | 'ENCRYPTED' | 'NOT_ENCRYPTED'

Output only. Device encryption state.

endpointVerificationSpecificAttributes, GoogleAppsCloudidentityDevicesV1EndpointVerificationSpecificAttributes

Resource representing the Endpoint Verification-specific attributes of a device.

hostname, string

Host name of the device.

imei, string

Output only. IMEI number of device if GSM device; empty otherwise.

kernelVersion, string

Output only. Kernel version of the device.

lastSyncTime, string google-datetime

Most recent time when device synced with this service.

managementState, 'MANAGEMENT_STATE_UNSPECIFIED' | 'APPROVED' | 'BLOCKED' | 'PENDING' | 'UNPROVISIONED' | 'WIPING' | 'WIPED'

Output only. Management state of the device

manufacturer, string

Output only. Device manufacturer. Example: Motorola.

meid, string

Output only. MEID number of device if CDMA device; empty otherwise.

model, string

Output only. Model name of device. Example: Pixel 3.

name, string

Output only. Resource name of the Device in format: devices/{device}, where device is the unique id assigned to the Device. Important: Device API scopes require that you use domain-wide delegation to access the API. For more information, see Set up the Devices API.

networkOperator, string

Output only. Mobile or network operator of device, if available.

osVersion, string

Output only. OS version of the device. Example: Android 8.1.0.

otherAccounts, string[]

Output only. Domain name for Google accounts on device. Type for other accounts on device. On Android, will only be populated if |ownership_privilege| is |PROFILE_OWNER| or |DEVICE_OWNER|. Does not include the account signed in to the device policy app if that account's domain has only one account. Examples: "com.example", "xyz.com".

ownerType, 'DEVICE_OWNERSHIP_UNSPECIFIED' | 'COMPANY' | 'BYOD'

Output only. Whether the device is owned by the company or an individual

releaseVersion, string

Output only. OS release version. Example: 6.0.

securityPatchTime, string google-datetime

Output only. OS security patch update time on device.

serialNumber, string

Serial Number of device. Example: HT82V1A01076.

unifiedDeviceId, string

Output only. Unified device id of the device.

wifiMacAddresses, string[]

WiFi MAC addresses of device.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-identity.devices was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-identity.devices was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-identity.devices.readonly was removed from the endpoint's security scheme Oauth2

    1 more change in this revision