コンテンツにスキップ

環境の管理

An environment is a place to test different versions of your zone configurations.


環境の作成

Once you enable Version Management, Cloudflare will automatically create:

  • Version Zero, think about this as the configuration of your current zone. Once default environments are created, Version Zero is automatically deployed to them, guaranteeing no disruption in your live traffic. This Version is also permanently editable. In case you decide to disable Zone Versioning, Version Zero will become your zone again.
  • Global Configuration, you can find all the configurations here that are not supported by Version Management.

On the Environments page, you can create default environments for Production, Staging, and Development.

Based on your organization’s needs, you may need to create additional environments to test and roll out changes.


新しい環境を作成するには:

  1. Cloudflare ダッシュボードにログインします。
  2. アカウントとゾーンを選択します。
  3. バージョン管理に移動します。
  4. 環境に移動します。
  5. 環境の作成を選択します。
  6. 次の情報を提供します:
  • 環境名: 環境のための一意で説明的な名前。
  • トラフィックフィルター: この環境に送信されるリクエストを制限します。
  • 初期位置: この環境がテストプロセスのどこにあるべきかを制御します。
  1. 作成を選択します。

環境の編集

環境を編集するには:

  1. Cloudflare ダッシュボードにログインします。
  2. アカウントとゾーンを選択します。
  3. バージョン管理に移動します。
  4. 環境を選択します。
  5. 特定の環境で、編集を選択します。
  6. 必要な変更を行います。
  7. 保存を選択します。

環境のバージョンを変更

誤って変更を防ぐために、環境のバージョンは昇格またはロールバックのプロセスを通じてのみ更新できます。

バージョンと環境の流れの詳細については、仕組みを参照してください。

バージョンの昇格

昇格は、バージョンを下位の環境から次の高い環境に移動します。

To promote a version:

  1. Log in to the Cloudflare dashboard.
  2. Select your account and zone.
  3. Go to Version Management.
  4. Select Environments.
  5. On the environment in which you tested the version, select Promote. This option will only be available if the lower-ranked environment has a different version than the higher-ranked environment.

Promoting a version to a read-only environment will make the version permanently read-only.


バージョンのロールバック

バージョンをロールバックすると、環境を以前に割り当てられたバージョンに戻します。

バージョンをロールバックするには:

  1. Cloudflare ダッシュボードにログインします。
  2. アカウントとゾーンを選択します。
  3. バージョン管理に移動します。
  4. 環境を選択します。
  5. 特定の環境で、ロールバックを選択します。

環境の削除

環境を削除するには:

  1. Cloudflare ダッシュボードにログインします。
  2. アカウントとゾーンを選択します。
  3. バージョン管理に移動します。
  4. 環境を選択します。
  5. 特定の環境で、編集を選択します。
  6. 環境の削除を選択します。