# SonarQube Self Hosted

## Connection Requirements

{% stepper %}
{% step %}

### IP

IP address of the Sonarqube Self-Hosted.
{% endstep %}

{% step %}

### Port

Port number (optional, default: 9000).
{% endstep %}

{% step %}

### API Token

Log in to your SonarQube → top-right avatar → My Account → Security → Tokens → Generate.

{% hint style="info" %}
🔵 "read-only"\
The user needs to have rights on repos that are going to be fetched on Sonarqube Server to read details.
{% endhint %}
{% endstep %}

{% step %}

### SSL

Use SSL for connection (optional, default: Encrypted).
{% endstep %}
{% endstepper %}

***

{% hint style="warning" %}
⚠️ Attention\
Please perform a **connection test** to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.octoxlabs.com/adapters/adapters/sonarqube-self-hosted.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
