Prueba el servidor de MCP para Google Analytics. Instala desde
GitHub y consulta el
anuncio para obtener más detalles.
Method: accounts.accessBindings.batchCreate
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Crea información sobre varias vinculaciones de acceso a una cuenta o propiedad.
Este método es transaccional. Si no se puede crear alguna AccessBinding, no se creará ninguno.
Solicitud HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchCreate
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
parent |
string
Obligatorio. La cuenta o propiedad que posee las vinculaciones de acceso. El campo superior de los mensajes de CreateAccessBindingRequest debe estar vacío o coincidir con este campo. Formatos: - cuentas/{cuenta} - propiedades/{propiedad}
|
Cuerpo de la solicitud
El cuerpo de la solicitud contiene datos con la siguiente estructura:
Campos |
requests[] |
object (CreateAccessBindingRequest )
Obligatorio. Las solicitudes que especifican las vinculaciones de acceso que se crearán. Se puede crear un máximo de 1,000 vinculaciones de acceso en un lote.
|
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de BatchCreateAccessBindingsResponse
.
Permisos de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/analytics.manage.users
CreateAccessBindingRequest
Mensaje de solicitud para accessBindings.create RPC.
Representación JSON |
{
"parent": string,
"accessBinding": {
object (AccessBinding )
}
} |
Campos |
parent |
string
Obligatorio. Formatos: - cuentas/{cuenta} - propiedades/{propiedad}
|
accessBinding |
object (AccessBinding )
Obligatorio. La vinculación de acceso que se creará.
|
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 2025-07-26 (UTC)"],[[["\u003cp\u003eEnables the creation of multiple access bindings for an account or property within a single request.\u003c/p\u003e\n"],["\u003cp\u003eEmploys a transactional approach, ensuring that either all specified access bindings are created or none are.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/analytics.manage.users\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eAllows for specifying up to 1000 access bindings in a single batch creation request.\u003c/p\u003e\n"],["\u003cp\u003eProvides a structured response indicating the outcome of the batch creation operation.\u003c/p\u003e\n"]]],["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"],null,["# Method: accounts.accessBindings.batchCreate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [CreateAccessBindingRequest](#CreateAccessBindingRequest)\n - [JSON representation](#CreateAccessBindingRequest.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nCreates information about multiple access bindings to an account or property.\n\nThis method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.\n\n### HTTP request\n\n`POST https://analyticsadmin.googleapis.com/v1alpha/{parent=accounts/*}/accessBindings:batchCreate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The account or property that owns the access bindings. The parent field in the CreateAccessBindingRequest messages must either be empty or match this field. Formats: - accounts/{account} - properties/{property} |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requests\": [ { object (/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchCreate#CreateAccessBindingRequest) } ] } ``` |\n\n| Fields ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requests[]` | `object (`[CreateAccessBindingRequest](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings/batchCreate#CreateAccessBindingRequest)`)` Required. The requests specifying the access bindings to create. A maximum of 1000 access bindings can be created in a batch. |\n\n### Response body\n\nIf successful, the response body contains an instance of [BatchCreateAccessBindingsResponse](/analytics/devguides/config/admin/v1/rest/v1alpha/BatchCreateAccessBindingsResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/analytics.manage.users`\n\nCreateAccessBindingRequest\n--------------------------\n\nRequest message for accessBindings.create RPC.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"parent\": string, \"accessBinding\": { object (/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings#AccessBinding) } } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Formats: - accounts/{account} - properties/{property} |\n| `accessBinding` | `object (`[AccessBinding](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts.accessBindings#AccessBinding)`)` Required. The access binding to create. |"]]