Method: deployments.groups.members.create
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک عضو گروه ایجاد می کند و GroupMember
جدید را برمی گرداند. اگر دستگاه قبلاً تحت گروههای دیگر باشد، از آن گروهها حذف میشود و به گروهی که در درخواست مشخص شده است اضافه میشود.
درخواست HTTP
POST https://androidovertheair.googleapis.com/v1/{name=deployments/*/groups/*}/members
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
name | string نام منبع نسبی به عنوان مثال: "deployments/deployment_x/groups/group_g/members" |
درخواست بدن
بدنه درخواست شامل نمونه ای از GroupMember
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه تازه ایجاد شده از GroupMember
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/android_partner_over_the_air
برای اطلاعات بیشتر، به نمای کلی OAuth 2.0 مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["Creates a new group member and adds a device to the specified group, removing it from any previous groups."],["Sends an HTTP POST request to the specified URL with the group and deployment names included as path parameters."],["Requires a request body containing an instance of `GroupMember` and provides a response containing the newly created `GroupMember` instance if successful."],["Needs authorization with the `https://www.googleapis.com/auth/android_partner_over_the_air` scope."]]],["A `POST` request to `https://androidovertheair.googleapis.com/v1/{name=deployments/*/groups/*}/members` creates a new group member. The `name` path parameter specifies the target group (e.g., \"deployments/deployment_x/groups/group_g/members\"). The request body must contain a `GroupMember` instance, and a successful response returns the newly created `GroupMember`. Devices added to this group will be removed from other groups. The request requires OAuth scope `https://www.googleapis.com/auth/android_partner_over_the_air`.\n"]]