> 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/pt/contexto/memory-stores/add-data/import-from-sql-database/data-sources/bigquery.md).

# BigQuery

Conecte a uma base de dados BigQuery no AirOps

{% hint style="info" %}
**Lembre-se de adicionar o nosso endereço IP à allowlist `52.71.87.39`**

Se a sua base de dados estiver protegida por uma firewall, lembre-se de permitir o acesso de entrada ao endereço IP da AirOps através da porta da sua base de dados.
{% endhint %}

## Configurar uma conta de serviço do Google Cloud Platform e conceder acesso (para novos utilizadores)

Para adicionar um Data Warehouse do Google BigQuery como Fonte de Dados no AirOps, use uma conta de serviço do Google Cloud Platform com **acesso de leitura** acesso aos conjuntos de dados e tabelas desejados:

### 1. Criar uma conta de serviço do Google Cloud Platform

1. Aceda à [Consola do Google Cloud Platform](https://console.cloud.google.com/).
2. Clique no menu pendente do projeto e selecione o projeto que contém o seu conjunto de dados do BigQuery.
3. Aceda ao **IAM e Admin** na página e depois clique **Contas de serviço**.
4. Clique em **+ CRIAR CONTA DE SERVIÇO** no topo da página.
5. Introduza um nome para a sua conta de serviço e clique **Crie**.
6. Na **Conceda a esta conta de serviço acesso ao projeto** página, selecione as **Visualizador de Dados do BigQuery** como no **Utilizador de Jobs do BigQuery** funções.
7. Clique em **Continuar**, e depois clique **Concluído**.

### 2. Gerar uma chave JSON para a Conta de Serviço

1. No **Contas de serviço** página, encontre a conta de serviço que acabou de criar.
2. Clique no **Ações** menu (três pontos verticais) e selecione **Criar chave**.
3. Selecione **JSON** como tipo de chave e clique **Crie**.
4. Guarde o ficheiro de chave JSON gerado no seu computador.

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

### 3. Introduza o conteúdo do ficheiro de chave JSON no AirOps

1. Abra o ficheiro de chave JSON com um editor de texto.
2. Copie todo o conteúdo do ficheiro de chave JSON.
3. No AirOps, cole o conteúdo do ficheiro de chave JSON no campo **Chave JSON** .

Agora, o seu Data Warehouse do Google BigQuery deverá estar ligado e pronto a ser utilizado no 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/pt/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.
