> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kdosukyan/connect-your-source-code/connect-bitbucket-data-center/connect-bitbucket-data-center-broker-set-up.md).

# Bitbucket Data Centerを接続する（Brokerセットアップ）

Aikidoを使用すると、セルフマネージドのBitbucketインスタンスを接続して、コードをスキャンし保護できます。以下の手順に従って、Bitbucket Data CenterインスタンスをAikidoに接続してください。

### 始める前に

* この設定を行う人は、Bitbucket Data Centerインスタンスと **および** 接続したいBitbucketプロジェクト。

## 設定

{% stepper %}
{% step %}
**Aikidoアカウントを作成する**

Bitbucket Data Centerインスタンスを接続するには、まずGoogleまたはMicrosoftを使ってAikidoにサインアップまたはログインしてください。次に、 [サインアップ画面](https://app.aikido.dev/login)、次をクリックします: **Google / Microsoft**.
{% endstep %}

{% step %}
**Bitbucket Data Centerのセットアップを開始**

認証が完了したら、クリックして新しいワークスペースを作成します **Data Center** Bitbucketセクション内で。

![接続するソース管理プロバイダーを選択してください: GitHub、Azure DevOps、GitLab、またはBitbucket。](/files/f18d3b30dc0c9e5b39212a3948c642cea9093065)
{% endstep %}

{% step %}
**ブローカーアクセスを有効にする**

次を有効にします **Aikidoブローカー** 「詳細接続オプション」セクションのトグルをクリックして。

クリック **グループを作成** 続行するには。

![Aikidoのオンボーディング: GitLabセルフマネージドのURLとアクセス トークンを入力して認証します。](/files/b0eff190fcf9a1e989facb953c429197aa0c9c9b)
{% endstep %}

{% step %}
**ブローカーを設定**

以下のガイドに従ってブローカーを設定します。デプロイしたら、ここに戻ってGitLabのセットアップを完了してください。

{% content-ref url="/pages/57eb4d0e1ea0df52e494af68c47a0c2a1e884bc1" %}
[内部アプリケーション向け Aikido Broker](/docs/docs-ja/miscellaneous-info/aikido-broker-for-internal-applications.md)
{% endcontent-ref %}

<figure><img src="/files/939c10803d1ee7e3e59e8abcdd40ea92c8913d5c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bitbucket Data Centerのセットアップを完了**

ブローカーを作成して環境にデプロイした後、Bitbucket Data Centerのセットアップを完了できます。

まず、次をコピーします。 **ブローカーURL**。次のようになります:

```
https://55673-355dsfwea68cb.aikidobroker.com
```

次に、クリックします **Bitbucket Serverのセットアップを完了**.

<figure><img src="/files/97a8cbf89e00effaf23d73f8491224f781fc9b34" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**ブローカーURLを入力**

前の手順で取得したブローカーのリソースURLを、「server URL」の入力欄に貼り付けます。

<figure><img src="/files/b780753e45a1130a95b11e7bc7d824b0246f94ee" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**HTTPアクセストークンを作成**

次の場所で確認できます: `HTTP アクセストークン` の下で **プロフィール** → **アカウントを管理** → **HTTP アクセストークン** → **トークンを作成**.

**必要なトークン権限**

Aikido は、お使いのオンプレミス Bitbucket インスタンスに対して次のトークン権限を要求します:

* **プロジェクト:** 書き込み
* **リポジトリ:** 書き込み

**なぜ書き込みアクセスが必要なのですか?**

AutoFix（マージ可能な PR の作成）や PR チェック（プルリクエストへのステータスチェックとコメントの投稿）を含む Aikido の全機能を利用するには、書き込みアクセスが必要です。

**スキャンだけ必要な場合**

チームが Aikido をリポジトリのスキャンと AI ペネトレーションテストにのみ使用する場合、 **読み取り権限** 読み取り専用アクセスのトークンを設定すれば、すべてのスキャン機能が期待どおりに動作します。
{% endstep %}

{% step %}
**インストールを完了する**

クリックした後 **次へ、グループを接続**、開始するグループを選択します。後からいつでもさらにグループを接続できます。

最後のステップで、Aikidoに監視させたいリポジトリを選択します。
{% endstep %}
{% endstepper %}


---

# 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 dynamically by asking a question.

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

```
GET https://help.aikido.dev/docs/docs-ja/kdosukyan/connect-your-source-code/connect-bitbucket-data-center/connect-bitbucket-data-center-broker-set-up.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
