{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Modify the configuration of a DNS Firewall cluster","properties":{"path":{"type":"object","properties":{"dns_firewall_id":{"$ref":"#/definitions/dns-firewall_identifier"},"account_id":{"$ref":"#/definitions/dns-firewall_identifier"}},"required":["dns_firewall_id","account_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/dns-firewall_dns-firewall-cluster-patch"}},"required":["path","body"],"additionalProperties":false,"definitions":{"dns-firewall_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"dns-firewall_dns-firewall-cluster-patch":{"type":"object","allOf":[{"$ref":"#/definitions/dns-firewall_dns-firewall-cluster"}]},"dns-firewall_dns-firewall-cluster":{"type":"object","properties":{"attack_mitigation":{"$ref":"#/definitions/dns-firewall_attack_mitigation"},"deprecate_any_requests":{"$ref":"#/definitions/dns-firewall_deprecate_any_requests"},"ecs_fallback":{"$ref":"#/definitions/dns-firewall_ecs_fallback"},"maximum_cache_ttl":{"$ref":"#/definitions/dns-firewall_maximum_cache_ttl"},"minimum_cache_ttl":{"$ref":"#/definitions/dns-firewall_minimum_cache_ttl"},"name":{"$ref":"#/definitions/dns-firewall_name"},"negative_cache_ttl":{"$ref":"#/definitions/dns-firewall_negative_cache_ttl"},"ratelimit":{"$ref":"#/definitions/dns-firewall_ratelimit"},"retries":{"$ref":"#/definitions/dns-firewall_retries"},"upstream_ips":{"$ref":"#/definitions/dns-firewall_upstream_ips"}}},"dns-firewall_attack_mitigation":{"description":"Attack mitigation settings","type":["object","null"],"properties":{"enabled":{"description":"When enabled, automatically mitigate random-prefix attacks to protect upstream DNS servers","type":"boolean","examples":[true]},"only_when_upstream_unhealthy":{"description":"Only mitigate attacks when upstream servers seem unhealthy","type":"boolean","default":true,"examples":[false]}}},"dns-firewall_deprecate_any_requests":{"description":"Whether to refuse to answer queries for the ANY type","type":"boolean","examples":[true]},"dns-firewall_ecs_fallback":{"description":"Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent","type":"boolean","examples":[false]},"dns-firewall_maximum_cache_ttl":{"description":"By default, Cloudflare attempts to cache responses for as long as\nindicated by the TTL received from upstream nameservers. This setting\nsets an upper bound on this duration. For caching purposes, higher TTLs\nwill be decreased to the maximum value defined by this setting.\n\nThis setting does not affect the TTL value in the DNS response\nCloudflare returns to clients. Cloudflare will always forward the TTL\nvalue received from upstream nameservers.\n","type":"number","default":900,"maximum":36000,"minimum":30,"examples":[900]},"dns-firewall_minimum_cache_ttl":{"description":"By default, Cloudflare attempts to cache responses for as long as\nindicated by the TTL received from upstream nameservers. This setting\nsets a lower bound on this duration. For caching purposes, lower TTLs\nwill be increased to the minimum value defined by this setting.\n\nThis setting does not affect the TTL value in the DNS response\nCloudflare returns to clients. Cloudflare will always forward the TTL\nvalue received from upstream nameservers.\n\nNote that, even with this setting, there is no guarantee that a\nresponse will be cached for at least the specified duration. Cached\nresponses may be removed earlier for capacity or other operational\nreasons.\n","type":"number","default":60,"maximum":36000,"minimum":30,"examples":[60]},"dns-firewall_name":{"description":"DNS Firewall cluster name","type":"string","maxLength":160,"minLength":1,"examples":["My Awesome DNS Firewall cluster"]},"dns-firewall_negative_cache_ttl":{"description":"This setting controls how long DNS Firewall should cache negative\nresponses (e.g., NXDOMAIN) from the upstream servers.\n\nThis setting does not affect the TTL value in the DNS response\nCloudflare returns to clients. Cloudflare will always forward the TTL\nvalue received from upstream nameservers.\n","type":["number","null"],"maximum":36000,"minimum":30,"examples":[900]},"dns-firewall_ratelimit":{"description":"Maximum number of DNS queries per second that will be forwarded to your upstream nameservers. The limit is enforced per server, where each server receives a fraction of the configured value. The actual aggregate rate for a data center may vary depending on how many servers are present. Responses served from cache do not count toward this limit. Set to null to disable rate limiting.","type":["number","null"],"maximum":1000000000,"minimum":100,"examples":[600]},"dns-firewall_retries":{"description":"Number of retries for fetching DNS responses from upstream nameservers (not counting the initial attempt)","type":"number","default":2,"maximum":2,"minimum":0,"examples":[2]},"dns-firewall_upstream_ips":{"type":"array","items":{"anyOf":[{"description":"Upstream DNS Server IPv4 address","format":"ipv4","type":"string","examples":["192.0.2.1"]},{"description":"Upstream DNS Server IPv6 address","format":"ipv6","type":"string","examples":["2001:DB8:100::CF"]}],"type":"string"},"minLength":1,"examples":[["192.0.2.1","198.51.100.1","2001:DB8:100::CF"]]}}},"name":"Update DNS Firewall Cluster","id":"cloudflare.dns-firewall-update-dns-firewall-cluster","example":{"path":{"dns_firewall_id":"023e105f4ecef8ad9ca31a8372d0c353","account_id":"023e105f4ecef8ad9ca31a8372d0c353"},"body":{}},"maxRequests":1,"summary":false}}