Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

Waiting Room を編集・削除する

最終更新 Markdown で表示Agent セットアップ

Waiting Room ダッシュボード または API で、Waiting Room を管理できます。

ダッシュボードを使う

Waiting Room を編集する

  1. アプリケーションで Traffic > Waiting Room を開きます。
  2. 対象のレコードで Edit を選択します。
  3. Settings を選択します。
  4. 設定を編集します。各設定の説明は 設定項目 を参照してください。
  5. Next を選択します。カスタムテンプレート を使える場合は、テンプレートも調整できます。
  6. Review まで進んだら Save を選択します。

Waiting Room を削除する

  1. アプリケーションで Traffic > Waiting Room を開きます。
  2. 対象のレコードで Delete を選択します。
  3. もう一度 Delete を選択します。

API を使う

Waiting Room を編集する

設定済みの Waiting Room を 置き換える ↗ には、Cloudflare API のベース URL に次のエンドポイントを付けます。

Required API token permissions

At least one of the following token permissions is required:
  • Waiting Rooms Write
Update waiting roombash
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/waiting_rooms/$WAITING_ROOM_ID" \
	--request PUT \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
	--json '{
		"name": "webshop-waiting-room",
		"host": "example.com",
		"new_users_per_minute": 200,
		"total_active_users": 300
	}'

設定済みの Waiting Room を 更新する ↗ には、Cloudflare API のベース URL に次のエンドポイントを付けます。

Required API token permissions

At least one of the following token permissions is required:
  • Waiting Rooms Write
Patch waiting roombash
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/waiting_rooms/$WAITING_ROOM_ID" \
	--request PATCH \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
	--json '{
		"name": "webshop-waiting-room",
		"host": "example.com",
		"new_users_per_minute": 200,
		"total_active_users": 300
	}'

PATCH リクエストのペイロードには、更新したいフィールドだけを含めれば十分です。

Waiting Room を削除する

Waiting Room を削除するには、Waiting Room API ↗ の次のエンドポイントを、Cloudflare API のベース URL に付けます。

Required API token permissions

At least one of the following token permissions is required:
  • Waiting Rooms Write
Delete waiting roombash
curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/waiting_rooms/$WAITING_ROOM_ID" \
	--request DELETE \
	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

役に立ちましたか?