POST /v1/devices
Changed onCreates 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 URLhttps://cloudidentity.googleapis.com
- AuthOAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-identity.devicesAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-identity.devices
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
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 2.0 token for the current user.
Returns response with indentations and line breaks.
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.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
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
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.
Resource representing the Android specific attributes of a Device.
Asset tag of the device.
Output only. Baseband version of the device.
Output only. Device bootloader version. Example: 0.6.7.
Output only. Device brand. Example: Samsung.
Output only. Build number of the device.
Output only. Represents whether the Device is compromised.
Output only. When the Company-Owned device was imported. This field is empty for BYOD devices.
Unique identifier for the device.
Output only. Type of device.
Output only. Whether developer options is enabled on device.
Output only. Whether USB debugging is enabled on device.
Output only. Device encryption state.
Resource representing the Endpoint Verification-specific attributes of a device.
Host name of the device.
Output only. IMEI number of device if GSM device; empty otherwise.
Output only. Kernel version of the device.
Most recent time when device synced with this service.
Output only. Management state of the device
Output only. Device manufacturer. Example: Motorola.
Output only. MEID number of device if CDMA device; empty otherwise.
Output only. Model name of device. Example: Pixel 3.
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.
Output only. Mobile or network operator of device, if available.
Output only. OS version of the device. Example: Android 8.1.0.
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".
Output only. Whether the device is owned by the company or an individual
Output only. OS release version. Example: 6.0.
Output only. OS security patch update time on device.
Serial Number of device. Example: HT82V1A01076.
Output only. Unified device id of the device.
WiFi MAC addresses of device.
Response
Successful response
This resource represents a long-running operation that is the result of a network API call.
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.
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.
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.
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}.
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
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status
- breaking
- info
added the new
GOOGLEBOOKenum value to the request propertydeviceType
- info