| <html><body> |
| <style> |
| |
| body, h1, h2, h3, div, span, p, pre, a { |
| margin: 0; |
| padding: 0; |
| border: 0; |
| font-weight: inherit; |
| font-style: inherit; |
| font-size: 100%; |
| font-family: inherit; |
| vertical-align: baseline; |
| } |
| |
| body { |
| font-size: 13px; |
| padding: 1em; |
| } |
| |
| h1 { |
| font-size: 26px; |
| margin-bottom: 1em; |
| } |
| |
| h2 { |
| font-size: 24px; |
| margin-bottom: 1em; |
| } |
| |
| h3 { |
| font-size: 20px; |
| margin-bottom: 1em; |
| margin-top: 1em; |
| } |
| |
| pre, code { |
| line-height: 1.5; |
| font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| } |
| |
| pre { |
| margin-top: 0.5em; |
| } |
| |
| h1, h2, h3, p { |
| font-family: Arial, sans serif; |
| } |
| |
| h1, h2, h3 { |
| border-bottom: solid #CCC 1px; |
| } |
| |
| .toc_element { |
| margin-top: 0.5em; |
| } |
| |
| .firstline { |
| margin-left: 2 em; |
| } |
| |
| .method { |
| margin-top: 1em; |
| border: solid 1px #CCC; |
| padding: 1em; |
| background: #EEE; |
| } |
| |
| .details { |
| font-weight: bold; |
| font-size: 14px; |
| } |
| |
| </style> |
| |
| <h1><a href="admin_directory_v1.html">Admin SDK API</a> . <a href="admin_directory_v1.mobiledevices.html">mobiledevices</a></h1> |
| <h2>Instance Methods</h2> |
| <p class="toc_element"> |
| <code><a href="#action">action(customerId, resourceId, body=None, x__xgafv=None)</a></code></p> |
| <p class="firstline">Takes an action that affects a mobile device. For example, remotely wiping a device.</p> |
| <p class="toc_element"> |
| <code><a href="#close">close()</a></code></p> |
| <p class="firstline">Close httplib2 connections.</p> |
| <p class="toc_element"> |
| <code><a href="#delete">delete(customerId, resourceId, x__xgafv=None)</a></code></p> |
| <p class="firstline">Removes a mobile device.</p> |
| <p class="toc_element"> |
| <code><a href="#get">get(customerId, resourceId, projection=None, x__xgafv=None)</a></code></p> |
| <p class="firstline">Retrieves a mobile device's properties.</p> |
| <p class="toc_element"> |
| <code><a href="#list">list(customerId, pageToken=None, maxResults=None, query=None, orderBy=None, sortOrder=None, projection=None, x__xgafv=None)</a></code></p> |
| <p class="firstline">Retrieves a paginated list of all mobile devices for an account.</p> |
| <p class="toc_element"> |
| <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| <p class="firstline">Retrieves the next page of results.</p> |
| <h3>Method Details</h3> |
| <div class="method"> |
| <code class="details" id="action">action(customerId, resourceId, body=None, x__xgafv=None)</code> |
| <pre>Takes an action that affects a mobile device. For example, remotely wiping a device. |
| |
| Args: |
| customerId: string, The unique ID for the customer's G Suite account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users). (required) |
| resourceId: string, The unique ID the API service uses to identify the mobile device. (required) |
| body: object, The request body. |
| The object takes the form of: |
| |
| { |
| "action": "A String", # The action to be performed on the device. |
| } |
| |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| </pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="close">close()</code> |
| <pre>Close httplib2 connections.</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="delete">delete(customerId, resourceId, x__xgafv=None)</code> |
| <pre>Removes a mobile device. |
| |
| Args: |
| customerId: string, The unique ID for the customer's G Suite account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users). (required) |
| resourceId: string, The unique ID the API service uses to identify the mobile device. (required) |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| </pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="get">get(customerId, resourceId, projection=None, x__xgafv=None)</code> |
| <pre>Retrieves a mobile device's properties. |
| |
| Args: |
| customerId: string, The unique ID for the customer's G Suite account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users). (required) |
| resourceId: string, The unique ID the API service uses to identify the mobile device. (required) |
| projection: string, Restrict information returned to a set of selected fields. |
| Allowed values |
| PROJECTION_UNDEFINED - |
| BASIC - Includes only the basic metadata fields (e.g., deviceId, model, status, type, and status) |
| FULL - Includes all metadata fields |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { # G Suite Mobile Management includes Android, [Google Sync](http://support.google.com/a/bin/answer.py?answer=135937), and iOS devices. For more information about common group mobile device API tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile-devices.html). |
| "model": "A String", # The mobile device's model name, for example Nexus S. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile=devices#update_mobile_device). |
| "serialNumber": "A String", # The device's serial number. |
| "os": "A String", # The mobile device's operating system, for example IOS 4.3 or Android 2.3.5. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile-devices#update_mobile_device). |
| "hardware": "A String", # Mobile Device Hardware (Read-only) |
| "defaultLanguage": "A String", # The default locale used on the device. |
| "userAgent": "A String", # Gives information about the device such as `os` version. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile-devices#update_mobile_device). |
| "manufacturer": "A String", # Mobile Device manufacturer (Read-only) |
| "bootloaderVersion": "A String", # Mobile Device Bootloader version (Read-only) |
| "supportsWorkProfile": True or False, # Work profile supported on device (Read-only) |
| "status": "A String", # The device's status. |
| "managedAccountIsOnOwnerProfile": True or False, # Boolean indicating if this account is on owner/primary profile or not. |
| "buildNumber": "A String", # The device's operating system build number. |
| "hardwareId": "A String", # The IMEI/MEID unique identifier for Android hardware. It is not applicable to Google Sync devices. When adding an Android mobile device, this is an optional property. When updating one of these devices, this is a read-only property. |
| "releaseVersion": "A String", # Mobile Device release version version (Read-only) |
| "firstSync": "A String", # Date and time the device was first synchronized with the policy settings in the G Suite administrator control panel (Read-only) |
| "kernelVersion": "A String", # The device's kernel version. |
| "adbStatus": True or False, # Adb (USB debugging) enabled or disabled on device (Read-only) |
| "basebandVersion": "A String", # The device's baseband version. |
| "type": "A String", # The type of mobile device. |
| "email": [ # List of owner's email addresses. If your application needs the current list of user emails, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For additional information, see the [retrieve a user](/admin-sdk/directory/v1/guides/manage-users#get_user) method. |
| "A String", |
| ], |
| "resourceId": "A String", # The unique ID the API service uses to identify the mobile device. |
| "name": [ # List of the owner's user names. If your application needs the current list of device owner names, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For more information about retrieving mobile device user information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-users#get_user). |
| "A String", |
| ], |
| "privilege": "A String", # DMAgentPermission (Read-only) |
| "kind": "admin#directory#mobiledevice", # The type of the API resource. For Mobiledevices resources, the value is `admin#directory#mobiledevice`. |
| "wifiMacAddress": "A String", # The device's MAC address on Wi-Fi networks. |
| "applications": [ # The list of applications installed on an Android mobile device. It is not applicable to Google Sync and iOS devices. The list includes any Android applications that access G Suite data. When updating an applications list, it is important to note that updates replace the existing list. If the Android device has two existing applications and the API updates the list with five applications, the is now the updated list of five applications. |
| { |
| "packageName": "A String", # The application's package name. An example is `com.android.browser`. |
| "versionName": "A String", # The application's version name. An example is `3.2-140714`. |
| "displayName": "A String", # The application's display name. An example is `Browser`. |
| "permission": [ # The list of permissions of this application. These can be either a standard Android permission or one defined by the application, and are found in an application's [Android manifest](http://developer.android.com/guide/topics/manifest/uses-permission-element.html). Examples of a Calendar application's permissions are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`. |
| "A String", |
| ], |
| "versionCode": 42, # The application's version code. An example is `13`. |
| }, |
| ], |
| "meid": "A String", # The device's MEID number. |
| "developerOptionsStatus": True or False, # Developer options enabled or disabled on device (Read-only) |
| "securityPatchLevel": "A String", # Mobile Device Security patch level (Read-only) |
| "networkOperator": "A String", # Mobile Device mobile or network operator (if available) (Read-only) |
| "deviceId": "A String", # The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software generated unique identifier. |
| "etag": "A String", # ETag of the resource. |
| "imei": "A String", # The device's IMEI number. |
| "deviceCompromisedStatus": "A String", # The compromised device status. |
| "otherAccountsInfo": [ # List of accounts added on device (Read-only) |
| "A String", |
| ], |
| "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) |
| "unknownSourcesStatus": True or False, # Unknown sources enabled or disabled on device (Read-only) |
| "devicePasswordStatus": "A String", # DevicePasswordStatus (Read-only) |
| "encryptionStatus": "A String", # Mobile Device Encryption Status (Read-only) |
| "brand": "A String", # Mobile Device Brand (Read-only) |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="list">list(customerId, pageToken=None, maxResults=None, query=None, orderBy=None, sortOrder=None, projection=None, x__xgafv=None)</code> |
| <pre>Retrieves a paginated list of all mobile devices for an account. |
| |
| Args: |
| customerId: string, The unique ID for the customer's G Suite account. As an account administrator, you can also use the `my_customer` alias to represent your account's `customerId`. The `customerId` is also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users). (required) |
| pageToken: string, Token to specify next page in the list |
| maxResults: integer, Maximum number of results to return. Max allowed value is 100. |
| query: string, Search string in the format given at http://support.google.com/a/bin/answer.py?answer=1408863#search |
| orderBy: string, Device property to use for sorting results. |
| Allowed values |
| orderByUndefined - |
| deviceId - The serial number for a Google Sync mobile device. For Android devices, this is a software generated unique identifier. |
| email - The device owner's email address. |
| lastSync - Last policy settings sync date time of the device. |
| model - The mobile device's model. |
| name - The device owner's user name. |
| os - The device's operating system. |
| status - The device status. |
| type - Type of the device. |
| sortOrder: string, Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter. |
| Allowed values |
| SORT_ORDER_UNDEFINED - |
| ASCENDING - Ascending order. |
| DESCENDING - Descending order. |
| projection: string, Restrict information returned to a set of selected fields. |
| Allowed values |
| PROJECTION_UNDEFINED - |
| BASIC - Includes only the basic metadata fields (e.g., deviceId, model, status, type, and status) |
| FULL - Includes all metadata fields |
| x__xgafv: string, V1 error format. |
| Allowed values |
| 1 - v1 error format |
| 2 - v2 error format |
| |
| Returns: |
| An object of the form: |
| |
| { |
| "nextPageToken": "A String", # Token used to access next page of this result. |
| "mobiledevices": [ # List of Mobile Device objects. |
| { # G Suite Mobile Management includes Android, [Google Sync](http://support.google.com/a/bin/answer.py?answer=135937), and iOS devices. For more information about common group mobile device API tasks, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile-devices.html). |
| "model": "A String", # The mobile device's model name, for example Nexus S. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile=devices#update_mobile_device). |
| "serialNumber": "A String", # The device's serial number. |
| "os": "A String", # The mobile device's operating system, for example IOS 4.3 or Android 2.3.5. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile-devices#update_mobile_device). |
| "hardware": "A String", # Mobile Device Hardware (Read-only) |
| "defaultLanguage": "A String", # The default locale used on the device. |
| "userAgent": "A String", # Gives information about the device such as `os` version. This property can be [updated](/admin-sdk/directory/v1/reference/mobiledevices/update.html). For more information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-mobile-devices#update_mobile_device). |
| "manufacturer": "A String", # Mobile Device manufacturer (Read-only) |
| "bootloaderVersion": "A String", # Mobile Device Bootloader version (Read-only) |
| "supportsWorkProfile": True or False, # Work profile supported on device (Read-only) |
| "status": "A String", # The device's status. |
| "managedAccountIsOnOwnerProfile": True or False, # Boolean indicating if this account is on owner/primary profile or not. |
| "buildNumber": "A String", # The device's operating system build number. |
| "hardwareId": "A String", # The IMEI/MEID unique identifier for Android hardware. It is not applicable to Google Sync devices. When adding an Android mobile device, this is an optional property. When updating one of these devices, this is a read-only property. |
| "releaseVersion": "A String", # Mobile Device release version version (Read-only) |
| "firstSync": "A String", # Date and time the device was first synchronized with the policy settings in the G Suite administrator control panel (Read-only) |
| "kernelVersion": "A String", # The device's kernel version. |
| "adbStatus": True or False, # Adb (USB debugging) enabled or disabled on device (Read-only) |
| "basebandVersion": "A String", # The device's baseband version. |
| "type": "A String", # The type of mobile device. |
| "email": [ # List of owner's email addresses. If your application needs the current list of user emails, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For additional information, see the [retrieve a user](/admin-sdk/directory/v1/guides/manage-users#get_user) method. |
| "A String", |
| ], |
| "resourceId": "A String", # The unique ID the API service uses to identify the mobile device. |
| "name": [ # List of the owner's user names. If your application needs the current list of device owner names, use the [get](/admin-sdk/directory/v1/reference/mobiledevices/get.html) method. For more information about retrieving mobile device user information, see the [Developer's Guide](/admin-sdk/directory/v1/guides/manage-users#get_user). |
| "A String", |
| ], |
| "privilege": "A String", # DMAgentPermission (Read-only) |
| "kind": "admin#directory#mobiledevice", # The type of the API resource. For Mobiledevices resources, the value is `admin#directory#mobiledevice`. |
| "wifiMacAddress": "A String", # The device's MAC address on Wi-Fi networks. |
| "applications": [ # The list of applications installed on an Android mobile device. It is not applicable to Google Sync and iOS devices. The list includes any Android applications that access G Suite data. When updating an applications list, it is important to note that updates replace the existing list. If the Android device has two existing applications and the API updates the list with five applications, the is now the updated list of five applications. |
| { |
| "packageName": "A String", # The application's package name. An example is `com.android.browser`. |
| "versionName": "A String", # The application's version name. An example is `3.2-140714`. |
| "displayName": "A String", # The application's display name. An example is `Browser`. |
| "permission": [ # The list of permissions of this application. These can be either a standard Android permission or one defined by the application, and are found in an application's [Android manifest](http://developer.android.com/guide/topics/manifest/uses-permission-element.html). Examples of a Calendar application's permissions are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`. |
| "A String", |
| ], |
| "versionCode": 42, # The application's version code. An example is `13`. |
| }, |
| ], |
| "meid": "A String", # The device's MEID number. |
| "developerOptionsStatus": True or False, # Developer options enabled or disabled on device (Read-only) |
| "securityPatchLevel": "A String", # Mobile Device Security patch level (Read-only) |
| "networkOperator": "A String", # Mobile Device mobile or network operator (if available) (Read-only) |
| "deviceId": "A String", # The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software generated unique identifier. |
| "etag": "A String", # ETag of the resource. |
| "imei": "A String", # The device's IMEI number. |
| "deviceCompromisedStatus": "A String", # The compromised device status. |
| "otherAccountsInfo": [ # List of accounts added on device (Read-only) |
| "A String", |
| ], |
| "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) |
| "unknownSourcesStatus": True or False, # Unknown sources enabled or disabled on device (Read-only) |
| "devicePasswordStatus": "A String", # DevicePasswordStatus (Read-only) |
| "encryptionStatus": "A String", # Mobile Device Encryption Status (Read-only) |
| "brand": "A String", # Mobile Device Brand (Read-only) |
| }, |
| ], |
| "etag": "A String", # ETag of the resource. |
| "kind": "admin#directory#mobiledevices", # Kind of resource this is. |
| }</pre> |
| </div> |
| |
| <div class="method"> |
| <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| <pre>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. |
| </pre> |
| </div> |
| |
| </body></html> |