Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

Advanced DNS Protection

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

Cloudflare API を使い、API 経由で Advanced DNS Protection を設定します。

API 呼び出しの例は よく使う API 呼び出し を参照してください。

エンドポイント

完全なエンドポイントを得るには、次の Cloudflare API のベース URL に、下記の Advanced DNS Protection API エンドポイントを付けます。

https://api.cloudflare.com/client/v4

{account_id} 引数は アカウント ID(16 進文字列)です。この値は Cloudflare ダッシュボードで確認できます。

利用できる操作は次の表のとおりです。

操作 動詞 + エンドポイント
DNS 保護ルールを一覧する

GET accounts/{account_id}/magic/advanced_dns_protection/configs/dns_protection/rules

アカウント内のすべての DNS 保護ルールを取得します。
DNS 保護ルールを追加する

POST accounts/{account_id}/magic/advanced_dns_protection/configs/dns_protection/rules

アカウントに DNS 保護ルールを追加します。
DNS 保護ルールを取得する

GET accounts/{account_id}/magic/advanced_dns_protection/configs/dns_protection/rules/{rule_id}

アカウント内の既存の DNS 保護ルールの詳細を取得します。
DNS 保護ルールを更新する

PATCH accounts/{account_id}/magic/advanced_dns_protection/configs/dns_protection/rules/{rule_id}

アカウント内の既存の DNS 保護ルールを更新します。
DNS 保護ルールを削除する

DELETE accounts/{account_id}/magic/advanced_dns_protection/configs/dns_protection/rules/{rule_id}

アカウントから既存の DNS 保護ルールを削除します。
すべての DNS 保護ルールを削除する

DELETE accounts/{account_id}/magic/advanced_dns_protection/configs/dns_protection/rules

アカウントから既存の DNS 保護ルールをすべて削除します。

役に立ちましたか?