جرِّب خادم MCP لخدمة "إحصاءات Google". يمكنك تثبيت التطبيق من
GitHub والاطّلاع على
الإعلان لمعرفة المزيد من التفاصيل.
Method: properties.accessBindings.batchCreate
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يُنشئ معلومات حول روابط الوصول المتعددة إلى حساب أو موقع.
تعتمد هذه الطريقة على المعاملات. إذا لم يتم إنشاء أي AccessBinding، لن يتم إنشاء أي من AccessBindings.
طلب HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
parent |
string
مطلوب. الحساب أو الموقع الذي يملك عمليات ربط أذونات الوصول يجب أن يكون الحقل الرئيسي في رسائل CreateAccessBindingRequest فارغًا أو يتطابق مع هذا الحقل. التنسيقات: - الحسابات/{account} - المواقع/{الموقع}
|
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
الحقول |
requests[] |
object (CreateAccessBindingRequest )
مطلوب. الطلبات التي تحدّد روابط الوصول المراد إنشاؤها. يمكن إنشاء 1,000 عملية ربط وصول كحدّ أقصى في دُفعة واحدة.
|
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال BatchCreateAccessBindingsResponse
.
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/analytics.manage.users
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreates multiple access bindings for an account or property within a single transactional operation.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes an HTTP POST request to \u003ccode\u003ehttps://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate\u003c/code\u003e with path parameter specifying the parent account or property.\u003c/p\u003e\n"],["\u003cp\u003eRequires a JSON request body containing an array of \u003ccode\u003eCreateAccessBindingRequest\u003c/code\u003e objects, each defining an access binding to be created.\u003c/p\u003e\n"],["\u003cp\u003eReturns a \u003ccode\u003eBatchCreateAccessBindingsResponse\u003c/code\u003e upon successful creation of the access bindings.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.manage.users\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This describes how to use a `POST` request to batch-create access bindings for an account or property, specified in the `parent` path parameter within the URL, which uses gRPC Transcoding syntax. The request body must be JSON formatted and includes an array of `requests`, each defining an access binding. Up to 1000 bindings can be created per batch. Successful responses return a `BatchCreateAccessBindingsResponse`. This action requires `analytics.manage.users` authorization scope. If one binding fails, none are created.\n"],null,["# Method: properties.accessBindings.batchCreate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates information about multiple access bindings to an account or property.\n\nThis method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchCreate#CreateAccessBindingRequest) } ] } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[CreateAccessBindingRequest](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchCreate#CreateAccessBindingRequest)`)` Required. The requests specifying the access bindings to create. A maximum of 1000 access bindings can be created in a batch. |\n\n### Response body\n\nIf successful, the response body contains an instance of [BatchCreateAccessBindingsResponse](/analytics/devguides/config/admin/v1/rest/v1alpha/BatchCreateAccessBindingsResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.manage.users`"]]