Method: mobiledevices.list
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک لیست صفحه بندی شده از تمام دستگاه های تلفن همراه متعلق به کاربر را برای یک حساب بازیابی می کند. برای بازیابی لیستی که شامل دستگاه های متعلق به شرکت است، به جای آن از Cloud Identity Devices API استفاده کنید. این روش پس از 60 دقیقه از بین می رود. برای اطلاعات بیشتر، عیبیابی کدهای خطا را ببینید.
درخواست HTTP
GET https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/mobile
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
customerId | string شناسه منحصر به فرد برای حساب Google Workspace مشتری. بهعنوان مدیر حساب، میتوانید از نام مستعار my_customer نیز برای نشان دادن customerId حساب خود استفاده کنید. 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
برای اطلاعات بیشتر، به راهنمای مجوز مراجعه کنید.
سفارش توسط
Enums |
---|
DEVICE_ID | شماره سریال یک دستگاه تلفن همراه Google Sync. برای دستگاه های Android، این یک شناسه منحصر به فرد ایجاد شده توسط نرم افزار است. |
EMAIL | آدرس ایمیل مالک دستگاه. |
LAST_SYNC | آخرین تنظیمات خط مشی زمان تاریخ همگام سازی دستگاه. |
MODEL | مدل دستگاه موبایل |
NAME | نام کاربری مالک دستگاه. |
OS | سیستم عامل دستگاه. |
STATUS | وضعیت دستگاه |
TYPE | نوع دستگاه. |
فرافکنی
Enums |
---|
BASIC | فقط شامل فیلدهای ابرداده اصلی (به عنوان مثال، شناسه دستگاه، مدل، وضعیت، نوع و وضعیت) است. |
FULL | شامل تمام فیلدهای ابرداده است |
مرتب سازی
Enums |
---|
ASCENDING | ترتیب صعودی |
DESCENDING | ترتیب نزولی |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],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. |"]]