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 )
必需。要创建的访问权限绑定。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):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"]]