Method: properties.accessBindings.batchCreate
Tworzy informacje o wielu powiązaniach dostępu do konta lub usługi.
Ta metoda ma charakter transakcyjny. Jeśli nie można utworzyć żadnego elementu AccessBinding, nie zostanie utworzony żaden element AccessBinding.
Żądanie HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Konto lub usługa, do których należą powiązania dostępu. Pole nadrzędne w wiadomościach CreateAccessBindingRequest musi być puste lub pasować do tego pola. Formaty: - accounts/{konto} - usługi/{property}
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Pola |
requests[] |
object (CreateAccessBindingRequest )
Wymagane. Żądania określają powiązania dostępu do utworzenia. W grupie można utworzyć maksymalnie 1000 powiązań dostępu.
|
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu BatchCreateAccessBindingsResponse
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.manage.users
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-29 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]