1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="admin_directory_v1.html">Admin SDK API</a> . <a href="admin_directory_v1.mobiledevices.html">mobiledevices</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#action">action(customerId, resourceId, body=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Takes an action that affects a mobile device. For example, remotely wiping a device.</p> 80<p class="toc_element"> 81 <code><a href="#close">close()</a></code></p> 82<p class="firstline">Close httplib2 connections.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(customerId, resourceId, x__xgafv=None)</a></code></p> 85<p class="firstline">Removes a mobile device.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(customerId, resourceId, projection=None, x__xgafv=None)</a></code></p> 88<p class="firstline">Retrieves a mobile device's properties.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(customerId, maxResults=None, orderBy=None, pageToken=None, projection=None, query=None, sortOrder=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity [Devices API](https://cloud.google.com/identity/docs/concepts/overview-devices) instead.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="action">action(customerId, resourceId, body=None, x__xgafv=None)</code> 98 <pre>Takes an action that affects a mobile device. For example, remotely wiping a device. 99 100Args: 101 customerId: string, The unique ID for the customer's Google Workspace 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) 102 resourceId: string, The unique ID the API service uses to identify the mobile device. (required) 103 body: object, The request body. 104 The object takes the form of: 105 106{ 107 "action": "A String", # The action to be performed on the device. 108} 109 110 x__xgafv: string, V1 error format. 111 Allowed values 112 1 - v1 error format 113 2 - v2 error format 114</pre> 115</div> 116 117<div class="method"> 118 <code class="details" id="close">close()</code> 119 <pre>Close httplib2 connections.</pre> 120</div> 121 122<div class="method"> 123 <code class="details" id="delete">delete(customerId, resourceId, x__xgafv=None)</code> 124 <pre>Removes a mobile device. 125 126Args: 127 customerId: string, The unique ID for the customer's Google Workspace 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) 128 resourceId: string, The unique ID the API service uses to identify the mobile device. (required) 129 x__xgafv: string, V1 error format. 130 Allowed values 131 1 - v1 error format 132 2 - v2 error format 133</pre> 134</div> 135 136<div class="method"> 137 <code class="details" id="get">get(customerId, resourceId, projection=None, x__xgafv=None)</code> 138 <pre>Retrieves a mobile device's properties. 139 140Args: 141 customerId: string, The unique ID for the customer's Google Workspace 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) 142 resourceId: string, The unique ID the API service uses to identify the mobile device. (required) 143 projection: string, Restrict information returned to a set of selected fields. 144 Allowed values 145 BASIC - Includes only the basic metadata fields (e.g., deviceId, model, status, type, and status) 146 FULL - Includes all metadata fields 147 x__xgafv: string, V1 error format. 148 Allowed values 149 1 - v1 error format 150 2 - v2 error format 151 152Returns: 153 An object of the form: 154 155 { # Google Workspace Mobile Management includes Android, [Google Sync](https://support.google.com/a/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). 156 "adbStatus": True or False, # Adb (USB debugging) enabled or disabled on device (Read-only) 157 "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 Google Workspace 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. 158 { 159 "displayName": "A String", # The application's display name. An example is `Browser`. 160 "packageName": "A String", # The application's package name. An example is `com.android.browser`. 161 "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](https://developer.android.com/guide/topics/manifest/uses-permission-element.html). Examples of a Calendar application's permissions are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`. 162 "A String", 163 ], 164 "versionCode": 42, # The application's version code. An example is `13`. 165 "versionName": "A String", # The application's version name. An example is `3.2-140714`. 166 }, 167 ], 168 "basebandVersion": "A String", # The device's baseband version. 169 "bootloaderVersion": "A String", # Mobile Device Bootloader version (Read-only) 170 "brand": "A String", # Mobile Device Brand (Read-only) 171 "buildNumber": "A String", # The device's operating system build number. 172 "defaultLanguage": "A String", # The default locale used on the device. 173 "developerOptionsStatus": True or False, # Developer options enabled or disabled on device (Read-only) 174 "deviceCompromisedStatus": "A String", # The compromised device status. 175 "deviceId": "A String", # The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software generated unique identifier. 176 "devicePasswordStatus": "A String", # DevicePasswordStatus (Read-only) 177 "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. 178 "A String", 179 ], 180 "encryptionStatus": "A String", # Mobile Device Encryption Status (Read-only) 181 "etag": "A String", # ETag of the resource. 182 "firstSync": "A String", # Date and time the device was first synchronized with the policy settings in the G Suite administrator control panel (Read-only) 183 "hardware": "A String", # Mobile Device Hardware (Read-only) 184 "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. 185 "imei": "A String", # The device's IMEI number. 186 "kernelVersion": "A String", # The device's kernel version. 187 "kind": "admin#directory#mobiledevice", # The type of the API resource. For Mobiledevices resources, the value is `admin#directory#mobiledevice`. 188 "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) 189 "managedAccountIsOnOwnerProfile": True or False, # Boolean indicating if this account is on owner/primary profile or not. 190 "manufacturer": "A String", # Mobile Device manufacturer (Read-only) 191 "meid": "A String", # The device's MEID number. 192 "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). 193 "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). 194 "A String", 195 ], 196 "networkOperator": "A String", # Mobile Device mobile or network operator (if available) (Read-only) 197 "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). 198 "otherAccountsInfo": [ # List of accounts added on device (Read-only) 199 "A String", 200 ], 201 "privilege": "A String", # DMAgentPermission (Read-only) 202 "releaseVersion": "A String", # Mobile Device release version version (Read-only) 203 "resourceId": "A String", # The unique ID the API service uses to identify the mobile device. 204 "securityPatchLevel": "A String", # Mobile Device Security patch level (Read-only) 205 "serialNumber": "A String", # The device's serial number. 206 "status": "A String", # The device's status. 207 "supportsWorkProfile": True or False, # Work profile supported on device (Read-only) 208 "type": "A String", # The type of mobile device. 209 "unknownSourcesStatus": True or False, # Unknown sources enabled or disabled on device (Read-only) 210 "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). 211 "wifiMacAddress": "A String", # The device's MAC address on Wi-Fi networks. 212}</pre> 213</div> 214 215<div class="method"> 216 <code class="details" id="list">list(customerId, maxResults=None, orderBy=None, pageToken=None, projection=None, query=None, sortOrder=None, x__xgafv=None)</code> 217 <pre>Retrieves a paginated list of all user-owned mobile devices for an account. To retrieve a list that includes company-owned devices, use the Cloud Identity [Devices API](https://cloud.google.com/identity/docs/concepts/overview-devices) instead. 218 219Args: 220 customerId: string, The unique ID for the customer's Google Workspace 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) 221 maxResults: integer, Maximum number of results to return. Max allowed value is 100. 222 orderBy: string, Device property to use for sorting results. 223 Allowed values 224 deviceId - The serial number for a Google Sync mobile device. For Android devices, this is a software generated unique identifier. 225 email - The device owner's email address. 226 lastSync - Last policy settings sync date time of the device. 227 model - The mobile device's model. 228 name - The device owner's user name. 229 os - The device's operating system. 230 status - The device status. 231 type - Type of the device. 232 pageToken: string, Token to specify next page in the list 233 projection: string, Restrict information returned to a set of selected fields. 234 Allowed values 235 BASIC - Includes only the basic metadata fields (e.g., deviceId, model, status, type, and status) 236 FULL - Includes all metadata fields 237 query: string, Search string in the format given at https://developers.google.com/admin-sdk/directory/v1/search-operators 238 sortOrder: string, Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter. 239 Allowed values 240 ASCENDING - Ascending order. 241 DESCENDING - Descending order. 242 x__xgafv: string, V1 error format. 243 Allowed values 244 1 - v1 error format 245 2 - v2 error format 246 247Returns: 248 An object of the form: 249 250 { 251 "etag": "A String", # ETag of the resource. 252 "kind": "admin#directory#mobiledevices", # Kind of resource this is. 253 "mobiledevices": [ # List of Mobile Device objects. 254 { # Google Workspace Mobile Management includes Android, [Google Sync](https://support.google.com/a/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). 255 "adbStatus": True or False, # Adb (USB debugging) enabled or disabled on device (Read-only) 256 "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 Google Workspace 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. 257 { 258 "displayName": "A String", # The application's display name. An example is `Browser`. 259 "packageName": "A String", # The application's package name. An example is `com.android.browser`. 260 "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](https://developer.android.com/guide/topics/manifest/uses-permission-element.html). Examples of a Calendar application's permissions are `READ_CALENDAR`, or `MANAGE_ACCOUNTS`. 261 "A String", 262 ], 263 "versionCode": 42, # The application's version code. An example is `13`. 264 "versionName": "A String", # The application's version name. An example is `3.2-140714`. 265 }, 266 ], 267 "basebandVersion": "A String", # The device's baseband version. 268 "bootloaderVersion": "A String", # Mobile Device Bootloader version (Read-only) 269 "brand": "A String", # Mobile Device Brand (Read-only) 270 "buildNumber": "A String", # The device's operating system build number. 271 "defaultLanguage": "A String", # The default locale used on the device. 272 "developerOptionsStatus": True or False, # Developer options enabled or disabled on device (Read-only) 273 "deviceCompromisedStatus": "A String", # The compromised device status. 274 "deviceId": "A String", # The serial number for a Google Sync mobile device. For Android and iOS devices, this is a software generated unique identifier. 275 "devicePasswordStatus": "A String", # DevicePasswordStatus (Read-only) 276 "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. 277 "A String", 278 ], 279 "encryptionStatus": "A String", # Mobile Device Encryption Status (Read-only) 280 "etag": "A String", # ETag of the resource. 281 "firstSync": "A String", # Date and time the device was first synchronized with the policy settings in the G Suite administrator control panel (Read-only) 282 "hardware": "A String", # Mobile Device Hardware (Read-only) 283 "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. 284 "imei": "A String", # The device's IMEI number. 285 "kernelVersion": "A String", # The device's kernel version. 286 "kind": "admin#directory#mobiledevice", # The type of the API resource. For Mobiledevices resources, the value is `admin#directory#mobiledevice`. 287 "lastSync": "A String", # Date and time the device was last synchronized with the policy settings in the G Suite administrator control panel (Read-only) 288 "managedAccountIsOnOwnerProfile": True or False, # Boolean indicating if this account is on owner/primary profile or not. 289 "manufacturer": "A String", # Mobile Device manufacturer (Read-only) 290 "meid": "A String", # The device's MEID number. 291 "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). 292 "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). 293 "A String", 294 ], 295 "networkOperator": "A String", # Mobile Device mobile or network operator (if available) (Read-only) 296 "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). 297 "otherAccountsInfo": [ # List of accounts added on device (Read-only) 298 "A String", 299 ], 300 "privilege": "A String", # DMAgentPermission (Read-only) 301 "releaseVersion": "A String", # Mobile Device release version version (Read-only) 302 "resourceId": "A String", # The unique ID the API service uses to identify the mobile device. 303 "securityPatchLevel": "A String", # Mobile Device Security patch level (Read-only) 304 "serialNumber": "A String", # The device's serial number. 305 "status": "A String", # The device's status. 306 "supportsWorkProfile": True or False, # Work profile supported on device (Read-only) 307 "type": "A String", # The type of mobile device. 308 "unknownSourcesStatus": True or False, # Unknown sources enabled or disabled on device (Read-only) 309 "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). 310 "wifiMacAddress": "A String", # The device's MAC address on Wi-Fi networks. 311 }, 312 ], 313 "nextPageToken": "A String", # Token used to access next page of this result. 314}</pre> 315</div> 316 317<div class="method"> 318 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 319 <pre>Retrieves the next page of results. 320 321Args: 322 previous_request: The request for the previous page. (required) 323 previous_response: The response from the request for the previous page. (required) 324 325Returns: 326 A request object that you can call 'execute()' on to request the next 327 page. Returns None if there are no more items in the collection. 328 </pre> 329</div> 330 331</body></html>