Method: mobiledevices.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी खाते के लिए, उपयोगकर्ता के मालिकाना हक वाले सभी मोबाइल डिवाइसों की पेज की गई सूची दिखाता है. कंपनी के मालिकाना हक वाले डिवाइसों की सूची पाने के लिए, Cloud Identity Devices API का इस्तेमाल करें. इस तरीके के लिए 60 मिनट का समय तय है. ज़्यादा जानकारी के लिए, गड़बड़ी के कोड से जुड़ी समस्या हल करना लेख पढ़ें.
एचटीटीपी अनुरोध
GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/mobile
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
customerId |
string
ग्राहक के Google Workspace खाते का यूनीक आईडी. खाते के एडमिन के तौर पर, अपने खाते के customerId को दिखाने के लिए, my_customer के उपनाम का भी इस्तेमाल किया जा सकता है. customerId को उपयोगकर्ता संसाधन के हिस्से के तौर पर भी दिखाया जाता है.
|
क्वेरी पैरामीटर
पैरामीटर |
maxResults |
integer
कितने नतीजे दिखाने हैं. ज़्यादा से ज़्यादा वैल्यू 100 हो सकती है.
|
orderBy |
enum (OrderBy )
नतीजों को क्रम से लगाने के लिए इस्तेमाल की जाने वाली डिवाइस प्रॉपर्टी.
|
pageToken |
string
सूची में अगले पेज की जानकारी देने वाला टोकन
|
projection |
enum (Projection )
चुने गए फ़ील्ड के सेट में दिखाई गई जानकारी पर पाबंदी लगाएं.
|
query |
string
https://developers.google.com/workspace/admin/directory/v1/search-operators पर दिए गए फ़ॉर्मैट में खोज स्ट्रिंग
|
sortOrder |
enum (SortOrder )
नतीजों को बढ़ते या घटते क्रम में दिखाना है या नहीं. इसका इस्तेमाल orderBy पैरामीटर के साथ करना ज़रूरी है.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"kind": string,
"etag": string,
"mobiledevices": [
{
object (MobileDevice )
}
],
"nextPageToken": string
} |
फ़ील्ड |
kind |
string
यह किस तरह का संसाधन है.
|
etag |
string
संसाधन का ETag.
|
mobiledevices[] |
object (MobileDevice )
मोबाइल डिवाइस ऑब्जेक्ट की सूची.
|
nextPageToken |
string
इस नतीजे के अगले पेज को ऐक्सेस करने के लिए इस्तेमाल किया जाने वाला टोकन.
|
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/admin.directory.device.mobile
https://www.googleapis.com/auth/admin.directory.device.mobile.action
https://www.googleapis.com/auth/admin.directory.device.mobile.readonly
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
OrderBy
Enums |
DEVICE_ID |
Google Sync के साथ काम करने वाले मोबाइल डिवाइस का सीरियल नंबर. Android डिवाइसों के लिए, यह सॉफ़्टवेयर से जनरेट किया गया यूनीक आइडेंटिफ़ायर होता है. |
EMAIL |
डिवाइस के मालिक का ईमेल पता. |
LAST_SYNC |
डिवाइस की नीति सेटिंग को आखिरी बार सिंक करने की तारीख और समय. |
MODEL |
मोबाइल डिवाइस का मॉडल. |
NAME |
डिवाइस के मालिक का उपयोगकर्ता नाम. |
OS |
डिवाइस का ऑपरेटिंग सिस्टम. |
STATUS |
डिवाइस की स्थिति. |
TYPE |
डिवाइस का टाइप. |
अनुमान
Enums |
BASIC |
इसमें सिर्फ़ बुनियादी मेटाडेटा फ़ील्ड शामिल होते हैं. जैसे, deviceId, मॉडल, स्थिति, टाइप, और स्थिति |
FULL |
इसमें सभी मेटाडेटा फ़ील्ड शामिल होते हैं |
SortOrder
Enums |
ASCENDING |
बढ़ते क्रम में. |
DESCENDING |
घटते क्रम में. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# Method: mobiledevices.list\n\nRetrieves 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. This method times out after 60 minutes. For more information, see [Troubleshoot error codes](https://developers.google.com/workspace/admin/directory/v1/guides/troubleshoot-error-codes).\n\n### HTTP request\n\n`GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/mobile`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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](https://developers.google.com/workspace/admin/directory/v1/reference/users). |\n\n### Query parameters\n\n| Parameters ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `maxResults` | `integer` Maximum number of results to return. Max allowed value is 100. |\n| `orderBy` | `enum (`[OrderBy](/workspace/admin/directory/reference/rest/v1/mobiledevices/list#OrderBy)`)` Device property to use for sorting results. |\n| `pageToken` | `string` Token to specify next page in the list |\n| `projection` | `enum (`[Projection](/workspace/admin/directory/reference/rest/v1/mobiledevices/list#Projection)`)` Restrict information returned to a set of selected fields. |\n| `query` | `string` Search string in the format given at \u003chttps://developers.google.com/workspace/admin/directory/v1/search-operators\u003e |\n| `sortOrder` | `enum (`[SortOrder](/workspace/admin/directory/reference/rest/v1/mobiledevices/list#SortOrder)`)` Whether to return results in ascending or descending order. Must be used with the `orderBy` parameter. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"mobiledevices\": [ { object (/workspace/admin/directory/reference/rest/v1/mobiledevices#MobileDevice) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Kind of resource this is. |\n| `etag` | `string` ETag of the resource. |\n| `mobiledevices[]` | `object (`[MobileDevice](/workspace/admin/directory/reference/rest/v1/mobiledevices#MobileDevice)`)` A list of Mobile Device objects. |\n| `nextPageToken` | `string` Token used to access next page of this result. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/admin.directory.device.mobile`\n- `\n https://www.googleapis.com/auth/admin.directory.device.mobile.action`\n- `\n https://www.googleapis.com/auth/admin.directory.device.mobile.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nOrderBy\n-------\n\n| Enums ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------|\n| `DEVICE_ID` | The serial number for a Google Sync mobile device. For Android devices, this is a software generated unique identifier. |\n| `EMAIL` | The device owner's email address. |\n| `LAST_SYNC` | Last policy settings sync date time of the device. |\n| `MODEL` | The mobile device's model. |\n| `NAME` | The device owner's user name. |\n| `OS` | The device's operating system. |\n| `STATUS` | The device status. |\n| `TYPE` | Type of the device. |\n\nProjection\n----------\n\n| Enums ||\n|---------|-------------------------------------------------------------------------------------------|\n| `BASIC` | Includes only the basic metadata fields (e.g., deviceId, model, status, type, and status) |\n| `FULL` | Includes all metadata fields |\n\nSortOrder\n---------\n\n| Enums ||\n|--------------|-------------------|\n| `ASCENDING` | Ascending order. |\n| `DESCENDING` | Descending order. |"]]