Method: properties.accessBindings.batchCreate
יוצר מידע על קישורי גישה מרובים לחשבון או לנכס.
השיטה הזו היא רכישה. אם אי אפשר ליצור קישור גישה כלשהו, לא ייווצר אף קישור גישה.
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. החשבון או הנכס שבבעלותם קישורי הגישה. שדה ההורה בהודעות CreateAccessBindingRequest חייב להיות ריק או להתאים לשדה הזה. פורמטים: - accounts/{account} - properties/{property}
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
שדות |
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 ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-29 (שעון UTC)."],[[["Creates multiple access bindings for an account or property within a single transactional operation."],["Utilizes an HTTP POST request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate` with path parameter specifying the parent account or property."],["Requires a JSON request body containing an array of `CreateAccessBindingRequest` objects, each defining an access binding to be created."],["Returns a `BatchCreateAccessBindingsResponse` upon successful creation of the access bindings."],["Needs authorization with the `https://www.googleapis.com/auth/analytics.manage.users` scope."]]],["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"]]