devices

POST /v1/devices

Changed on

Creates a device. Only company-owned device may be created. Note: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium

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

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. 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.

Request body

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.

Response

Successful response

Operation required

This resource represents a long-running operation that is the result of a network API call.

done, boolean

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

error, Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

metadata, object

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

name, string

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

response, object

The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

Changes