> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare

> Cloudflareとの連携の手順です。

## サポートする機能

<Badge color="blue">アカウント削除</Badge> <Badge color="blue">アカウント作成</Badge>

## 事前準備

### Cloudflareへのログイン方法

[Cloudflareログインページ](https://dash.cloudflare.com/login)にて、メールアドレス・パスワードを入力しログインします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/1656393709035-image.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=c652a5bc946ef9efece68f5a8d5bd8f9" alt="Cloudflareログイン画面" width="431" height="363" data-path="images/integrations/7sn4txfknp/1656393709035-image.png" />

### ワークスペースキーの取得方法

**Cloudflare** にログイン後、**URLの一部がワークスペースキー**となるので、保存しておきます。

`https://dash.cloudflare.com/`**`ワークスペースキー`**

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-171804.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=5c29c802dcc18167c1a6259bd9ff1a86" alt="URLからワークスペースキーを取得" width="1014" height="403" data-path="images/integrations/7sn4txfknp/2022-03-07-171804.png" />

### アクセスキーの取得方法

右上の人物アイコンより**マイプロフィール**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-172307.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=610250b9b42245bf2824bdd8fdb49d5c" alt="マイプロフィールを選択" width="1171" height="337" data-path="images/integrations/7sn4txfknp/2022-03-07-172307.png" />

ページ右側のメニューより**API トークン**を選択し、**トークンを作成する**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-173003.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=b46baf527955349379fab73372b6e0c7" alt="API トークンを作成" width="1603" height="803" data-path="images/integrations/7sn4txfknp/2022-03-07-173003.png" />

次の画面にて **Custom Token**を作成しますので、**Get started**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-173509.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=849e0a3091f1aae0d14678fb87053911" alt="Custom Tokenを選択" width="736" height="878" data-path="images/integrations/7sn4txfknp/2022-03-07-173509.png" />

次の画面にて、**トークン名に任意の名前**（会社名など）を入力し、**アクセス許可には下記2つ追加**し、**概要に進む**をクリックします。

| 項目    | 設定値     | 権限        |
| ----- | ------- | --------- |
| アカウント | アカウント設定 | 読み取り(\*1) |
| ユーザー  | ユーザーの詳細 | 読み取り(\*1) |

<Info>
  (\*1) アカウント削除機能を利用する場合は、\*\*edit(編集）\*\*を選択してください
</Info>

[Adminaでサービスのアカウントを削除/停止する](/it-management/retired/zw9trbb1wm-deprovisioning)

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-174810.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=b6c89f905c2f19ff6f699e6e121f50df" alt="アクセス許可を設定" width="810" height="891" data-path="images/integrations/7sn4txfknp/2022-03-07-174810.png" />

作成するトークンの概要を確認し、**トークンを作成する**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-175440.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=d49a7d8dcf24d4531114351b7946e653" alt="トークンを作成" width="546" height="331" data-path="images/integrations/7sn4txfknp/2022-03-07-175440.png" />

**API トークン**が作成されます。こちらが**アクセスキー**となりますので、保存しておきます。

<Info>
  **この**アクセスキー**は一回しか表示されないので、必ず保存して下さい。**
</Info>

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-175733.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=a9d6d903a8289df8905459a825fb32b0" alt="アクセスキーを保存" width="983" height="511" data-path="images/integrations/7sn4txfknp/2022-03-07-175733.png" />

## インテグレーションのセットアップ

マネーフォワード Adminaのインテグレーション画面にて、**Cloudflare** で検索します。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/2022-03-07-180135.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=36f6251ebc277ed10e736c01be5b567f" alt="Adminaでcloudflareを検索" width="943" height="489" data-path="images/integrations/7sn4txfknp/2022-03-07-180135.png" />

前の手順で取得した**アクセスキー** と **ワークスペースキー**を入力し、**連携する**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/yRr9M1Mo9PbmsShv/images/integrations/7sn4txfknp/clean-shot-2021-10-06-at-12-39-012-x.png?fit=max&auto=format&n=yRr9M1Mo9PbmsShv&q=85&s=fb2fe6232113bc72bf89dc3762a91d1b" alt="アクセスキーとワークスペースキーを入力" width="860" height="846" data-path="images/integrations/7sn4txfknp/clean-shot-2021-10-06-at-12-39-012-x.png" />

Cloudflareとの連携に成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。

正常に完了しない場合は、インテグレーション画面のステータスタブから**編集**し、再度連携をお試しください。

解決しない場合はチャットにてお問い合わせください🙏

Cloudflareの連携概要については[連携ページ](http://admina.moneyforward.com/jp/integrations/cloudflare)をご覧ください。
