> For the complete documentation index, see [llms.txt](https://docs.flosum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flosum.com/global-settings/global-settings-docs-ja/huan-jing/sutorji/sutorjino-google-cloud-storage-bakettowo.md). Agents can also search and read this documentation through its [MCP server](https://docs.flosum.com/~gitbook/mcp).

# ストレージ用の Google Cloud Storage バケットを追加

{% hint style="success" %}

#### 必要なユーザー認証情報

\[**Flosumユーザー**] - **システム管理者** 役割
{% endhint %}

## ![](https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2FKK27dGExFDtzaiuy5OQo%2FSummary2-Small-Icon.svg?alt=media\&token=fd28bf21-00ee-4db0-9dc5-73ec71dbe391) 概要

デフォルトでは、Flosum Backup & Archive は Flosum 管理の AWS S3 バケットにデータを保存します。ただし、必要に応じてお客様独自の Google Cloud Storage バケットをデータ保存に使用することもできます。この記事では、Flosum テナントを設定して、顧客管理の Google Cloud Storage バケットを使用する方法を説明します。

Flosum は、Google Cloud サービス アカウントの 2 種類の認証情報を使用してバケットに接続します。1 つは Flosum がファイル操作に使用する JSON キー、もう 1 つは Flosum がバックアップ データに使用する HMAC キーです。

{% hint style="info" %}
Google Cloud Storage バケットを追加しても、そのバケットは作成されず、既存のバックアップ データも移行されません。
{% endhint %}

## 開始前に

Global Settings でストレージを追加する前に、Google Cloud で次の設定を行ってください:

1. Flosum Cloud Apps がデータを保存するための Cloud Storage バケット。
2. バケット内のオブジェクトを読み取り、書き込み、一覧表示、削除できるロールを持つサービス アカウント。Flosum では次のロールでテストされています: **Storage Object User** および **Storage Legacy Bucket Reader** ロール。これらの権限を付与する他のロールでも動作する場合があります。
3. サービス アカウントの JSON キー。次へ移動します: **IAM と管理 > サービス アカウント**、サービス アカウントをクリックしてから、次をクリックします: **キー > キーを追加 > 新しいキーを作成** を選択します **JSON**.
4. 同じサービス アカウントの HMAC キー。次へ移動します: **Cloud Storage > 設定 > 相互運用性** で、サービス アカウント用のキーを作成します。

{% hint style="info" %}
JSON キーと HMAC キーの両方に 1 つの専用サービス アカウントを使用するのが最も簡単な構成です。
{% endhint %}

{% hint style="warning" %}

#### HMAC シークレットを保存する

Google Cloud では HMAC シークレットは HMAC キーを作成したときに 1 回だけ表示されるため、その時点で保存してください。シークレットを紛失した場合は、新しい HMAC キーを作成してください。

新しい HMAC キーが有効になるまで最大 60 秒かかる場合があります。
{% endhint %}

{% hint style="info" %}

#### サービス アカウント キーの作成が無効になっています

Google Cloud に次が表示された場合: `サービス アカウント キーの作成が無効になっています` JSON キーを作成するときにこれが表示される場合、Google Cloud 組織の組織ポリシーによってブロックされています。次の権限を持つユーザーが **Organization Policy Administrator** Google Cloud 組織のこのロールを持って、プロジェクトでのキー作成を許可する必要があります。
{% endhint %}

詳細については、次の Google Cloud の記事を参照してください:

* [サービス アカウント キーの作成と削除](https://docs.cloud.google.com/iam/docs/keys-create-delete)
* [サービス アカウントの HMAC キーを管理する](https://docs.cloud.google.com/storage/docs/authentication/managing-hmackeys)

## Google Cloud Storage の追加

{% stepper %}
{% step %}

### Global Settings にアクセスする

1. 任意の **Flosum Cloud App**で、 **アプリスイッチャー** アイコンを左側のサイドバーメニュー上部でクリックします。

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fgh5FcQCnErKAjJ7isiuB%2FGS-Access-01.png?alt=media&amp;token=ddf01506-f133-4e49-825a-76a2a237e3a8" alt="" width="563"><figcaption></figcaption></figure></div>
2. クリック **グローバル設定**.&#x20;

   <div align="left"><figure><img src="https://1457003412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsEk2hU5IMh3HEY5dJZjR%2Fuploads%2Fx5vntzgpLuT50fMTzwT9%2FGS-Access-02.png?alt=media&amp;token=f67a125f-5087-47c2-9bc6-9393c3d2b7a5" alt="" width="563"><figcaption></figcaption></figure></div>
3. その **グローバル設定** アプリは新しいタブで開きます。

{% hint style="info" %}
グローバル設定には、Flosum Cloud Apps のログインURLから直接ログインしてアクセスすることもできます。ログイン手順については、以下の記事を参照してください。

* [グローバル設定にログインする](https://docs.flosum.com/global-settings/global-settings-docs-ja/hajimeni/gurbaruniroguinsuru.md)
  {% endhint %}
  {% endstep %}

{% step %}

### ストレージを作成する

1. 次をクリックします **Storages** をサイドバー メニューから。
2. 次をクリックします **ストレージを作成**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/1kmDrS9wnSDuxx5LRLY2/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-001.png" alt="" width="563"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### ストレージタイプを選択

1. ストレージにわかりやすい名前を次に入力します: **名前** テキストボックス。
2. 次をクリックします **ストレージタイプ** ドロップダウン。

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/q9PZHglgLihs3xgnFI75/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-002.png" alt="" width="375"><figcaption></figcaption></figure></div>
3. 選択します **Google Cloud Storage**.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/SngIa5xv4cwNjvqU8THB/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-003.png" alt="" width="375"><figcaption></figcaption></figure></div>

{% endstep %}

{% step %}

### Google Cloud の認証情報を入力する

Google Cloud Storage バケットに接続するには、次の値を入力します:

{% hint style="info" %}
Google Cloud での項目の場所は、表に記載されているものと異なる場合があります。適切な項目を見つける際の参考として、この表を使用してください。
{% endhint %}

| 項目               | Google Cloud の項目                                                                                                                       |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **プロジェクト ID**    | JSON キー ファイル > `project_id`                                                                                                            |
| **バケット名**        | Cloud Storage > バケット > **名前** （バケット名のみを入力し、 `gs://` またはフォルダ パスは含めないでください。）                                                             |
| **クライアント メール**   | JSON キー ファイル > `client_email` （これはサービス アカウントのメールアドレスです。）                                                                               |
| **HMAC アクセス ID** | Cloud Storage > 設定 > 相互運用性 にある HMAC キーのアクセス ID                                                                                         |
| **HMAC シークレット**  | HMAC キーを作成したときに表示されたシークレット                                                                                                             |
| **秘密鍵**          | JSON キー ファイル > `private_key` （値全体をコピーします。次から: `-----BEGIN PRIVATE KEY-----` から `-----END PRIVATE KEY-----`まで。JSON ファイル全体は貼り付けないでください。） |

<div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/cVPbBRFR5r3aHkrCWLRM/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-004.png" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Google Cloud Storage を作成

1. 次をクリックします **作成** して Google Cloud Storage バケットを追加します。

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/g6KiGRzqAreo3mQz6uOo/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-005.png" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}

#### エラーが発生した場合

ストレージ追加時にエラーが発生した場合は、次を確認してください:

* バケットが存在し、 **バケット名** が正しいこと。
* 次の **クライアント メール** および **秘密鍵** は同じサービス アカウントに属していること。
* 次の **秘密鍵** が完全であること。
* 次の **HMAC アクセス ID** および **HMAC シークレット** は同じ HMAC キーのものであり、そのキーが有効であること。
* サービス アカウントがバケット内のオブジェクトを読み取り、書き込み、一覧表示、削除できること。
  {% endhint %}

2. 正常に追加されると、ストレージは次の一覧に表示されます: **Storages** ストレージタイプが `GOOGLE_CLOUD_STORAGE`.

   <div align="left"><figure><img src="https://content.gitbook.com/content/sEk2hU5IMh3HEY5dJZjR/blobs/qMV9KDiFP05Dz89MWhov/Adding_a_Google_Cloud_Storage_Bucket_for_Storage-006.png" alt="" width="563"><figcaption></figcaption></figure></div>

{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flosum.com/global-settings/global-settings-docs-ja/huan-jing/sutorji/sutorjino-google-cloud-storage-bakettowo.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.
