Method: properties.accessBindings.batchCreate
為帳戶或資源建立多個存取權繫結的相關資訊。
此為交易型方法。如果無法建立任何 AccessBinding,系統就不會建立任何 AccessBinding。
HTTP 要求
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/accessBindings:batchCreate
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。擁有存取權繫結的帳戶或資源。CreateAccessBindingRequest 訊息中的父項欄位必須為空白或與這個欄位相符。格式:- accounts/{account} - 資源/{property}
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
requests[] |
object (CreateAccessBindingRequest )
必要欄位。指定要建立的存取權繫結的要求。一次最多可以建立 1,000 個存取權繫結。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/analytics.manage.users
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-29 (世界標準時間)。
[null,null,["上次更新時間:2024-08-29 (世界標準時間)。"],[[["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"]]