> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/es/contexto/memory-stores/add-data/import-from-sql-database/data-sources/bigquery.md).

# BigQuery

Conéctate a una base de datos BigQuery en AirOps

{% hint style="info" %}
**Recuerda permitir nuestra dirección IP en la lista permitida `52.71.87.39`**

Si tu base de datos está protegida por un firewall, recuerda permitir el acceso entrante a la dirección IP de AirOps a través del puerto de tu base de datos.
{% endhint %}

## Configurar una cuenta de servicio de Google Cloud Platform y conceder acceso (para nuevos usuarios)

Para añadir un almacén de datos de Google BigQuery como fuente de datos en AirOps, utilice una cuenta de servicio de Google Cloud Platform con **acceso de lectura** acceso a los conjuntos de datos y tablas deseados:

### 1. Cree una cuenta de servicio de Google Cloud Platform

1. Vaya a la [Consola de Google Cloud Platform](https://console.cloud.google.com/).
2. Haga clic en el menú desplegable del proyecto y seleccione el proyecto que contiene su conjunto de datos de BigQuery.
3. Ve a la pestaña **IAM y administración** página, y luego haga clic en **Cuentas de servicio**.
4. Haz clic en **+ CREAR CUENTA DE SERVICIO** en la parte superior de la página.
5. Introduzca un nombre para su cuenta de servicio y haga clic en **Cree**.
6. En la **Conceda a esta cuenta de servicio acceso al proyecto** página, seleccione los **Visor de datos de BigQuery** y **Usuario de trabajos de BigQuery** roles.
7. Haz clic en **Continuar**, y luego haga clic en **Listo**.

### 2. Genere una clave JSON para la cuenta de servicio

1. En el **Cuentas de servicio** página, encuentre la cuenta de servicio que acaba de crear.
2. Haz clic en el **Acciones** menú (tres puntos verticales) y seleccione **Crear clave**.
3. Selecciona **JSON** como tipo de clave, y haga clic en **Cree**.
4. Guarde el archivo de clave JSON generado en su ordenador.

<figure><img src="https://files.readme.io/b48622d-image.png" alt="" width="375"><figcaption></figcaption></figure>

### 3. Introduzca el contenido del archivo de clave JSON en AirOps

1. Abra el archivo de clave JSON con un editor de texto.
2. Copie todo el contenido del archivo de clave JSON.
3. En AirOps, pegue el contenido del archivo de clave JSON en el **Clave JSON** campo.

Ahora, su almacén de datos de Google BigQuery debería estar conectado y listo para su uso dentro de AirOps.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/es/contexto/memory-stores/add-data/import-from-sql-database/data-sources/bigquery.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
