Method: accounts.accessBindings.batchCreate
建立帳戶或資源的多個存取權繫結資訊。
這個方法是交易性的。如果無法建立任何 AccessBinding,系統就不會建立任何 AccessBinding。
HTTP 要求
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchCreate
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
parent |
string
必要欄位。擁有存取綁定項目的帳戶或資源。CreateAccessBindingRequest 訊息中的父項欄位必須為空白,或與這個欄位相符。格式:- accounts/{account} - properties/{property}
|
要求主體
要求主體的資料會採用以下結構:
欄位 |
requests[] |
object (CreateAccessBindingRequest )
必要欄位。指定要建立的存取繫結要求。一次最多只能建立 1,000 個存取繫結。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/analytics.manage.users
CreateAccessBindingRequest
適用於 accessBindings.create RPC 的要求訊息。
JSON 表示法 |
{
"parent": string,
"accessBinding": {
object (AccessBinding )
}
} |
欄位 |
parent |
string
必要欄位。格式:- accounts/{account} - properties/{property}
|
accessBinding |
object (AccessBinding )
必要欄位。要建立的存取繫結。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-14 (世界標準時間)。
[null,null,["上次更新時間:2025-01-14 (世界標準時間)。"],[[["Enables the creation of multiple access bindings for an account or property within a single request."],["Employs a transactional approach, ensuring that either all specified access bindings are created or none are."],["Requires the `https://www.googleapis.com/auth/analytics.manage.users` OAuth scope for authorization."],["Allows for specifying up to 1000 access bindings in a single batch creation request."],["Provides a structured response indicating the outcome of the batch creation operation."]]],["This describes how to use a `POST` request to the endpoint `https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchCreate` to create multiple access bindings for an account or property. The `parent` path parameter specifies the account or property. The request body, in JSON format, includes an array of `CreateAccessBindingRequest` objects, each containing the `parent` and the `accessBinding` details. Up to 1000 access bindings can be created at once. Successful responses return `BatchCreateAccessBindingsResponse`, and this process requires the `analytics.manage.users` authorization scope.\n"]]