> 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/knowledge-bases/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 incluir nuestra dirección IP en la lista de permitidas `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 otorgar acceso (para usuarios nuevos)

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

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

1. Ve a la [consola de Google Cloud Platform](https://console.cloud.google.com/).
2. Haz clic en el selector de proyectos y selecciona el proyecto que contiene tu conjunto de datos de BigQuery.
3. Ve a la página **IAM y administración** , y haz clic en **Cuentas de servicio**.
4. Haz clic en **+ CREAR CUENTA DE SERVICIO** en la parte superior de la página.
5. Escribe un nombre para la cuenta de servicio y haz clic en **Crear**.
6. En la página **Otorgar acceso a la cuenta de servicio al proyecto** , selecciona los roles **Lector de datos de BigQuery** y **Usuario de trabajos de BigQuery** .
7. Haz clic en **Continuar**, y luego haz clic en **Listo**.

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

1. En la página **Cuentas de servicio** , busca la cuenta de servicio que acabas de crear.
2. Haz clic en el menú **Acciones** (tres puntos verticales) y selecciona **Crear clave**.
3. Selecciona **JSON** como tipo de clave y haz clic en **Crear**.
4. Guarda el archivo de clave JSON generado en tu computadora.

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

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

1. Abre el archivo de clave JSON con un editor de texto.
2. Copia todo el contenido del archivo de clave JSON.
3. En AirOps, pega el contenido del archivo de clave JSON en el campo **Clave JSON** .

<figure><img src="https://3036434873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-c791fb7eb606e0835aa7e64e4f699976449f239d%2Fbigquery-01-connection-form.png?alt=media" alt="BigQuery connection form with a project ID, an uploaded service account key JSON file, a region, and Connect"><figcaption><p>Sube el archivo JSON de clave de la cuenta de servicio a AirOps.</p></figcaption></figure>

Ahora, tu almacén de datos de Google BigQuery debería estar conectado y listo para usarse en 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/knowledge-bases/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.
