Skip to content

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

ホスト名単位の AOP をロールバックする

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

ホスト名単位 の Authenticated Origin Pulls 設定を無効化または削除する必要がある場合は、次の手順に従います。

  1. PUT リクエスト を使い、ホスト名の Authenticated Origin Pulls を無効にします。

    Required API token permissions

    At least one of the following token permissions is required:
    • SSL and Certificates Write
    Enable or Disable a Hostname for Client Authenticationbash
    curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/origin_tls_client_auth/hostnames" \
    	--request PUT \
    	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
    	--json '{
    		"config": [
    				{
    						"enabled": false,
    						"cert_id": "<CERT_ID>",
    						"hostname": "<YOUR_HOSTNAME>"
    				}
    		]
    	}'
  2. (任意)GET リクエスト を使い、クライアント証明書 ID の一覧を取得します。次の手順で削除する証明書の ID が必要です。

    Required API token permissions

    At least one of the following token permissions is required:
    • SSL and Certificates Write
    • SSL and Certificates Read
    List Certificatesbash
    curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/origin_tls_client_auth/hostnames/certificates" \
    	--request GET \
    	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
  3. Delete hostname client certificate エンドポイントを使い、アップロード済みの証明書を削除します。

    Required API token permissions

    At least one of the following token permissions is required:
    • SSL and Certificates Write
    Delete Hostname Client Certificatebash
    curl "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/origin_tls_client_auth/hostnames/certificates/$CERTIFICATE_ID" \
    	--request DELETE \
    	--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

役に立ちましたか?