cloudflare 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +92 -0
- package/core.js +3 -3
- package/core.js.map +1 -1
- package/core.mjs +3 -3
- package/core.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/addressing/prefixes/prefixes.d.ts +16 -8
- package/resources/addressing/prefixes/prefixes.d.ts.map +1 -1
- package/resources/addressing/prefixes/prefixes.js.map +1 -1
- package/resources/addressing/prefixes/prefixes.mjs.map +1 -1
- package/resources/ai/ai.d.ts +4 -0
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +5 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +5 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/index.d.ts +1 -0
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +4 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/to-markdown.d.ts +29 -0
- package/resources/ai/to-markdown.d.ts.map +1 -0
- package/resources/ai/to-markdown.js +27 -0
- package/resources/ai/to-markdown.js.map +1 -0
- package/resources/ai/to-markdown.mjs +22 -0
- package/resources/ai/to-markdown.mjs.map +1 -0
- package/resources/ai-gateway/ai-gateway.d.ts +204 -12
- package/resources/ai-gateway/ai-gateway.d.ts.map +1 -1
- package/resources/ai-gateway/ai-gateway.js.map +1 -1
- package/resources/ai-gateway/ai-gateway.mjs.map +1 -1
- package/resources/ai-gateway/logs.d.ts +2 -2
- package/resources/ai-gateway/logs.d.ts.map +1 -1
- package/resources/ai-gateway/logs.js.map +1 -1
- package/resources/ai-gateway/logs.mjs.map +1 -1
- package/resources/alerting/destinations/pagerduty.d.ts +9 -21
- package/resources/alerting/destinations/pagerduty.d.ts.map +1 -1
- package/resources/alerting/destinations/pagerduty.js.map +1 -1
- package/resources/alerting/destinations/pagerduty.mjs.map +1 -1
- package/resources/alerting/destinations/webhooks.d.ts +9 -21
- package/resources/alerting/destinations/webhooks.d.ts.map +1 -1
- package/resources/alerting/destinations/webhooks.js.map +1 -1
- package/resources/alerting/destinations/webhooks.mjs.map +1 -1
- package/resources/alerting/policies.d.ts +10 -3
- package/resources/alerting/policies.d.ts.map +1 -1
- package/resources/alerting/policies.js.map +1 -1
- package/resources/alerting/policies.mjs.map +1 -1
- package/resources/bot-management.d.ts +49 -0
- package/resources/bot-management.d.ts.map +1 -1
- package/resources/bot-management.js +1 -0
- package/resources/bot-management.js.map +1 -1
- package/resources/bot-management.mjs +1 -0
- package/resources/bot-management.mjs.map +1 -1
- package/resources/browser-rendering/json.d.ts +3 -3
- package/resources/browser-rendering/json.d.ts.map +1 -1
- package/resources/browser-rendering/links.d.ts +4 -0
- package/resources/browser-rendering/links.d.ts.map +1 -1
- package/resources/calls/turn.d.ts.map +1 -1
- package/resources/calls/turn.js +1 -1
- package/resources/calls/turn.js.map +1 -1
- package/resources/calls/turn.mjs +1 -1
- package/resources/calls/turn.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/crons.d.ts +0 -47
- package/resources/cloudforce-one/threat-events/crons.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/crons.js +0 -30
- package/resources/cloudforce-one/threat-events/crons.js.map +1 -1
- package/resources/cloudforce-one/threat-events/crons.mjs +0 -30
- package/resources/cloudforce-one/threat-events/crons.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/datasets.d.ts +2 -2
- package/resources/cloudforce-one/threat-events/datasets/datasets.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/datasets.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/datasets.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/health.d.ts +0 -120
- package/resources/cloudforce-one/threat-events/datasets/health.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/health.js +0 -16
- package/resources/cloudforce-one/threat-events/datasets/health.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/health.mjs +0 -16
- package/resources/cloudforce-one/threat-events/datasets/health.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.js.map +1 -1
- package/resources/cloudforce-one/threat-events/datasets/index.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/index.d.ts +1 -1
- package/resources/cloudforce-one/threat-events/index.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/index.js.map +1 -1
- package/resources/cloudforce-one/threat-events/index.mjs +1 -1
- package/resources/cloudforce-one/threat-events/index.mjs.map +1 -1
- package/resources/cloudforce-one/threat-events/tags.d.ts +79 -4
- package/resources/cloudforce-one/threat-events/tags.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/tags.js +2 -2
- package/resources/cloudforce-one/threat-events/tags.mjs +2 -2
- package/resources/cloudforce-one/threat-events/threat-events.d.ts +27 -4
- package/resources/cloudforce-one/threat-events/threat-events.d.ts.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.js +2 -0
- package/resources/cloudforce-one/threat-events/threat-events.js.map +1 -1
- package/resources/cloudforce-one/threat-events/threat-events.mjs +2 -0
- package/resources/cloudforce-one/threat-events/threat-events.mjs.map +1 -1
- package/resources/dns/dns.d.ts +4 -4
- package/resources/dns/dns.d.ts.map +1 -1
- package/resources/dns/dns.js +1 -0
- package/resources/dns/dns.js.map +1 -1
- package/resources/dns/dns.mjs +2 -1
- package/resources/dns/dns.mjs.map +1 -1
- package/resources/dns/index.d.ts +2 -2
- package/resources/dns/index.d.ts.map +1 -1
- package/resources/dns/index.js +2 -1
- package/resources/dns/index.js.map +1 -1
- package/resources/dns/index.mjs +1 -1
- package/resources/dns/index.mjs.map +1 -1
- package/resources/dns/records.d.ts +174 -5
- package/resources/dns/records.d.ts.map +1 -1
- package/resources/dns/records.js +60 -6
- package/resources/dns/records.js.map +1 -1
- package/resources/dns/records.mjs +59 -6
- package/resources/dns/records.mjs.map +1 -1
- package/resources/dns/settings/account/account.d.ts +48 -45
- package/resources/dns/settings/account/account.d.ts.map +1 -1
- package/resources/dns/settings/account/account.js.map +1 -1
- package/resources/dns/settings/account/account.mjs.map +1 -1
- package/resources/dns/settings/index.d.ts +1 -1
- package/resources/dns/settings/index.d.ts.map +1 -1
- package/resources/dns/settings/index.js.map +1 -1
- package/resources/dns/settings/index.mjs.map +1 -1
- package/resources/dns/settings/settings.d.ts +0 -87
- package/resources/dns/settings/settings.d.ts.map +1 -1
- package/resources/dns/settings/settings.js.map +1 -1
- package/resources/dns/settings/settings.mjs.map +1 -1
- package/resources/dns/settings/zone.d.ts +49 -46
- package/resources/dns/settings/zone.d.ts.map +1 -1
- package/resources/dns-firewall/dns-firewall.d.ts +156 -48
- package/resources/dns-firewall/dns-firewall.d.ts.map +1 -1
- package/resources/dns-firewall/dns-firewall.js.map +1 -1
- package/resources/dns-firewall/dns-firewall.mjs.map +1 -1
- package/resources/email-routing/dns.d.ts +2 -4
- package/resources/email-routing/dns.d.ts.map +1 -1
- package/resources/email-routing/dns.js +0 -2
- package/resources/email-routing/dns.js.map +1 -1
- package/resources/email-routing/dns.mjs +0 -2
- package/resources/email-routing/dns.mjs.map +1 -1
- package/resources/email-security/settings/domains.d.ts +6 -0
- package/resources/email-security/settings/domains.d.ts.map +1 -1
- package/resources/email-security/settings/domains.js.map +1 -1
- package/resources/email-security/settings/domains.mjs.map +1 -1
- package/resources/images/v1/stats.d.ts +3 -1
- package/resources/images/v1/stats.d.ts.map +1 -1
- package/resources/images/v1/stats.js +3 -1
- package/resources/images/v1/stats.js.map +1 -1
- package/resources/images/v1/stats.mjs +3 -1
- package/resources/images/v1/stats.mjs.map +1 -1
- package/resources/intel/indicator-feeds/downloads.d.ts +0 -36
- package/resources/intel/indicator-feeds/downloads.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/downloads.js +0 -15
- package/resources/intel/indicator-feeds/downloads.js.map +1 -1
- package/resources/intel/indicator-feeds/downloads.mjs +0 -15
- package/resources/intel/indicator-feeds/downloads.mjs.map +1 -1
- package/resources/intel/indicator-feeds/index.d.ts +1 -1
- package/resources/intel/indicator-feeds/index.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/index.js.map +1 -1
- package/resources/intel/indicator-feeds/index.mjs.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts +2 -2
- package/resources/intel/indicator-feeds/indicator-feeds.d.ts.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.js.map +1 -1
- package/resources/intel/indicator-feeds/indicator-feeds.mjs.map +1 -1
- package/resources/load-balancers/index.d.ts +1 -0
- package/resources/load-balancers/index.d.ts.map +1 -1
- package/resources/load-balancers/index.js +4 -1
- package/resources/load-balancers/index.js.map +1 -1
- package/resources/load-balancers/index.mjs +1 -0
- package/resources/load-balancers/index.mjs.map +1 -1
- package/resources/load-balancers/load-balancers.d.ts +4 -0
- package/resources/load-balancers/load-balancers.d.ts.map +1 -1
- package/resources/load-balancers/load-balancers.js +5 -0
- package/resources/load-balancers/load-balancers.js.map +1 -1
- package/resources/load-balancers/load-balancers.mjs +5 -0
- package/resources/load-balancers/load-balancers.mjs.map +1 -1
- package/resources/load-balancers/monitor-groups.d.ts +313 -0
- package/resources/load-balancers/monitor-groups.d.ts.map +1 -0
- package/resources/load-balancers/monitor-groups.js +153 -0
- package/resources/load-balancers/monitor-groups.js.map +1 -0
- package/resources/load-balancers/monitor-groups.mjs +148 -0
- package/resources/load-balancers/monitor-groups.mjs.map +1 -0
- package/resources/load-balancers/pools/pools.d.ts +20 -0
- package/resources/load-balancers/pools/pools.d.ts.map +1 -1
- package/resources/load-balancers/pools/pools.js.map +1 -1
- package/resources/load-balancers/pools/pools.mjs.map +1 -1
- package/resources/logs/rayid.d.ts +1 -1
- package/resources/logs/received/fields.d.ts +1 -1
- package/resources/logs/received/received.d.ts +1 -1
- package/resources/magic-transit/cf-interconnects.d.ts +25 -0
- package/resources/magic-transit/cf-interconnects.d.ts.map +1 -1
- package/resources/magic-transit/gre-tunnels.d.ts +40 -0
- package/resources/magic-transit/gre-tunnels.d.ts.map +1 -1
- package/resources/magic-transit/ipsec-tunnels.d.ts +124 -0
- package/resources/magic-transit/ipsec-tunnels.d.ts.map +1 -1
- package/resources/magic-transit/pcaps/download.d.ts +1 -1
- package/resources/magic-transit/pcaps/ownership.d.ts +4 -4
- package/resources/magic-transit/pcaps/pcaps.d.ts +6 -6
- package/resources/magic-transit/pcaps/pcaps.js +1 -1
- package/resources/magic-transit/pcaps/pcaps.mjs +1 -1
- package/resources/page-rules.d.ts +20 -4
- package/resources/page-rules.d.ts.map +1 -1
- package/resources/page-rules.js +20 -4
- package/resources/page-rules.js.map +1 -1
- package/resources/page-rules.mjs +20 -4
- package/resources/page-rules.mjs.map +1 -1
- package/resources/page-shield/connections.d.ts +1 -1
- package/resources/page-shield/cookies.d.ts +1 -1
- package/resources/page-shield/scripts.d.ts +1 -1
- package/resources/radar/ai/inference/summary.d.ts +2 -10
- package/resources/radar/ai/inference/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/summary.js.map +1 -1
- package/resources/radar/ai/inference/summary.mjs.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.d.ts +2 -10
- package/resources/radar/ai/inference/timeseries-groups/summary.d.ts.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.js.map +1 -1
- package/resources/radar/ai/inference/timeseries-groups/summary.mjs.map +1 -1
- package/resources/radar/ai/to-markdown.js +1 -1
- package/resources/radar/ai/to-markdown.js.map +1 -1
- package/resources/radar/ai/to-markdown.mjs +1 -1
- package/resources/radar/ai/to-markdown.mjs.map +1 -1
- package/resources/radar/entities/asns.d.ts +56 -1
- package/resources/radar/entities/asns.d.ts.map +1 -1
- package/resources/radar/entities/asns.js +6 -0
- package/resources/radar/entities/asns.js.map +1 -1
- package/resources/radar/entities/asns.mjs +6 -0
- package/resources/radar/entities/asns.mjs.map +1 -1
- package/resources/radar/entities/entities.d.ts +2 -2
- package/resources/radar/entities/entities.d.ts.map +1 -1
- package/resources/radar/entities/entities.js.map +1 -1
- package/resources/radar/entities/entities.mjs.map +1 -1
- package/resources/radar/entities/index.d.ts +1 -1
- package/resources/radar/entities/index.d.ts.map +1 -1
- package/resources/radar/entities/index.js.map +1 -1
- package/resources/radar/entities/index.mjs.map +1 -1
- package/resources/radar/http/ases/ases.d.ts +7 -0
- package/resources/radar/http/ases/ases.d.ts.map +1 -1
- package/resources/radar/http/ases/ases.js.map +1 -1
- package/resources/radar/http/ases/ases.mjs.map +1 -1
- package/resources/radar/http/ases/bot-class.d.ts +7 -0
- package/resources/radar/http/ases/bot-class.d.ts.map +1 -1
- package/resources/radar/http/ases/browser-family.d.ts +7 -0
- package/resources/radar/http/ases/browser-family.d.ts.map +1 -1
- package/resources/radar/http/ases/device-type.d.ts +7 -0
- package/resources/radar/http/ases/device-type.d.ts.map +1 -1
- package/resources/radar/http/ases/http-method.d.ts +7 -0
- package/resources/radar/http/ases/http-method.d.ts.map +1 -1
- package/resources/radar/http/ases/http-protocol.d.ts +7 -0
- package/resources/radar/http/ases/http-protocol.d.ts.map +1 -1
- package/resources/radar/http/ases/ip-version.d.ts +7 -0
- package/resources/radar/http/ases/ip-version.d.ts.map +1 -1
- package/resources/radar/http/ases/os.d.ts +7 -0
- package/resources/radar/http/ases/os.d.ts.map +1 -1
- package/resources/radar/http/ases/tls-version.d.ts +7 -0
- package/resources/radar/http/ases/tls-version.d.ts.map +1 -1
- package/resources/radar/http/http.d.ts +7 -0
- package/resources/radar/http/http.d.ts.map +1 -1
- package/resources/radar/http/http.js.map +1 -1
- package/resources/radar/http/http.mjs.map +1 -1
- package/resources/radar/http/locations/bot-class.d.ts +7 -0
- package/resources/radar/http/locations/bot-class.d.ts.map +1 -1
- package/resources/radar/http/locations/browser-family.d.ts +7 -0
- package/resources/radar/http/locations/browser-family.d.ts.map +1 -1
- package/resources/radar/http/locations/device-type.d.ts +7 -0
- package/resources/radar/http/locations/device-type.d.ts.map +1 -1
- package/resources/radar/http/locations/http-method.d.ts +7 -0
- package/resources/radar/http/locations/http-method.d.ts.map +1 -1
- package/resources/radar/http/locations/http-protocol.d.ts +7 -0
- package/resources/radar/http/locations/http-protocol.d.ts.map +1 -1
- package/resources/radar/http/locations/ip-version.d.ts +7 -0
- package/resources/radar/http/locations/ip-version.d.ts.map +1 -1
- package/resources/radar/http/locations/locations.d.ts +7 -0
- package/resources/radar/http/locations/locations.d.ts.map +1 -1
- package/resources/radar/http/locations/locations.js.map +1 -1
- package/resources/radar/http/locations/locations.mjs.map +1 -1
- package/resources/radar/http/locations/os.d.ts +7 -0
- package/resources/radar/http/locations/os.d.ts.map +1 -1
- package/resources/radar/http/locations/tls-version.d.ts +7 -0
- package/resources/radar/http/locations/tls-version.d.ts.map +1 -1
- package/resources/radar/http/summary.d.ts +64 -38
- package/resources/radar/http/summary.d.ts.map +1 -1
- package/resources/radar/http/summary.js.map +1 -1
- package/resources/radar/http/summary.mjs.map +1 -1
- package/resources/radar/http/timeseries-groups.d.ts +80 -50
- package/resources/radar/http/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/http/timeseries-groups.js.map +1 -1
- package/resources/radar/http/timeseries-groups.mjs.map +1 -1
- package/resources/radar/http/top.d.ts +14 -0
- package/resources/radar/http/top.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/summary.d.ts +2 -10
- package/resources/radar/leaked-credentials/summary.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/summary.js.map +1 -1
- package/resources/radar/leaked-credentials/summary.mjs.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.d.ts +2 -10
- package/resources/radar/leaked-credentials/timeseries-groups.d.ts.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.js.map +1 -1
- package/resources/radar/leaked-credentials/timeseries-groups.mjs.map +1 -1
- package/resources/radar/netflows/netflows.d.ts +15 -4
- package/resources/radar/netflows/netflows.d.ts.map +1 -1
- package/resources/radar/netflows/netflows.js.map +1 -1
- package/resources/radar/netflows/netflows.mjs.map +1 -1
- package/resources/radar/netflows/top.d.ts +14 -0
- package/resources/radar/netflows/top.d.ts.map +1 -1
- package/resources/radar/search.d.ts +2 -2
- package/resources/radar/search.d.ts.map +1 -1
- package/resources/request-tracers/traces.d.ts +1 -1
- package/resources/resource-sharing/recipients.d.ts +77 -1
- package/resources/resource-sharing/recipients.d.ts.map +1 -1
- package/resources/resource-sharing/recipients.js +5 -2
- package/resources/resource-sharing/recipients.js.map +1 -1
- package/resources/resource-sharing/recipients.mjs +5 -2
- package/resources/resource-sharing/recipients.mjs.map +1 -1
- package/resources/resource-sharing/resource-sharing.d.ts +347 -2
- package/resources/resource-sharing/resource-sharing.d.ts.map +1 -1
- package/resources/resource-sharing/resource-sharing.js +5 -2
- package/resources/resource-sharing/resource-sharing.js.map +1 -1
- package/resources/resource-sharing/resource-sharing.mjs +5 -2
- package/resources/resource-sharing/resource-sharing.mjs.map +1 -1
- package/resources/resource-sharing/resources.d.ts +7 -7
- package/resources/resource-sharing/resources.d.ts.map +1 -1
- package/resources/resource-sharing/resources.js.map +1 -1
- package/resources/resource-sharing/resources.mjs.map +1 -1
- package/resources/rules/lists/items.d.ts +9 -0
- package/resources/rules/lists/items.d.ts.map +1 -1
- package/resources/rules/lists/items.js +9 -0
- package/resources/rules/lists/items.js.map +1 -1
- package/resources/rules/lists/items.mjs +9 -0
- package/resources/rules/lists/items.mjs.map +1 -1
- package/resources/snippets/snippets.d.ts +1 -4
- package/resources/snippets/snippets.d.ts.map +1 -1
- package/resources/snippets/snippets.js +1 -1
- package/resources/snippets/snippets.js.map +1 -1
- package/resources/snippets/snippets.mjs +1 -1
- package/resources/snippets/snippets.mjs.map +1 -1
- package/resources/stream/downloads.d.ts +4 -2
- package/resources/stream/downloads.d.ts.map +1 -1
- package/resources/stream/downloads.js +4 -2
- package/resources/stream/downloads.js.map +1 -1
- package/resources/stream/downloads.mjs +4 -2
- package/resources/stream/downloads.mjs.map +1 -1
- package/resources/workers/beta/beta.d.ts +2 -2
- package/resources/workers/beta/beta.d.ts.map +1 -1
- package/resources/workers/beta/beta.js.map +1 -1
- package/resources/workers/beta/beta.mjs.map +1 -1
- package/resources/workers/beta/index.d.ts +1 -1
- package/resources/workers/beta/index.d.ts.map +1 -1
- package/resources/workers/beta/index.js.map +1 -1
- package/resources/workers/beta/index.mjs.map +1 -1
- package/resources/workers/beta/workers/index.d.ts +1 -1
- package/resources/workers/beta/workers/index.d.ts.map +1 -1
- package/resources/workers/beta/workers/index.js.map +1 -1
- package/resources/workers/beta/workers/index.mjs.map +1 -1
- package/resources/workers/beta/workers/versions.d.ts +276 -17
- package/resources/workers/beta/workers/versions.d.ts.map +1 -1
- package/resources/workers/beta/workers/versions.js +8 -7
- package/resources/workers/beta/workers/versions.js.map +1 -1
- package/resources/workers/beta/workers/versions.mjs +8 -7
- package/resources/workers/beta/workers/versions.mjs.map +1 -1
- package/resources/workers/beta/workers/workers.d.ts +133 -18
- package/resources/workers/beta/workers/workers.d.ts.map +1 -1
- package/resources/workers/beta/workers/workers.js +35 -4
- package/resources/workers/beta/workers/workers.js.map +1 -1
- package/resources/workers/beta/workers/workers.mjs +35 -4
- package/resources/workers/beta/workers/workers.mjs.map +1 -1
- package/resources/workers/index.d.ts +1 -1
- package/resources/workers/index.d.ts.map +1 -1
- package/resources/workers/index.js.map +1 -1
- package/resources/workers/index.mjs.map +1 -1
- package/resources/workers/scripts/content.d.ts.map +1 -1
- package/resources/workers/scripts/content.js +1 -0
- package/resources/workers/scripts/content.js.map +1 -1
- package/resources/workers/scripts/content.mjs +1 -0
- package/resources/workers/scripts/content.mjs.map +1 -1
- package/resources/workers/scripts/index.d.ts +1 -1
- package/resources/workers/scripts/index.d.ts.map +1 -1
- package/resources/workers/scripts/index.js.map +1 -1
- package/resources/workers/scripts/index.mjs.map +1 -1
- package/resources/workers/scripts/script-and-version-settings.d.ts +354 -15
- package/resources/workers/scripts/script-and-version-settings.d.ts.map +1 -1
- package/resources/workers/scripts/script-and-version-settings.js +1 -1
- package/resources/workers/scripts/script-and-version-settings.js.map +1 -1
- package/resources/workers/scripts/script-and-version-settings.mjs +1 -1
- package/resources/workers/scripts/script-and-version-settings.mjs.map +1 -1
- package/resources/workers/scripts/scripts.d.ts +206 -10
- package/resources/workers/scripts/scripts.d.ts.map +1 -1
- package/resources/workers/scripts/scripts.js +17 -0
- package/resources/workers/scripts/scripts.js.map +1 -1
- package/resources/workers/scripts/scripts.mjs +17 -0
- package/resources/workers/scripts/scripts.mjs.map +1 -1
- package/resources/workers/scripts/secrets.d.ts +10 -2
- package/resources/workers/scripts/secrets.d.ts.map +1 -1
- package/resources/workers/scripts/secrets.js +10 -4
- package/resources/workers/scripts/secrets.js.map +1 -1
- package/resources/workers/scripts/secrets.mjs +10 -4
- package/resources/workers/scripts/secrets.mjs.map +1 -1
- package/resources/workers/scripts/settings.d.ts +12 -0
- package/resources/workers/scripts/settings.d.ts.map +1 -1
- package/resources/workers/scripts/versions.d.ts +327 -12
- package/resources/workers/scripts/versions.d.ts.map +1 -1
- package/resources/workers/scripts/versions.js.map +1 -1
- package/resources/workers/scripts/versions.mjs.map +1 -1
- package/resources/workers/workers.d.ts +2 -2
- package/resources/workers/workers.d.ts.map +1 -1
- package/resources/workers/workers.js.map +1 -1
- package/resources/workers/workers.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts +109 -4
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.js +1 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.mjs +1 -0
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/content.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts +121 -9
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.d.ts +10 -2
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.js +4 -4
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.mjs +4 -4
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts +354 -15
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.js +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.mjs +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.mjs.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.d.ts +2 -8
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.d.ts.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.js +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.js.map +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.mjs +1 -1
- package/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.mjs.map +1 -1
- package/resources/workflows/instances/instances.d.ts +5 -0
- package/resources/workflows/instances/instances.d.ts.map +1 -1
- package/resources/workflows/instances/instances.js.map +1 -1
- package/resources/workflows/instances/instances.mjs.map +1 -1
- package/resources/zero-trust/access/applications/applications.d.ts +0 -84
- package/resources/zero-trust/access/applications/applications.d.ts.map +1 -1
- package/resources/zero-trust/access/applications/applications.js.map +1 -1
- package/resources/zero-trust/access/applications/applications.mjs.map +1 -1
- package/resources/zero-trust/access/bookmarks.d.ts +0 -2
- package/resources/zero-trust/access/bookmarks.d.ts.map +1 -1
- package/resources/zero-trust/access/bookmarks.js.map +1 -1
- package/resources/zero-trust/access/bookmarks.mjs.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.d.ts +0 -2
- package/resources/zero-trust/access/certificates/certificates.d.ts.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.js.map +1 -1
- package/resources/zero-trust/access/certificates/certificates.mjs.map +1 -1
- package/resources/zero-trust/access/custom-pages.d.ts +0 -20
- package/resources/zero-trust/access/custom-pages.d.ts.map +1 -1
- package/resources/zero-trust/access/custom-pages.js.map +1 -1
- package/resources/zero-trust/access/custom-pages.mjs.map +1 -1
- package/resources/zero-trust/access/groups.d.ts +0 -8
- package/resources/zero-trust/access/groups.d.ts.map +1 -1
- package/resources/zero-trust/access/groups.js.map +1 -1
- package/resources/zero-trust/access/groups.mjs.map +1 -1
- package/resources/zero-trust/access/service-tokens.d.ts +37 -8
- package/resources/zero-trust/access/service-tokens.d.ts.map +1 -1
- package/resources/zero-trust/access/service-tokens.js +5 -2
- package/resources/zero-trust/access/service-tokens.js.map +1 -1
- package/resources/zero-trust/access/service-tokens.mjs +5 -2
- package/resources/zero-trust/access/service-tokens.mjs.map +1 -1
- package/resources/zero-trust/access/tags.d.ts +0 -6
- package/resources/zero-trust/access/tags.d.ts.map +1 -1
- package/resources/zero-trust/access/tags.js.map +1 -1
- package/resources/zero-trust/access/tags.mjs.map +1 -1
- package/resources/zero-trust/devices/devices_.d.ts +94 -1
- package/resources/zero-trust/devices/devices_.d.ts.map +1 -1
- package/resources/zero-trust/devices/devices_.js +5 -2
- package/resources/zero-trust/devices/devices_.js.map +1 -1
- package/resources/zero-trust/devices/devices_.mjs +5 -2
- package/resources/zero-trust/devices/devices_.mjs.map +1 -1
- package/resources/zero-trust/devices/registrations.d.ts +70 -1
- package/resources/zero-trust/devices/registrations.d.ts.map +1 -1
- package/resources/zero-trust/devices/registrations.js +5 -2
- package/resources/zero-trust/devices/registrations.js.map +1 -1
- package/resources/zero-trust/devices/registrations.mjs +5 -2
- package/resources/zero-trust/devices/registrations.mjs.map +1 -1
- package/resources/zero-trust/gateway/app-types.d.ts +10 -10
- package/resources/zero-trust/gateway/app-types.js +1 -1
- package/resources/zero-trust/gateway/app-types.mjs +1 -1
- package/resources/zero-trust/gateway/audit-ssh-settings.d.ts +11 -11
- package/resources/zero-trust/gateway/audit-ssh-settings.js +5 -5
- package/resources/zero-trust/gateway/audit-ssh-settings.mjs +5 -5
- package/resources/zero-trust/gateway/categories.d.ts +17 -19
- package/resources/zero-trust/gateway/categories.d.ts.map +1 -1
- package/resources/zero-trust/gateway/categories.js +1 -1
- package/resources/zero-trust/gateway/categories.js.map +1 -1
- package/resources/zero-trust/gateway/categories.mjs +1 -1
- package/resources/zero-trust/gateway/categories.mjs.map +1 -1
- package/resources/zero-trust/gateway/certificates.d.ts +84 -83
- package/resources/zero-trust/gateway/certificates.d.ts.map +1 -1
- package/resources/zero-trust/gateway/certificates.js +7 -7
- package/resources/zero-trust/gateway/certificates.js.map +1 -1
- package/resources/zero-trust/gateway/certificates.mjs +7 -7
- package/resources/zero-trust/gateway/certificates.mjs.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.d.ts +212 -192
- package/resources/zero-trust/gateway/configurations/configurations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.js +7 -7
- package/resources/zero-trust/gateway/configurations/configurations.js.map +1 -1
- package/resources/zero-trust/gateway/configurations/configurations.mjs +7 -7
- package/resources/zero-trust/gateway/configurations/configurations.mjs.map +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.d.ts +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.js +1 -1
- package/resources/zero-trust/gateway/configurations/custom-certificate.mjs +1 -1
- package/resources/zero-trust/gateway/gateway.d.ts +8 -8
- package/resources/zero-trust/gateway/gateway.js +2 -2
- package/resources/zero-trust/gateway/gateway.mjs +2 -2
- package/resources/zero-trust/gateway/lists/items.d.ts +2 -2
- package/resources/zero-trust/gateway/lists/items.js +1 -1
- package/resources/zero-trust/gateway/lists/items.mjs +1 -1
- package/resources/zero-trust/gateway/lists/lists.d.ts +32 -32
- package/resources/zero-trust/gateway/lists/lists.js +3 -3
- package/resources/zero-trust/gateway/lists/lists.mjs +3 -3
- package/resources/zero-trust/gateway/locations.d.ts +84 -98
- package/resources/zero-trust/gateway/locations.d.ts.map +1 -1
- package/resources/zero-trust/gateway/locations.js +5 -5
- package/resources/zero-trust/gateway/locations.js.map +1 -1
- package/resources/zero-trust/gateway/locations.mjs +5 -5
- package/resources/zero-trust/gateway/locations.mjs.map +1 -1
- package/resources/zero-trust/gateway/logging.d.ts +60 -23
- package/resources/zero-trust/gateway/logging.d.ts.map +1 -1
- package/resources/zero-trust/gateway/logging.js +2 -2
- package/resources/zero-trust/gateway/logging.mjs +2 -2
- package/resources/zero-trust/gateway/proxy-endpoints.d.ts +16 -16
- package/resources/zero-trust/gateway/proxy-endpoints.js +5 -5
- package/resources/zero-trust/gateway/proxy-endpoints.mjs +5 -5
- package/resources/zero-trust/gateway/rules.d.ts +514 -439
- package/resources/zero-trust/gateway/rules.d.ts.map +1 -1
- package/resources/zero-trust/gateway/rules.js +8 -10
- package/resources/zero-trust/gateway/rules.js.map +1 -1
- package/resources/zero-trust/gateway/rules.mjs +8 -10
- package/resources/zero-trust/gateway/rules.mjs.map +1 -1
- package/resources/zero-trust/networks/hostname-routes.d.ts +188 -0
- package/resources/zero-trust/networks/hostname-routes.d.ts.map +1 -0
- package/resources/zero-trust/networks/hostname-routes.js +100 -0
- package/resources/zero-trust/networks/hostname-routes.js.map +1 -0
- package/resources/zero-trust/networks/hostname-routes.mjs +95 -0
- package/resources/zero-trust/networks/hostname-routes.mjs.map +1 -0
- package/resources/zero-trust/networks/index.d.ts +1 -0
- package/resources/zero-trust/networks/index.d.ts.map +1 -1
- package/resources/zero-trust/networks/index.js +4 -1
- package/resources/zero-trust/networks/index.js.map +1 -1
- package/resources/zero-trust/networks/index.mjs +1 -0
- package/resources/zero-trust/networks/index.mjs.map +1 -1
- package/resources/zero-trust/networks/networks.d.ts +4 -0
- package/resources/zero-trust/networks/networks.d.ts.map +1 -1
- package/resources/zero-trust/networks/networks.js +5 -0
- package/resources/zero-trust/networks/networks.js.map +1 -1
- package/resources/zero-trust/networks/networks.mjs +5 -0
- package/resources/zero-trust/networks/networks.mjs.map +1 -1
- package/resources/zero-trust/organizations/doh.d.ts +0 -6
- package/resources/zero-trust/organizations/doh.d.ts.map +1 -1
- package/resources/zero-trust/organizations/organizations.d.ts +0 -2
- package/resources/zero-trust/organizations/organizations.d.ts.map +1 -1
- package/resources/zero-trust/organizations/organizations.js.map +1 -1
- package/resources/zero-trust/organizations/organizations.mjs.map +1 -1
- package/resources/zero-trust/tunnels/cloudflared/configurations.d.ts +0 -24
- package/resources/zero-trust/tunnels/cloudflared/configurations.d.ts.map +1 -1
- package/src/core.ts +3 -3
- package/src/resources/addressing/prefixes/prefixes.ts +16 -8
- package/src/resources/ai/ai.ts +17 -0
- package/src/resources/ai/index.ts +6 -0
- package/src/resources/ai/to-markdown.ts +61 -0
- package/src/resources/ai-gateway/ai-gateway.ts +282 -12
- package/src/resources/ai-gateway/logs.ts +4 -2
- package/src/resources/alerting/destinations/pagerduty.ts +12 -25
- package/src/resources/alerting/destinations/webhooks.ts +12 -25
- package/src/resources/alerting/policies.ts +14 -3
- package/src/resources/bot-management.ts +61 -0
- package/src/resources/browser-rendering/json.ts +1 -1
- package/src/resources/browser-rendering/links.ts +5 -0
- package/src/resources/calls/turn.ts +5 -1
- package/src/resources/cloudforce-one/threat-events/crons.ts +1 -67
- package/src/resources/cloudforce-one/threat-events/datasets/datasets.ts +2 -6
- package/src/resources/cloudforce-one/threat-events/datasets/health.ts +1 -175
- package/src/resources/cloudforce-one/threat-events/datasets/index.ts +1 -1
- package/src/resources/cloudforce-one/threat-events/index.ts +1 -7
- package/src/resources/cloudforce-one/threat-events/tags.ts +110 -5
- package/src/resources/cloudforce-one/threat-events/threat-events.ts +45 -10
- package/src/resources/dns/dns.ts +15 -2
- package/src/resources/dns/index.ts +7 -1
- package/src/resources/dns/records.ts +267 -8
- package/src/resources/dns/settings/account/account.ts +48 -45
- package/src/resources/dns/settings/index.ts +1 -1
- package/src/resources/dns/settings/settings.ts +0 -104
- package/src/resources/dns/settings/zone.ts +49 -46
- package/src/resources/dns-firewall/dns-firewall.ts +156 -48
- package/src/resources/email-routing/dns.ts +2 -4
- package/src/resources/email-security/settings/domains.ts +12 -0
- package/src/resources/images/v1/stats.ts +3 -1
- package/src/resources/intel/indicator-feeds/downloads.ts +1 -55
- package/src/resources/intel/indicator-feeds/index.ts +1 -1
- package/src/resources/intel/indicator-feeds/indicator-feeds.ts +2 -6
- package/src/resources/load-balancers/index.ts +11 -0
- package/src/resources/load-balancers/load-balancers.ts +27 -0
- package/src/resources/load-balancers/monitor-groups.ts +436 -0
- package/src/resources/load-balancers/pools/pools.ts +24 -0
- package/src/resources/logs/rayid.ts +1 -1
- package/src/resources/logs/received/fields.ts +1 -1
- package/src/resources/logs/received/received.ts +1 -1
- package/src/resources/magic-transit/cf-interconnects.ts +30 -0
- package/src/resources/magic-transit/gre-tunnels.ts +48 -0
- package/src/resources/magic-transit/ipsec-tunnels.ts +144 -0
- package/src/resources/magic-transit/pcaps/download.ts +1 -1
- package/src/resources/magic-transit/pcaps/ownership.ts +4 -4
- package/src/resources/magic-transit/pcaps/pcaps.ts +6 -6
- package/src/resources/page-rules.ts +20 -4
- package/src/resources/page-shield/connections.ts +1 -1
- package/src/resources/page-shield/cookies.ts +1 -1
- package/src/resources/page-shield/scripts.ts +1 -1
- package/src/resources/radar/ai/inference/summary.ts +2 -10
- package/src/resources/radar/ai/inference/timeseries-groups/summary.ts +2 -10
- package/src/resources/radar/ai/to-markdown.ts +1 -1
- package/src/resources/radar/entities/asns.ts +86 -0
- package/src/resources/radar/entities/entities.ts +4 -0
- package/src/resources/radar/entities/index.ts +2 -0
- package/src/resources/radar/http/ases/ases.ts +8 -0
- package/src/resources/radar/http/ases/bot-class.ts +8 -0
- package/src/resources/radar/http/ases/browser-family.ts +8 -0
- package/src/resources/radar/http/ases/device-type.ts +8 -0
- package/src/resources/radar/http/ases/http-method.ts +8 -0
- package/src/resources/radar/http/ases/http-protocol.ts +8 -0
- package/src/resources/radar/http/ases/ip-version.ts +8 -0
- package/src/resources/radar/http/ases/os.ts +8 -0
- package/src/resources/radar/http/ases/tls-version.ts +8 -0
- package/src/resources/radar/http/http.ts +8 -0
- package/src/resources/radar/http/locations/bot-class.ts +8 -0
- package/src/resources/radar/http/locations/browser-family.ts +8 -0
- package/src/resources/radar/http/locations/device-type.ts +8 -0
- package/src/resources/radar/http/locations/http-method.ts +8 -0
- package/src/resources/radar/http/locations/http-protocol.ts +8 -0
- package/src/resources/radar/http/locations/ip-version.ts +8 -0
- package/src/resources/radar/http/locations/locations.ts +8 -0
- package/src/resources/radar/http/locations/os.ts +8 -0
- package/src/resources/radar/http/locations/tls-version.ts +8 -0
- package/src/resources/radar/http/summary.ts +72 -38
- package/src/resources/radar/http/timeseries-groups.ts +90 -50
- package/src/resources/radar/http/top.ts +16 -0
- package/src/resources/radar/leaked-credentials/summary.ts +2 -10
- package/src/resources/radar/leaked-credentials/timeseries-groups.ts +2 -10
- package/src/resources/radar/netflows/netflows.ts +17 -4
- package/src/resources/radar/netflows/top.ts +16 -0
- package/src/resources/radar/search.ts +2 -0
- package/src/resources/request-tracers/traces.ts +1 -1
- package/src/resources/resource-sharing/recipients.ts +100 -6
- package/src/resources/resource-sharing/resource-sharing.ts +470 -6
- package/src/resources/resource-sharing/resources.ts +49 -7
- package/src/resources/rules/lists/items.ts +9 -0
- package/src/resources/snippets/snippets.ts +3 -6
- package/src/resources/stream/downloads.ts +4 -2
- package/src/resources/workers/beta/beta.ts +2 -0
- package/src/resources/workers/beta/index.ts +1 -0
- package/src/resources/workers/beta/workers/index.ts +1 -0
- package/src/resources/workers/beta/workers/versions.ts +331 -16
- package/src/resources/workers/beta/workers/workers.ts +160 -18
- package/src/resources/workers/index.ts +2 -0
- package/src/resources/workers/scripts/content.ts +1 -0
- package/src/resources/workers/scripts/index.ts +2 -0
- package/src/resources/workers/scripts/script-and-version-settings.ts +439 -13
- package/src/resources/workers/scripts/scripts.ts +261 -8
- package/src/resources/workers/scripts/secrets.ts +22 -12
- package/src/resources/workers/scripts/settings.ts +15 -0
- package/src/resources/workers/scripts/versions.ts +405 -9
- package/src/resources/workers/workers.ts +4 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts +136 -4
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/content.ts +1 -0
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/scripts.ts +149 -8
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/secrets.ts +16 -6
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts +439 -13
- package/src/resources/workers-for-platforms/dispatch/namespaces/scripts/tags.ts +2 -8
- package/src/resources/workflows/instances/instances.ts +6 -0
- package/src/resources/zero-trust/access/applications/applications.ts +0 -168
- package/src/resources/zero-trust/access/bookmarks.ts +0 -4
- package/src/resources/zero-trust/access/certificates/certificates.ts +0 -4
- package/src/resources/zero-trust/access/custom-pages.ts +0 -28
- package/src/resources/zero-trust/access/groups.ts +0 -16
- package/src/resources/zero-trust/access/service-tokens.ts +47 -20
- package/src/resources/zero-trust/access/tags.ts +0 -9
- package/src/resources/zero-trust/devices/devices_.ts +114 -6
- package/src/resources/zero-trust/devices/registrations.ts +88 -6
- package/src/resources/zero-trust/gateway/app-types.ts +10 -10
- package/src/resources/zero-trust/gateway/audit-ssh-settings.ts +11 -11
- package/src/resources/zero-trust/gateway/categories.ts +17 -19
- package/src/resources/zero-trust/gateway/certificates.ts +84 -83
- package/src/resources/zero-trust/gateway/configurations/configurations.ts +212 -192
- package/src/resources/zero-trust/gateway/configurations/custom-certificate.ts +1 -1
- package/src/resources/zero-trust/gateway/gateway.ts +8 -8
- package/src/resources/zero-trust/gateway/lists/items.ts +2 -2
- package/src/resources/zero-trust/gateway/lists/lists.ts +32 -32
- package/src/resources/zero-trust/gateway/locations.ts +84 -98
- package/src/resources/zero-trust/gateway/logging.ts +60 -23
- package/src/resources/zero-trust/gateway/proxy-endpoints.ts +16 -16
- package/src/resources/zero-trust/gateway/rules.ts +515 -440
- package/src/resources/zero-trust/networks/hostname-routes.ts +283 -0
- package/src/resources/zero-trust/networks/index.ts +10 -0
- package/src/resources/zero-trust/networks/networks.ts +25 -0
- package/src/resources/zero-trust/organizations/doh.ts +0 -12
- package/src/resources/zero-trust/organizations/organizations.ts +0 -4
- package/src/resources/zero-trust/tunnels/cloudflared/configurations.ts +0 -28
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -7,7 +7,7 @@ import { SinglePage } from '../../../pagination';
|
|
|
7
7
|
|
|
8
8
|
export class Rules extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Create a new Zero Trust Gateway rule.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -29,7 +29,7 @@ export class Rules extends APIResource {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Update a configured Zero Trust Gateway rule.
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
35
35
|
* ```ts
|
|
@@ -59,7 +59,7 @@ export class Rules extends APIResource {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* List Zero Trust Gateway rules for an account.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* ```ts
|
|
@@ -80,7 +80,7 @@ export class Rules extends APIResource {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Delete a Zero Trust Gateway rule.
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
86
|
* ```ts
|
|
@@ -104,7 +104,7 @@ export class Rules extends APIResource {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Get a single Zero Trust Gateway rule.
|
|
108
108
|
*
|
|
109
109
|
* @example
|
|
110
110
|
* ```ts
|
|
@@ -125,11 +125,9 @@ export class Rules extends APIResource {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* Resets the expiration of a Zero Trust Gateway Rule if its duration
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* The Zero Trust Gateway Rule must have values for both `expiration.expires_at`
|
|
132
|
-
* and `expiration.duration`.
|
|
128
|
+
* Resets the expiration of a Zero Trust Gateway Rule if its duration elapsed and
|
|
129
|
+
* it has a default duration. The Zero Trust Gateway Rule must have values for both
|
|
130
|
+
* `expiration.expires_at` and `expiration.duration`.
|
|
133
131
|
*
|
|
134
132
|
* @example
|
|
135
133
|
* ```ts
|
|
@@ -159,23 +157,24 @@ export class GatewayRulesSinglePage extends SinglePage<GatewayRule> {}
|
|
|
159
157
|
|
|
160
158
|
export interface DNSResolverSettingsV4 {
|
|
161
159
|
/**
|
|
162
|
-
* IPv4 address of upstream resolver.
|
|
160
|
+
* Specify the IPv4 address of the upstream resolver.
|
|
163
161
|
*/
|
|
164
162
|
ip: string;
|
|
165
163
|
|
|
166
164
|
/**
|
|
167
|
-
*
|
|
165
|
+
* Specify a port number to use for the upstream resolver. Defaults to 53 if
|
|
166
|
+
* unspecified.
|
|
168
167
|
*/
|
|
169
168
|
port?: number;
|
|
170
169
|
|
|
171
170
|
/**
|
|
172
|
-
*
|
|
173
|
-
* vnet_id
|
|
171
|
+
* Indicate whether to connect to this resolver over a private network. Must set
|
|
172
|
+
* when vnet_id set.
|
|
174
173
|
*/
|
|
175
174
|
route_through_private_network?: boolean;
|
|
176
175
|
|
|
177
176
|
/**
|
|
178
|
-
*
|
|
177
|
+
* Specify an optional virtual network for this resolver. Uses default virtual
|
|
179
178
|
* network id if omitted.
|
|
180
179
|
*/
|
|
181
180
|
vnet_id?: string;
|
|
@@ -183,23 +182,24 @@ export interface DNSResolverSettingsV4 {
|
|
|
183
182
|
|
|
184
183
|
export interface DNSResolverSettingsV4Param {
|
|
185
184
|
/**
|
|
186
|
-
* IPv4 address of upstream resolver.
|
|
185
|
+
* Specify the IPv4 address of the upstream resolver.
|
|
187
186
|
*/
|
|
188
187
|
ip: string;
|
|
189
188
|
|
|
190
189
|
/**
|
|
191
|
-
*
|
|
190
|
+
* Specify a port number to use for the upstream resolver. Defaults to 53 if
|
|
191
|
+
* unspecified.
|
|
192
192
|
*/
|
|
193
193
|
port?: number;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
197
|
-
* vnet_id
|
|
196
|
+
* Indicate whether to connect to this resolver over a private network. Must set
|
|
197
|
+
* when vnet_id set.
|
|
198
198
|
*/
|
|
199
199
|
route_through_private_network?: boolean;
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
202
|
+
* Specify an optional virtual network for this resolver. Uses default virtual
|
|
203
203
|
* network id if omitted.
|
|
204
204
|
*/
|
|
205
205
|
vnet_id?: string;
|
|
@@ -207,23 +207,24 @@ export interface DNSResolverSettingsV4Param {
|
|
|
207
207
|
|
|
208
208
|
export interface DNSResolverSettingsV6 {
|
|
209
209
|
/**
|
|
210
|
-
* IPv6 address of upstream resolver.
|
|
210
|
+
* Specify the IPv6 address of the upstream resolver.
|
|
211
211
|
*/
|
|
212
212
|
ip: string;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* Specify a port number to use for the upstream resolver. Defaults to 53 if
|
|
216
|
+
* unspecified.
|
|
216
217
|
*/
|
|
217
218
|
port?: number;
|
|
218
219
|
|
|
219
220
|
/**
|
|
220
|
-
*
|
|
221
|
-
* vnet_id
|
|
221
|
+
* Indicate whether to connect to this resolver over a private network. Must set
|
|
222
|
+
* when vnet_id set.
|
|
222
223
|
*/
|
|
223
224
|
route_through_private_network?: boolean;
|
|
224
225
|
|
|
225
226
|
/**
|
|
226
|
-
*
|
|
227
|
+
* Specify an optional virtual network for this resolver. Uses default virtual
|
|
227
228
|
* network id if omitted.
|
|
228
229
|
*/
|
|
229
230
|
vnet_id?: string;
|
|
@@ -231,42 +232,43 @@ export interface DNSResolverSettingsV6 {
|
|
|
231
232
|
|
|
232
233
|
export interface DNSResolverSettingsV6Param {
|
|
233
234
|
/**
|
|
234
|
-
* IPv6 address of upstream resolver.
|
|
235
|
+
* Specify the IPv6 address of the upstream resolver.
|
|
235
236
|
*/
|
|
236
237
|
ip: string;
|
|
237
238
|
|
|
238
239
|
/**
|
|
239
|
-
*
|
|
240
|
+
* Specify a port number to use for the upstream resolver. Defaults to 53 if
|
|
241
|
+
* unspecified.
|
|
240
242
|
*/
|
|
241
243
|
port?: number;
|
|
242
244
|
|
|
243
245
|
/**
|
|
244
|
-
*
|
|
245
|
-
* vnet_id
|
|
246
|
+
* Indicate whether to connect to this resolver over a private network. Must set
|
|
247
|
+
* when vnet_id set.
|
|
246
248
|
*/
|
|
247
249
|
route_through_private_network?: boolean;
|
|
248
250
|
|
|
249
251
|
/**
|
|
250
|
-
*
|
|
252
|
+
* Specify an optional virtual network for this resolver. Uses default virtual
|
|
251
253
|
* network id if omitted.
|
|
252
254
|
*/
|
|
253
255
|
vnet_id?: string;
|
|
254
256
|
}
|
|
255
257
|
|
|
256
258
|
/**
|
|
257
|
-
*
|
|
259
|
+
* Specify the protocol or layer to use.
|
|
258
260
|
*/
|
|
259
261
|
export type GatewayFilter = 'http' | 'dns' | 'l4' | 'egress' | 'dns_resolver';
|
|
260
262
|
|
|
261
263
|
/**
|
|
262
|
-
*
|
|
264
|
+
* Specify the protocol or layer to use.
|
|
263
265
|
*/
|
|
264
266
|
export type GatewayFilterParam = 'http' | 'dns' | 'l4' | 'egress' | 'dns_resolver';
|
|
265
267
|
|
|
266
268
|
export interface GatewayRule {
|
|
267
269
|
/**
|
|
268
|
-
*
|
|
269
|
-
* expressions
|
|
270
|
+
* Specify the action to perform when the associated traffic, identity, and device
|
|
271
|
+
* posture expressions either absent or evaluate to `true`.
|
|
270
272
|
*/
|
|
271
273
|
action:
|
|
272
274
|
| 'on'
|
|
@@ -287,318 +289,343 @@ export interface GatewayRule {
|
|
|
287
289
|
| 'redirect';
|
|
288
290
|
|
|
289
291
|
/**
|
|
290
|
-
*
|
|
292
|
+
* Specify whether the rule is enabled.
|
|
291
293
|
*/
|
|
292
294
|
enabled: boolean;
|
|
293
295
|
|
|
294
296
|
/**
|
|
295
|
-
*
|
|
296
|
-
* expressions.
|
|
297
|
+
* Specify the protocol or layer to evaluate the traffic, identity, and device
|
|
298
|
+
* posture expressions.
|
|
297
299
|
*/
|
|
298
300
|
filters: Array<GatewayFilter>;
|
|
299
301
|
|
|
300
302
|
/**
|
|
301
|
-
*
|
|
303
|
+
* Specify the rule name.
|
|
302
304
|
*/
|
|
303
305
|
name: string;
|
|
304
306
|
|
|
305
307
|
/**
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
308
|
+
* Set the order of your rules. Lower values indicate higher precedence. At each
|
|
309
|
+
* processing phase, evaluate applicable rules in ascending order of this value.
|
|
310
|
+
* Refer to
|
|
309
311
|
* [Order of enforcement](http://developers.cloudflare.com/learning-paths/secure-internet-traffic/understand-policies/order-of-enforcement/#manage-precedence-with-terraform)
|
|
310
|
-
*
|
|
312
|
+
* to manage precedence via Terraform.
|
|
311
313
|
*/
|
|
312
314
|
precedence: number;
|
|
313
315
|
|
|
314
316
|
/**
|
|
315
|
-
*
|
|
316
|
-
* formats and sanitizes
|
|
317
|
-
*
|
|
317
|
+
* Specify the wirefilter expression used for traffic matching. The API
|
|
318
|
+
* automatically formats and sanitizes expressions before storing them. To prevent
|
|
319
|
+
* Terraform state drift, use the formatted expression returned in the API
|
|
320
|
+
* response.
|
|
318
321
|
*/
|
|
319
322
|
traffic: string;
|
|
320
323
|
|
|
321
324
|
/**
|
|
322
|
-
*
|
|
325
|
+
* Identify the API resource with a UUID.
|
|
323
326
|
*/
|
|
324
327
|
id?: string;
|
|
325
328
|
|
|
326
329
|
created_at?: string;
|
|
327
330
|
|
|
328
331
|
/**
|
|
329
|
-
*
|
|
332
|
+
* Indicate the date of deletion, if any.
|
|
330
333
|
*/
|
|
331
334
|
deleted_at?: string | null;
|
|
332
335
|
|
|
333
336
|
/**
|
|
334
|
-
*
|
|
337
|
+
* Specify the rule description.
|
|
335
338
|
*/
|
|
336
339
|
description?: string;
|
|
337
340
|
|
|
338
341
|
/**
|
|
339
|
-
*
|
|
340
|
-
* automatically formats and sanitizes
|
|
341
|
-
*
|
|
342
|
+
* Specify the wirefilter expression used for device posture check. The API
|
|
343
|
+
* automatically formats and sanitizes expressions before storing them. To prevent
|
|
344
|
+
* Terraform state drift, use the formatted expression returned in the API
|
|
345
|
+
* response.
|
|
342
346
|
*/
|
|
343
347
|
device_posture?: string;
|
|
344
348
|
|
|
345
349
|
/**
|
|
346
|
-
*
|
|
347
|
-
* over the policy's `schedule` configuration, if any.
|
|
348
|
-
*
|
|
349
|
-
* This does not apply to HTTP or network policies.
|
|
350
|
+
* Defines the expiration time stamp and default duration of a DNS policy. Takes
|
|
351
|
+
* precedence over the policy's `schedule` configuration, if any. This does not
|
|
352
|
+
* apply to HTTP or network policies. Settable only for `dns` rules.
|
|
350
353
|
*/
|
|
351
354
|
expiration?: GatewayRule.Expiration | null;
|
|
352
355
|
|
|
353
356
|
/**
|
|
354
|
-
*
|
|
355
|
-
* formats and sanitizes
|
|
356
|
-
*
|
|
357
|
+
* Specify the wirefilter expression used for identity matching. The API
|
|
358
|
+
* automatically formats and sanitizes expressions before storing them. To prevent
|
|
359
|
+
* Terraform state drift, use the formatted expression returned in the API
|
|
360
|
+
* response.
|
|
357
361
|
*/
|
|
358
362
|
identity?: string;
|
|
359
363
|
|
|
360
364
|
/**
|
|
361
|
-
*
|
|
362
|
-
*/
|
|
363
|
-
not_sharable?: boolean;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* The rule was shared via the Orgs API and cannot be edited by the current
|
|
367
|
-
* account.
|
|
365
|
+
* Indicate that this rule is shared via the Orgs API and read only.
|
|
368
366
|
*/
|
|
369
367
|
read_only?: boolean;
|
|
370
368
|
|
|
371
369
|
/**
|
|
372
|
-
*
|
|
370
|
+
* Set settings related to this rule. Each setting is only valid for specific rule
|
|
371
|
+
* types and can only be used with the appropriate selectors. If Terraform drift is
|
|
372
|
+
* observed in these setting values, verify that the setting is supported for the
|
|
373
|
+
* given rule type and that the API response reflects the requested value. If the
|
|
374
|
+
* API response returns sanitized or modified values that differ from the request,
|
|
375
|
+
* use the API-provided values in Terraform to ensure consistency.
|
|
373
376
|
*/
|
|
374
377
|
rule_settings?: RuleSetting;
|
|
375
378
|
|
|
376
379
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
380
|
+
* Defines the schedule for activating DNS policies. Settable only for `dns` and
|
|
381
|
+
* `dns_resolver` rules.
|
|
379
382
|
*/
|
|
380
383
|
schedule?: Schedule | null;
|
|
381
384
|
|
|
382
385
|
/**
|
|
383
|
-
*
|
|
386
|
+
* Indicate that this rule is sharable via the Orgs API.
|
|
387
|
+
*/
|
|
388
|
+
sharable?: boolean;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Provide the account tag of the account that created the rule.
|
|
384
392
|
*/
|
|
385
393
|
source_account?: string;
|
|
386
394
|
|
|
387
395
|
updated_at?: string;
|
|
388
396
|
|
|
389
397
|
/**
|
|
390
|
-
* version number of the rule.
|
|
398
|
+
* Indicate the version number of the rule(read-only).
|
|
391
399
|
*/
|
|
392
400
|
version?: number;
|
|
393
401
|
|
|
394
402
|
/**
|
|
395
|
-
*
|
|
403
|
+
* Indicate a warning for a misconfigured rule, if any.
|
|
396
404
|
*/
|
|
397
405
|
warning_status?: string | null;
|
|
398
406
|
}
|
|
399
407
|
|
|
400
408
|
export namespace GatewayRule {
|
|
401
409
|
/**
|
|
402
|
-
*
|
|
403
|
-
* over the policy's `schedule` configuration, if any.
|
|
404
|
-
*
|
|
405
|
-
* This does not apply to HTTP or network policies.
|
|
410
|
+
* Defines the expiration time stamp and default duration of a DNS policy. Takes
|
|
411
|
+
* precedence over the policy's `schedule` configuration, if any. This does not
|
|
412
|
+
* apply to HTTP or network policies. Settable only for `dns` rules.
|
|
406
413
|
*/
|
|
407
414
|
export interface Expiration {
|
|
408
415
|
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
* Policies with an expiration do not consider the timezone of clients they are
|
|
416
|
-
* applied to, and expire "globally" at the point given by their `expires_at`
|
|
417
|
-
* value.
|
|
416
|
+
* Show the timestamp when the policy expires and stops applying. The value must
|
|
417
|
+
* follow RFC 3339 and include a UTC offset. The system accepts non-zero offsets
|
|
418
|
+
* but converts them to the equivalent UTC+00:00 value and returns timestamps with
|
|
419
|
+
* a trailing Z. Expiration policies ignore client timezones and expire globally at
|
|
420
|
+
* the specified expires_at time.
|
|
418
421
|
*/
|
|
419
422
|
expires_at: string;
|
|
420
423
|
|
|
421
424
|
/**
|
|
422
|
-
*
|
|
425
|
+
* Defines the default duration a policy active in minutes. Must set in order to
|
|
423
426
|
* use the `reset_expiration` endpoint on this rule.
|
|
424
427
|
*/
|
|
425
428
|
duration?: number;
|
|
426
429
|
|
|
427
430
|
/**
|
|
428
|
-
*
|
|
431
|
+
* Indicates whether the policy is expired.
|
|
429
432
|
*/
|
|
430
433
|
expired?: boolean;
|
|
431
434
|
}
|
|
432
435
|
}
|
|
433
436
|
|
|
434
437
|
/**
|
|
435
|
-
*
|
|
438
|
+
* Set settings related to this rule. Each setting is only valid for specific rule
|
|
439
|
+
* types and can only be used with the appropriate selectors. If Terraform drift is
|
|
440
|
+
* observed in these setting values, verify that the setting is supported for the
|
|
441
|
+
* given rule type and that the API response reflects the requested value. If the
|
|
442
|
+
* API response returns sanitized or modified values that differ from the request,
|
|
443
|
+
* use the API-provided values in Terraform to ensure consistency.
|
|
436
444
|
*/
|
|
437
445
|
export interface RuleSetting {
|
|
438
446
|
/**
|
|
439
|
-
* Add custom headers to allowed requests
|
|
440
|
-
*
|
|
447
|
+
* Add custom headers to allowed requests as key-value pairs. Use header names as
|
|
448
|
+
* keys that map to arrays of header values. Settable only for `http` rules with
|
|
449
|
+
* the action set to `allow`.
|
|
441
450
|
*/
|
|
442
451
|
add_headers?: { [key: string]: Array<string> } | null;
|
|
443
452
|
|
|
444
453
|
/**
|
|
445
|
-
* Set
|
|
454
|
+
* Set to enable MSP children to bypass this rule. Only parent MSP accounts can set
|
|
455
|
+
* this. this rule. Settable for all types of rules.
|
|
446
456
|
*/
|
|
447
457
|
allow_child_bypass?: boolean | null;
|
|
448
458
|
|
|
449
459
|
/**
|
|
450
|
-
*
|
|
460
|
+
* Define the settings for the Audit SSH action. Settable only for `l4` rules with
|
|
461
|
+
* `audit_ssh` action.
|
|
451
462
|
*/
|
|
452
463
|
audit_ssh?: RuleSetting.AuditSSH | null;
|
|
453
464
|
|
|
454
465
|
/**
|
|
455
|
-
* Configure
|
|
466
|
+
* Configure browser isolation behavior. Settable only for `http` rules with the
|
|
467
|
+
* action set to `isolate`.
|
|
456
468
|
*/
|
|
457
469
|
biso_admin_controls?: RuleSetting.BISOAdminControls;
|
|
458
470
|
|
|
459
471
|
/**
|
|
460
|
-
*
|
|
461
|
-
* settings.
|
|
472
|
+
* Configure custom block page settings. If missing or null, use the account
|
|
473
|
+
* settings. Settable only for `http` rules with the action set to `block`.
|
|
462
474
|
*/
|
|
463
475
|
block_page?: RuleSetting.BlockPage | null;
|
|
464
476
|
|
|
465
477
|
/**
|
|
466
|
-
* Enable the custom block page.
|
|
478
|
+
* Enable the custom block page. Settable only for `dns` rules with action `block`.
|
|
467
479
|
*/
|
|
468
480
|
block_page_enabled?: boolean;
|
|
469
481
|
|
|
470
482
|
/**
|
|
471
|
-
*
|
|
472
|
-
* (if enabled).
|
|
483
|
+
* Explain why the rule blocks the request. The custom block page shows this text
|
|
484
|
+
* (if enabled). Settable only for `dns`, `l4`, and `http` rules when the action
|
|
485
|
+
* set to `block`.
|
|
473
486
|
*/
|
|
474
487
|
block_reason?: string | null;
|
|
475
488
|
|
|
476
489
|
/**
|
|
477
|
-
* Set
|
|
490
|
+
* Set to enable MSP accounts to bypass their parent's rules. Only MSP child
|
|
491
|
+
* accounts can set this. Settable for all types of rules.
|
|
478
492
|
*/
|
|
479
493
|
bypass_parent_rule?: boolean | null;
|
|
480
494
|
|
|
481
495
|
/**
|
|
482
|
-
* Configure
|
|
496
|
+
* Configure session check behavior. Settable only for `l4` and `http` rules with
|
|
497
|
+
* the action set to `allow`.
|
|
483
498
|
*/
|
|
484
499
|
check_session?: RuleSetting.CheckSession | null;
|
|
485
500
|
|
|
486
501
|
/**
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
* valid when a rule's action
|
|
502
|
+
* Configure custom resolvers to route queries that match the resolver policy.
|
|
503
|
+
* Unused with 'resolve_dns_through_cloudflare' or 'resolve_dns_internally'
|
|
504
|
+
* settings. DNS queries get routed to the address closest to their origin. Only
|
|
505
|
+
* valid when a rule's action set to 'resolve'. Settable only for `dns_resolver`
|
|
506
|
+
* rules.
|
|
491
507
|
*/
|
|
492
508
|
dns_resolvers?: RuleSetting.DNSResolvers | null;
|
|
493
509
|
|
|
494
510
|
/**
|
|
495
511
|
* Configure how Gateway Proxy traffic egresses. You can enable this setting for
|
|
496
512
|
* rules with Egress actions and filters, or omit it to indicate local egress via
|
|
497
|
-
* WARP IPs.
|
|
513
|
+
* WARP IPs. Settable only for `egress` rules.
|
|
498
514
|
*/
|
|
499
515
|
egress?: RuleSetting.Egress | null;
|
|
500
516
|
|
|
501
517
|
/**
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
518
|
+
* Ignore category matches at CNAME domains in a response. When off, evaluate
|
|
519
|
+
* categories in this rule against all CNAME domain categories in the response.
|
|
520
|
+
* Settable only for `dns` and `dns_resolver` rules.
|
|
505
521
|
*/
|
|
506
522
|
ignore_cname_category_matches?: boolean;
|
|
507
523
|
|
|
508
524
|
/**
|
|
509
|
-
*
|
|
525
|
+
* Specify whether to disable DNSSEC validation (for Allow actions) [INSECURE].
|
|
526
|
+
* Settable only for `dns` rules.
|
|
510
527
|
*/
|
|
511
528
|
insecure_disable_dnssec_validation?: boolean;
|
|
512
529
|
|
|
513
530
|
/**
|
|
514
|
-
*
|
|
515
|
-
*
|
|
531
|
+
* Enable IPs in DNS resolver category blocks. The system blocks only domain name
|
|
532
|
+
* categories unless you enable this setting. Settable only for `dns` and
|
|
533
|
+
* `dns_resolver` rules.
|
|
516
534
|
*/
|
|
517
535
|
ip_categories?: boolean;
|
|
518
536
|
|
|
519
537
|
/**
|
|
520
|
-
*
|
|
521
|
-
* indicator feeds
|
|
538
|
+
* Indicates whether to include IPs in DNS resolver indicator feed blocks. Default,
|
|
539
|
+
* indicator feeds block only domain names. Settable only for `dns` and
|
|
540
|
+
* `dns_resolver` rules.
|
|
522
541
|
*/
|
|
523
542
|
ip_indicator_feeds?: boolean;
|
|
524
543
|
|
|
525
544
|
/**
|
|
526
|
-
* Send matching traffic to the supplied destination IP address
|
|
545
|
+
* Send matching traffic to the supplied destination IP address and port. Settable
|
|
546
|
+
* only for `l4` rules with the action set to `l4_override`.
|
|
527
547
|
*/
|
|
528
548
|
l4override?: RuleSetting.L4override | null;
|
|
529
549
|
|
|
530
550
|
/**
|
|
531
|
-
* Configure a notification to display on the user's device when this rule
|
|
532
|
-
*
|
|
551
|
+
* Configure a notification to display on the user's device when this rule matched.
|
|
552
|
+
* Settable for all types of rules with the action set to `block`.
|
|
533
553
|
*/
|
|
534
554
|
notification_settings?: RuleSetting.NotificationSettings | null;
|
|
535
555
|
|
|
536
556
|
/**
|
|
537
|
-
*
|
|
557
|
+
* Defines a hostname for override, for the matching DNS queries. Settable only for
|
|
558
|
+
* `dns` rules with the action set to `override`.
|
|
538
559
|
*/
|
|
539
560
|
override_host?: string;
|
|
540
561
|
|
|
541
562
|
/**
|
|
542
|
-
*
|
|
563
|
+
* Defines a an IP or set of IPs for overriding matched DNS queries. Settable only
|
|
564
|
+
* for `dns` rules with the action set to `override`.
|
|
543
565
|
*/
|
|
544
566
|
override_ips?: Array<string> | null;
|
|
545
567
|
|
|
546
568
|
/**
|
|
547
|
-
* Configure DLP payload logging.
|
|
569
|
+
* Configure DLP payload logging. Settable only for `http` rules.
|
|
548
570
|
*/
|
|
549
571
|
payload_log?: RuleSetting.PayloadLog | null;
|
|
550
572
|
|
|
551
573
|
/**
|
|
552
|
-
*
|
|
574
|
+
* Configure settings that apply to quarantine rules. Settable only for `http`
|
|
575
|
+
* rules.
|
|
553
576
|
*/
|
|
554
577
|
quarantine?: RuleSetting.Quarantine | null;
|
|
555
578
|
|
|
556
579
|
/**
|
|
557
|
-
*
|
|
580
|
+
* Apply settings to redirect rules. Settable only for `http` rules with the action
|
|
581
|
+
* set to `redirect`.
|
|
558
582
|
*/
|
|
559
583
|
redirect?: RuleSetting.Redirect | null;
|
|
560
584
|
|
|
561
585
|
/**
|
|
562
586
|
* Configure to forward the query to the internal DNS service, passing the
|
|
563
|
-
* specified 'view_id' as input.
|
|
564
|
-
*
|
|
565
|
-
*
|
|
587
|
+
* specified 'view_id' as input. Not used when 'dns_resolvers' is specified or
|
|
588
|
+
* 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action set to
|
|
589
|
+
* 'resolve'. Settable only for `dns_resolver` rules.
|
|
566
590
|
*/
|
|
567
591
|
resolve_dns_internally?: RuleSetting.ResolveDNSInternally | null;
|
|
568
592
|
|
|
569
593
|
/**
|
|
570
594
|
* Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
|
|
571
|
-
* resolver. Cannot
|
|
572
|
-
*
|
|
573
|
-
*
|
|
595
|
+
* resolver. Cannot set when 'dns_resolvers' specified or 'resolve_dns_internally'
|
|
596
|
+
* is set. Only valid when a rule's action set to 'resolve'. Settable only for
|
|
597
|
+
* `dns_resolver` rules.
|
|
574
598
|
*/
|
|
575
599
|
resolve_dns_through_cloudflare?: boolean | null;
|
|
576
600
|
|
|
577
601
|
/**
|
|
578
|
-
* Configure behavior when an upstream
|
|
602
|
+
* Configure behavior when an upstream certificate is invalid or an SSL error
|
|
603
|
+
* occurs. Settable only for `http` rules with the action set to `allow`.
|
|
579
604
|
*/
|
|
580
605
|
untrusted_cert?: RuleSetting.UntrustedCERT | null;
|
|
581
606
|
}
|
|
582
607
|
|
|
583
608
|
export namespace RuleSetting {
|
|
584
609
|
/**
|
|
585
|
-
*
|
|
610
|
+
* Define the settings for the Audit SSH action. Settable only for `l4` rules with
|
|
611
|
+
* `audit_ssh` action.
|
|
586
612
|
*/
|
|
587
613
|
export interface AuditSSH {
|
|
588
614
|
/**
|
|
589
|
-
* Enable
|
|
615
|
+
* Enable SSH command logging.
|
|
590
616
|
*/
|
|
591
617
|
command_logging?: boolean;
|
|
592
618
|
}
|
|
593
619
|
|
|
594
620
|
/**
|
|
595
|
-
* Configure
|
|
621
|
+
* Configure browser isolation behavior. Settable only for `http` rules with the
|
|
622
|
+
* action set to `isolate`.
|
|
596
623
|
*/
|
|
597
624
|
export interface BISOAdminControls {
|
|
598
625
|
/**
|
|
599
|
-
* Configure
|
|
600
|
-
*
|
|
601
|
-
*
|
|
626
|
+
* Configure copy behavior. If set to remote_only, users cannot copy isolated
|
|
627
|
+
* content from the remote browser to the local clipboard. If this field is absent,
|
|
628
|
+
* copying remains enabled. Applies only when version == "v2".
|
|
602
629
|
*/
|
|
603
630
|
copy?: 'enabled' | 'disabled' | 'remote_only';
|
|
604
631
|
|
|
@@ -618,8 +645,8 @@ export namespace RuleSetting {
|
|
|
618
645
|
dk?: boolean;
|
|
619
646
|
|
|
620
647
|
/**
|
|
621
|
-
* Configure
|
|
622
|
-
*
|
|
648
|
+
* Configure download behavior. When set to remote_only, users can view downloads
|
|
649
|
+
* but cannot save them. Applies only when version == "v2".
|
|
623
650
|
*/
|
|
624
651
|
download?: 'enabled' | 'disabled' | 'remote_only';
|
|
625
652
|
|
|
@@ -634,74 +661,75 @@ export namespace RuleSetting {
|
|
|
634
661
|
du?: boolean;
|
|
635
662
|
|
|
636
663
|
/**
|
|
637
|
-
* Configure
|
|
638
|
-
*
|
|
664
|
+
* Configure keyboard usage behavior. If this field is absent, keyboard usage
|
|
665
|
+
* remains enabled. Applies only when version == "v2".
|
|
639
666
|
*/
|
|
640
667
|
keyboard?: 'enabled' | 'disabled';
|
|
641
668
|
|
|
642
669
|
/**
|
|
643
|
-
* Configure
|
|
644
|
-
*
|
|
645
|
-
*
|
|
670
|
+
* Configure paste behavior. If set to remote_only, users cannot paste content from
|
|
671
|
+
* the local clipboard into isolated pages. If this field is absent, pasting
|
|
672
|
+
* remains enabled. Applies only when version == "v2".
|
|
646
673
|
*/
|
|
647
674
|
paste?: 'enabled' | 'disabled' | 'remote_only';
|
|
648
675
|
|
|
649
676
|
/**
|
|
650
|
-
* Configure
|
|
651
|
-
*
|
|
677
|
+
* Configure print behavior. Default, Printing is enabled. Applies only when
|
|
678
|
+
* version == "v2".
|
|
652
679
|
*/
|
|
653
680
|
printing?: 'enabled' | 'disabled';
|
|
654
681
|
|
|
655
682
|
/**
|
|
656
|
-
* Configure
|
|
657
|
-
*
|
|
683
|
+
* Configure upload behavior. If this field is absent, uploading remains enabled.
|
|
684
|
+
* Applies only when version == "v2".
|
|
658
685
|
*/
|
|
659
686
|
upload?: 'enabled' | 'disabled';
|
|
660
687
|
|
|
661
688
|
/**
|
|
662
|
-
*
|
|
689
|
+
* Indicate which version of the browser isolation controls should apply.
|
|
663
690
|
*/
|
|
664
691
|
version?: 'v1' | 'v2';
|
|
665
692
|
}
|
|
666
693
|
|
|
667
694
|
/**
|
|
668
|
-
*
|
|
669
|
-
* settings.
|
|
695
|
+
* Configure custom block page settings. If missing or null, use the account
|
|
696
|
+
* settings. Settable only for `http` rules with the action set to `block`.
|
|
670
697
|
*/
|
|
671
698
|
export interface BlockPage {
|
|
672
699
|
/**
|
|
673
|
-
* URI to which the user
|
|
700
|
+
* Specify the URI to which the user is redirected.
|
|
674
701
|
*/
|
|
675
702
|
target_uri: string;
|
|
676
703
|
|
|
677
704
|
/**
|
|
678
|
-
*
|
|
705
|
+
* Specify whether to pass the context information as query parameters.
|
|
679
706
|
*/
|
|
680
707
|
include_context?: boolean;
|
|
681
708
|
}
|
|
682
709
|
|
|
683
710
|
/**
|
|
684
|
-
* Configure
|
|
711
|
+
* Configure session check behavior. Settable only for `l4` and `http` rules with
|
|
712
|
+
* the action set to `allow`.
|
|
685
713
|
*/
|
|
686
714
|
export interface CheckSession {
|
|
687
715
|
/**
|
|
688
|
-
*
|
|
689
|
-
*
|
|
690
|
-
* version that may differ from your input and cause Terraform state drift.
|
|
716
|
+
* Sets the required session freshness threshold. The API returns a normalized
|
|
717
|
+
* version of this value.
|
|
691
718
|
*/
|
|
692
719
|
duration?: string;
|
|
693
720
|
|
|
694
721
|
/**
|
|
695
|
-
*
|
|
722
|
+
* Enable session enforcement.
|
|
696
723
|
*/
|
|
697
724
|
enforce?: boolean;
|
|
698
725
|
}
|
|
699
726
|
|
|
700
727
|
/**
|
|
701
|
-
*
|
|
702
|
-
*
|
|
703
|
-
*
|
|
704
|
-
* valid when a rule's action
|
|
728
|
+
* Configure custom resolvers to route queries that match the resolver policy.
|
|
729
|
+
* Unused with 'resolve_dns_through_cloudflare' or 'resolve_dns_internally'
|
|
730
|
+
* settings. DNS queries get routed to the address closest to their origin. Only
|
|
731
|
+
* valid when a rule's action set to 'resolve'. Settable only for `dns_resolver`
|
|
732
|
+
* rules.
|
|
705
733
|
*/
|
|
706
734
|
export interface DNSResolvers {
|
|
707
735
|
ipv4?: Array<RulesAPI.DNSResolverSettingsV4>;
|
|
@@ -712,54 +740,54 @@ export namespace RuleSetting {
|
|
|
712
740
|
/**
|
|
713
741
|
* Configure how Gateway Proxy traffic egresses. You can enable this setting for
|
|
714
742
|
* rules with Egress actions and filters, or omit it to indicate local egress via
|
|
715
|
-
* WARP IPs.
|
|
743
|
+
* WARP IPs. Settable only for `egress` rules.
|
|
716
744
|
*/
|
|
717
745
|
export interface Egress {
|
|
718
746
|
/**
|
|
719
|
-
*
|
|
747
|
+
* Specify the IPv4 address to use for egress.
|
|
720
748
|
*/
|
|
721
749
|
ipv4?: string;
|
|
722
750
|
|
|
723
751
|
/**
|
|
724
|
-
*
|
|
725
|
-
*
|
|
726
|
-
* WARP IPs.
|
|
752
|
+
* Specify the fallback IPv4 address to use for egress when the primary IPv4 fails.
|
|
753
|
+
* Set '0.0.0.0' to indicate local egress via WARP IPs.
|
|
727
754
|
*/
|
|
728
755
|
ipv4_fallback?: string;
|
|
729
756
|
|
|
730
757
|
/**
|
|
731
|
-
*
|
|
758
|
+
* Specify the IPv6 range to use for egress.
|
|
732
759
|
*/
|
|
733
760
|
ipv6?: string;
|
|
734
761
|
}
|
|
735
762
|
|
|
736
763
|
/**
|
|
737
|
-
* Send matching traffic to the supplied destination IP address
|
|
764
|
+
* Send matching traffic to the supplied destination IP address and port. Settable
|
|
765
|
+
* only for `l4` rules with the action set to `l4_override`.
|
|
738
766
|
*/
|
|
739
767
|
export interface L4override {
|
|
740
768
|
/**
|
|
741
|
-
* IPv4 or IPv6 address.
|
|
769
|
+
* Defines the IPv4 or IPv6 address.
|
|
742
770
|
*/
|
|
743
771
|
ip?: string;
|
|
744
772
|
|
|
745
773
|
/**
|
|
746
|
-
*
|
|
774
|
+
* Defines a port number to use for TCP/UDP overrides.
|
|
747
775
|
*/
|
|
748
776
|
port?: number;
|
|
749
777
|
}
|
|
750
778
|
|
|
751
779
|
/**
|
|
752
|
-
* Configure a notification to display on the user's device when this rule
|
|
753
|
-
*
|
|
780
|
+
* Configure a notification to display on the user's device when this rule matched.
|
|
781
|
+
* Settable for all types of rules with the action set to `block`.
|
|
754
782
|
*/
|
|
755
783
|
export interface NotificationSettings {
|
|
756
784
|
/**
|
|
757
|
-
*
|
|
785
|
+
* Enable notification.
|
|
758
786
|
*/
|
|
759
787
|
enabled?: boolean;
|
|
760
788
|
|
|
761
789
|
/**
|
|
762
|
-
*
|
|
790
|
+
* Indicates whether to pass the context information as query parameters.
|
|
763
791
|
*/
|
|
764
792
|
include_context?: boolean;
|
|
765
793
|
|
|
@@ -769,28 +797,29 @@ export namespace RuleSetting {
|
|
|
769
797
|
msg?: string;
|
|
770
798
|
|
|
771
799
|
/**
|
|
772
|
-
*
|
|
773
|
-
* notification
|
|
800
|
+
* Defines an optional URL to direct users to additional information. If unset, the
|
|
801
|
+
* notification opens a block page.
|
|
774
802
|
*/
|
|
775
803
|
support_url?: string;
|
|
776
804
|
}
|
|
777
805
|
|
|
778
806
|
/**
|
|
779
|
-
* Configure DLP payload logging.
|
|
807
|
+
* Configure DLP payload logging. Settable only for `http` rules.
|
|
780
808
|
*/
|
|
781
809
|
export interface PayloadLog {
|
|
782
810
|
/**
|
|
783
|
-
*
|
|
811
|
+
* Enable DLP payload logging for this rule.
|
|
784
812
|
*/
|
|
785
813
|
enabled?: boolean;
|
|
786
814
|
}
|
|
787
815
|
|
|
788
816
|
/**
|
|
789
|
-
*
|
|
817
|
+
* Configure settings that apply to quarantine rules. Settable only for `http`
|
|
818
|
+
* rules.
|
|
790
819
|
*/
|
|
791
820
|
export interface Quarantine {
|
|
792
821
|
/**
|
|
793
|
-
*
|
|
822
|
+
* Specify the types of files to sandbox.
|
|
794
823
|
*/
|
|
795
824
|
file_types?: Array<
|
|
796
825
|
| 'exe'
|
|
@@ -810,226 +839,252 @@ export namespace RuleSetting {
|
|
|
810
839
|
}
|
|
811
840
|
|
|
812
841
|
/**
|
|
813
|
-
*
|
|
842
|
+
* Apply settings to redirect rules. Settable only for `http` rules with the action
|
|
843
|
+
* set to `redirect`.
|
|
814
844
|
*/
|
|
815
845
|
export interface Redirect {
|
|
816
846
|
/**
|
|
817
|
-
* URI to which the user
|
|
847
|
+
* Specify the URI to which the user is redirected.
|
|
818
848
|
*/
|
|
819
849
|
target_uri: string;
|
|
820
850
|
|
|
821
851
|
/**
|
|
822
|
-
*
|
|
852
|
+
* Specify whether to pass the context information as query parameters.
|
|
823
853
|
*/
|
|
824
854
|
include_context?: boolean;
|
|
825
855
|
|
|
826
856
|
/**
|
|
827
|
-
*
|
|
828
|
-
*
|
|
857
|
+
* Specify whether to append the path and query parameters from the original
|
|
858
|
+
* request to target_uri.
|
|
829
859
|
*/
|
|
830
860
|
preserve_path_and_query?: boolean;
|
|
831
861
|
}
|
|
832
862
|
|
|
833
863
|
/**
|
|
834
864
|
* Configure to forward the query to the internal DNS service, passing the
|
|
835
|
-
* specified 'view_id' as input.
|
|
836
|
-
*
|
|
837
|
-
*
|
|
865
|
+
* specified 'view_id' as input. Not used when 'dns_resolvers' is specified or
|
|
866
|
+
* 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action set to
|
|
867
|
+
* 'resolve'. Settable only for `dns_resolver` rules.
|
|
838
868
|
*/
|
|
839
869
|
export interface ResolveDNSInternally {
|
|
840
870
|
/**
|
|
841
|
-
*
|
|
842
|
-
* from 'NOERROR' or when the response data only
|
|
843
|
-
* 'AAAA' queries.
|
|
871
|
+
* Specify the fallback behavior to apply when the internal DNS response code
|
|
872
|
+
* differs from 'NOERROR' or when the response data contains only CNAME records for
|
|
873
|
+
* 'A' or 'AAAA' queries.
|
|
844
874
|
*/
|
|
845
875
|
fallback?: 'none' | 'public_dns';
|
|
846
876
|
|
|
847
877
|
/**
|
|
848
|
-
*
|
|
878
|
+
* Specify the internal DNS view identifier to pass to the internal DNS service.
|
|
849
879
|
*/
|
|
850
880
|
view_id?: string;
|
|
851
881
|
}
|
|
852
882
|
|
|
853
883
|
/**
|
|
854
|
-
* Configure behavior when an upstream
|
|
884
|
+
* Configure behavior when an upstream certificate is invalid or an SSL error
|
|
885
|
+
* occurs. Settable only for `http` rules with the action set to `allow`.
|
|
855
886
|
*/
|
|
856
887
|
export interface UntrustedCERT {
|
|
857
888
|
/**
|
|
858
|
-
*
|
|
859
|
-
*
|
|
889
|
+
* Defines the action performed when an untrusted certificate seen. The default
|
|
890
|
+
* action an error with HTTP code 526.
|
|
860
891
|
*/
|
|
861
892
|
action?: 'pass_through' | 'block' | 'error';
|
|
862
893
|
}
|
|
863
894
|
}
|
|
864
895
|
|
|
865
896
|
/**
|
|
866
|
-
*
|
|
897
|
+
* Set settings related to this rule. Each setting is only valid for specific rule
|
|
898
|
+
* types and can only be used with the appropriate selectors. If Terraform drift is
|
|
899
|
+
* observed in these setting values, verify that the setting is supported for the
|
|
900
|
+
* given rule type and that the API response reflects the requested value. If the
|
|
901
|
+
* API response returns sanitized or modified values that differ from the request,
|
|
902
|
+
* use the API-provided values in Terraform to ensure consistency.
|
|
867
903
|
*/
|
|
868
904
|
export interface RuleSettingParam {
|
|
869
905
|
/**
|
|
870
|
-
* Add custom headers to allowed requests
|
|
871
|
-
*
|
|
906
|
+
* Add custom headers to allowed requests as key-value pairs. Use header names as
|
|
907
|
+
* keys that map to arrays of header values. Settable only for `http` rules with
|
|
908
|
+
* the action set to `allow`.
|
|
872
909
|
*/
|
|
873
910
|
add_headers?: { [key: string]: Array<string> } | null;
|
|
874
911
|
|
|
875
912
|
/**
|
|
876
|
-
* Set
|
|
913
|
+
* Set to enable MSP children to bypass this rule. Only parent MSP accounts can set
|
|
914
|
+
* this. this rule. Settable for all types of rules.
|
|
877
915
|
*/
|
|
878
916
|
allow_child_bypass?: boolean | null;
|
|
879
917
|
|
|
880
918
|
/**
|
|
881
|
-
*
|
|
919
|
+
* Define the settings for the Audit SSH action. Settable only for `l4` rules with
|
|
920
|
+
* `audit_ssh` action.
|
|
882
921
|
*/
|
|
883
922
|
audit_ssh?: RuleSettingParam.AuditSSH | null;
|
|
884
923
|
|
|
885
924
|
/**
|
|
886
|
-
* Configure
|
|
925
|
+
* Configure browser isolation behavior. Settable only for `http` rules with the
|
|
926
|
+
* action set to `isolate`.
|
|
887
927
|
*/
|
|
888
928
|
biso_admin_controls?: RuleSettingParam.BISOAdminControls;
|
|
889
929
|
|
|
890
930
|
/**
|
|
891
|
-
*
|
|
892
|
-
* settings.
|
|
931
|
+
* Configure custom block page settings. If missing or null, use the account
|
|
932
|
+
* settings. Settable only for `http` rules with the action set to `block`.
|
|
893
933
|
*/
|
|
894
934
|
block_page?: RuleSettingParam.BlockPage | null;
|
|
895
935
|
|
|
896
936
|
/**
|
|
897
|
-
* Enable the custom block page.
|
|
937
|
+
* Enable the custom block page. Settable only for `dns` rules with action `block`.
|
|
898
938
|
*/
|
|
899
939
|
block_page_enabled?: boolean;
|
|
900
940
|
|
|
901
941
|
/**
|
|
902
|
-
*
|
|
903
|
-
* (if enabled).
|
|
942
|
+
* Explain why the rule blocks the request. The custom block page shows this text
|
|
943
|
+
* (if enabled). Settable only for `dns`, `l4`, and `http` rules when the action
|
|
944
|
+
* set to `block`.
|
|
904
945
|
*/
|
|
905
946
|
block_reason?: string | null;
|
|
906
947
|
|
|
907
948
|
/**
|
|
908
|
-
* Set
|
|
949
|
+
* Set to enable MSP accounts to bypass their parent's rules. Only MSP child
|
|
950
|
+
* accounts can set this. Settable for all types of rules.
|
|
909
951
|
*/
|
|
910
952
|
bypass_parent_rule?: boolean | null;
|
|
911
953
|
|
|
912
954
|
/**
|
|
913
|
-
* Configure
|
|
955
|
+
* Configure session check behavior. Settable only for `l4` and `http` rules with
|
|
956
|
+
* the action set to `allow`.
|
|
914
957
|
*/
|
|
915
958
|
check_session?: RuleSettingParam.CheckSession | null;
|
|
916
959
|
|
|
917
960
|
/**
|
|
918
|
-
*
|
|
919
|
-
*
|
|
920
|
-
*
|
|
921
|
-
* valid when a rule's action
|
|
961
|
+
* Configure custom resolvers to route queries that match the resolver policy.
|
|
962
|
+
* Unused with 'resolve_dns_through_cloudflare' or 'resolve_dns_internally'
|
|
963
|
+
* settings. DNS queries get routed to the address closest to their origin. Only
|
|
964
|
+
* valid when a rule's action set to 'resolve'. Settable only for `dns_resolver`
|
|
965
|
+
* rules.
|
|
922
966
|
*/
|
|
923
967
|
dns_resolvers?: RuleSettingParam.DNSResolvers | null;
|
|
924
968
|
|
|
925
969
|
/**
|
|
926
970
|
* Configure how Gateway Proxy traffic egresses. You can enable this setting for
|
|
927
971
|
* rules with Egress actions and filters, or omit it to indicate local egress via
|
|
928
|
-
* WARP IPs.
|
|
972
|
+
* WARP IPs. Settable only for `egress` rules.
|
|
929
973
|
*/
|
|
930
974
|
egress?: RuleSettingParam.Egress | null;
|
|
931
975
|
|
|
932
976
|
/**
|
|
933
|
-
*
|
|
934
|
-
*
|
|
935
|
-
*
|
|
977
|
+
* Ignore category matches at CNAME domains in a response. When off, evaluate
|
|
978
|
+
* categories in this rule against all CNAME domain categories in the response.
|
|
979
|
+
* Settable only for `dns` and `dns_resolver` rules.
|
|
936
980
|
*/
|
|
937
981
|
ignore_cname_category_matches?: boolean;
|
|
938
982
|
|
|
939
983
|
/**
|
|
940
|
-
*
|
|
984
|
+
* Specify whether to disable DNSSEC validation (for Allow actions) [INSECURE].
|
|
985
|
+
* Settable only for `dns` rules.
|
|
941
986
|
*/
|
|
942
987
|
insecure_disable_dnssec_validation?: boolean;
|
|
943
988
|
|
|
944
989
|
/**
|
|
945
|
-
*
|
|
946
|
-
*
|
|
990
|
+
* Enable IPs in DNS resolver category blocks. The system blocks only domain name
|
|
991
|
+
* categories unless you enable this setting. Settable only for `dns` and
|
|
992
|
+
* `dns_resolver` rules.
|
|
947
993
|
*/
|
|
948
994
|
ip_categories?: boolean;
|
|
949
995
|
|
|
950
996
|
/**
|
|
951
|
-
*
|
|
952
|
-
* indicator feeds
|
|
997
|
+
* Indicates whether to include IPs in DNS resolver indicator feed blocks. Default,
|
|
998
|
+
* indicator feeds block only domain names. Settable only for `dns` and
|
|
999
|
+
* `dns_resolver` rules.
|
|
953
1000
|
*/
|
|
954
1001
|
ip_indicator_feeds?: boolean;
|
|
955
1002
|
|
|
956
1003
|
/**
|
|
957
|
-
* Send matching traffic to the supplied destination IP address
|
|
1004
|
+
* Send matching traffic to the supplied destination IP address and port. Settable
|
|
1005
|
+
* only for `l4` rules with the action set to `l4_override`.
|
|
958
1006
|
*/
|
|
959
1007
|
l4override?: RuleSettingParam.L4override | null;
|
|
960
1008
|
|
|
961
1009
|
/**
|
|
962
|
-
* Configure a notification to display on the user's device when this rule
|
|
963
|
-
*
|
|
1010
|
+
* Configure a notification to display on the user's device when this rule matched.
|
|
1011
|
+
* Settable for all types of rules with the action set to `block`.
|
|
964
1012
|
*/
|
|
965
1013
|
notification_settings?: RuleSettingParam.NotificationSettings | null;
|
|
966
1014
|
|
|
967
1015
|
/**
|
|
968
|
-
*
|
|
1016
|
+
* Defines a hostname for override, for the matching DNS queries. Settable only for
|
|
1017
|
+
* `dns` rules with the action set to `override`.
|
|
969
1018
|
*/
|
|
970
1019
|
override_host?: string;
|
|
971
1020
|
|
|
972
1021
|
/**
|
|
973
|
-
*
|
|
1022
|
+
* Defines a an IP or set of IPs for overriding matched DNS queries. Settable only
|
|
1023
|
+
* for `dns` rules with the action set to `override`.
|
|
974
1024
|
*/
|
|
975
1025
|
override_ips?: Array<string> | null;
|
|
976
1026
|
|
|
977
1027
|
/**
|
|
978
|
-
* Configure DLP payload logging.
|
|
1028
|
+
* Configure DLP payload logging. Settable only for `http` rules.
|
|
979
1029
|
*/
|
|
980
1030
|
payload_log?: RuleSettingParam.PayloadLog | null;
|
|
981
1031
|
|
|
982
1032
|
/**
|
|
983
|
-
*
|
|
1033
|
+
* Configure settings that apply to quarantine rules. Settable only for `http`
|
|
1034
|
+
* rules.
|
|
984
1035
|
*/
|
|
985
1036
|
quarantine?: RuleSettingParam.Quarantine | null;
|
|
986
1037
|
|
|
987
1038
|
/**
|
|
988
|
-
*
|
|
1039
|
+
* Apply settings to redirect rules. Settable only for `http` rules with the action
|
|
1040
|
+
* set to `redirect`.
|
|
989
1041
|
*/
|
|
990
1042
|
redirect?: RuleSettingParam.Redirect | null;
|
|
991
1043
|
|
|
992
1044
|
/**
|
|
993
1045
|
* Configure to forward the query to the internal DNS service, passing the
|
|
994
|
-
* specified 'view_id' as input.
|
|
995
|
-
*
|
|
996
|
-
*
|
|
1046
|
+
* specified 'view_id' as input. Not used when 'dns_resolvers' is specified or
|
|
1047
|
+
* 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action set to
|
|
1048
|
+
* 'resolve'. Settable only for `dns_resolver` rules.
|
|
997
1049
|
*/
|
|
998
1050
|
resolve_dns_internally?: RuleSettingParam.ResolveDNSInternally | null;
|
|
999
1051
|
|
|
1000
1052
|
/**
|
|
1001
1053
|
* Enable to send queries that match the policy to Cloudflare's default 1.1.1.1 DNS
|
|
1002
|
-
* resolver. Cannot
|
|
1003
|
-
*
|
|
1004
|
-
*
|
|
1054
|
+
* resolver. Cannot set when 'dns_resolvers' specified or 'resolve_dns_internally'
|
|
1055
|
+
* is set. Only valid when a rule's action set to 'resolve'. Settable only for
|
|
1056
|
+
* `dns_resolver` rules.
|
|
1005
1057
|
*/
|
|
1006
1058
|
resolve_dns_through_cloudflare?: boolean | null;
|
|
1007
1059
|
|
|
1008
1060
|
/**
|
|
1009
|
-
* Configure behavior when an upstream
|
|
1061
|
+
* Configure behavior when an upstream certificate is invalid or an SSL error
|
|
1062
|
+
* occurs. Settable only for `http` rules with the action set to `allow`.
|
|
1010
1063
|
*/
|
|
1011
1064
|
untrusted_cert?: RuleSettingParam.UntrustedCERT | null;
|
|
1012
1065
|
}
|
|
1013
1066
|
|
|
1014
1067
|
export namespace RuleSettingParam {
|
|
1015
1068
|
/**
|
|
1016
|
-
*
|
|
1069
|
+
* Define the settings for the Audit SSH action. Settable only for `l4` rules with
|
|
1070
|
+
* `audit_ssh` action.
|
|
1017
1071
|
*/
|
|
1018
1072
|
export interface AuditSSH {
|
|
1019
1073
|
/**
|
|
1020
|
-
* Enable
|
|
1074
|
+
* Enable SSH command logging.
|
|
1021
1075
|
*/
|
|
1022
1076
|
command_logging?: boolean;
|
|
1023
1077
|
}
|
|
1024
1078
|
|
|
1025
1079
|
/**
|
|
1026
|
-
* Configure
|
|
1080
|
+
* Configure browser isolation behavior. Settable only for `http` rules with the
|
|
1081
|
+
* action set to `isolate`.
|
|
1027
1082
|
*/
|
|
1028
1083
|
export interface BISOAdminControls {
|
|
1029
1084
|
/**
|
|
1030
|
-
* Configure
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1085
|
+
* Configure copy behavior. If set to remote_only, users cannot copy isolated
|
|
1086
|
+
* content from the remote browser to the local clipboard. If this field is absent,
|
|
1087
|
+
* copying remains enabled. Applies only when version == "v2".
|
|
1033
1088
|
*/
|
|
1034
1089
|
copy?: 'enabled' | 'disabled' | 'remote_only';
|
|
1035
1090
|
|
|
@@ -1049,8 +1104,8 @@ export namespace RuleSettingParam {
|
|
|
1049
1104
|
dk?: boolean;
|
|
1050
1105
|
|
|
1051
1106
|
/**
|
|
1052
|
-
* Configure
|
|
1053
|
-
*
|
|
1107
|
+
* Configure download behavior. When set to remote_only, users can view downloads
|
|
1108
|
+
* but cannot save them. Applies only when version == "v2".
|
|
1054
1109
|
*/
|
|
1055
1110
|
download?: 'enabled' | 'disabled' | 'remote_only';
|
|
1056
1111
|
|
|
@@ -1065,74 +1120,75 @@ export namespace RuleSettingParam {
|
|
|
1065
1120
|
du?: boolean;
|
|
1066
1121
|
|
|
1067
1122
|
/**
|
|
1068
|
-
* Configure
|
|
1069
|
-
*
|
|
1123
|
+
* Configure keyboard usage behavior. If this field is absent, keyboard usage
|
|
1124
|
+
* remains enabled. Applies only when version == "v2".
|
|
1070
1125
|
*/
|
|
1071
1126
|
keyboard?: 'enabled' | 'disabled';
|
|
1072
1127
|
|
|
1073
1128
|
/**
|
|
1074
|
-
* Configure
|
|
1075
|
-
*
|
|
1076
|
-
*
|
|
1129
|
+
* Configure paste behavior. If set to remote_only, users cannot paste content from
|
|
1130
|
+
* the local clipboard into isolated pages. If this field is absent, pasting
|
|
1131
|
+
* remains enabled. Applies only when version == "v2".
|
|
1077
1132
|
*/
|
|
1078
1133
|
paste?: 'enabled' | 'disabled' | 'remote_only';
|
|
1079
1134
|
|
|
1080
1135
|
/**
|
|
1081
|
-
* Configure
|
|
1082
|
-
*
|
|
1136
|
+
* Configure print behavior. Default, Printing is enabled. Applies only when
|
|
1137
|
+
* version == "v2".
|
|
1083
1138
|
*/
|
|
1084
1139
|
printing?: 'enabled' | 'disabled';
|
|
1085
1140
|
|
|
1086
1141
|
/**
|
|
1087
|
-
* Configure
|
|
1088
|
-
*
|
|
1142
|
+
* Configure upload behavior. If this field is absent, uploading remains enabled.
|
|
1143
|
+
* Applies only when version == "v2".
|
|
1089
1144
|
*/
|
|
1090
1145
|
upload?: 'enabled' | 'disabled';
|
|
1091
1146
|
|
|
1092
1147
|
/**
|
|
1093
|
-
*
|
|
1148
|
+
* Indicate which version of the browser isolation controls should apply.
|
|
1094
1149
|
*/
|
|
1095
1150
|
version?: 'v1' | 'v2';
|
|
1096
1151
|
}
|
|
1097
1152
|
|
|
1098
1153
|
/**
|
|
1099
|
-
*
|
|
1100
|
-
* settings.
|
|
1154
|
+
* Configure custom block page settings. If missing or null, use the account
|
|
1155
|
+
* settings. Settable only for `http` rules with the action set to `block`.
|
|
1101
1156
|
*/
|
|
1102
1157
|
export interface BlockPage {
|
|
1103
1158
|
/**
|
|
1104
|
-
* URI to which the user
|
|
1159
|
+
* Specify the URI to which the user is redirected.
|
|
1105
1160
|
*/
|
|
1106
1161
|
target_uri: string;
|
|
1107
1162
|
|
|
1108
1163
|
/**
|
|
1109
|
-
*
|
|
1164
|
+
* Specify whether to pass the context information as query parameters.
|
|
1110
1165
|
*/
|
|
1111
1166
|
include_context?: boolean;
|
|
1112
1167
|
}
|
|
1113
1168
|
|
|
1114
1169
|
/**
|
|
1115
|
-
* Configure
|
|
1170
|
+
* Configure session check behavior. Settable only for `l4` and `http` rules with
|
|
1171
|
+
* the action set to `allow`.
|
|
1116
1172
|
*/
|
|
1117
1173
|
export interface CheckSession {
|
|
1118
1174
|
/**
|
|
1119
|
-
*
|
|
1120
|
-
*
|
|
1121
|
-
* version that may differ from your input and cause Terraform state drift.
|
|
1175
|
+
* Sets the required session freshness threshold. The API returns a normalized
|
|
1176
|
+
* version of this value.
|
|
1122
1177
|
*/
|
|
1123
1178
|
duration?: string;
|
|
1124
1179
|
|
|
1125
1180
|
/**
|
|
1126
|
-
*
|
|
1181
|
+
* Enable session enforcement.
|
|
1127
1182
|
*/
|
|
1128
1183
|
enforce?: boolean;
|
|
1129
1184
|
}
|
|
1130
1185
|
|
|
1131
1186
|
/**
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1134
|
-
*
|
|
1135
|
-
* valid when a rule's action
|
|
1187
|
+
* Configure custom resolvers to route queries that match the resolver policy.
|
|
1188
|
+
* Unused with 'resolve_dns_through_cloudflare' or 'resolve_dns_internally'
|
|
1189
|
+
* settings. DNS queries get routed to the address closest to their origin. Only
|
|
1190
|
+
* valid when a rule's action set to 'resolve'. Settable only for `dns_resolver`
|
|
1191
|
+
* rules.
|
|
1136
1192
|
*/
|
|
1137
1193
|
export interface DNSResolvers {
|
|
1138
1194
|
ipv4?: Array<RulesAPI.DNSResolverSettingsV4Param>;
|
|
@@ -1143,54 +1199,54 @@ export namespace RuleSettingParam {
|
|
|
1143
1199
|
/**
|
|
1144
1200
|
* Configure how Gateway Proxy traffic egresses. You can enable this setting for
|
|
1145
1201
|
* rules with Egress actions and filters, or omit it to indicate local egress via
|
|
1146
|
-
* WARP IPs.
|
|
1202
|
+
* WARP IPs. Settable only for `egress` rules.
|
|
1147
1203
|
*/
|
|
1148
1204
|
export interface Egress {
|
|
1149
1205
|
/**
|
|
1150
|
-
*
|
|
1206
|
+
* Specify the IPv4 address to use for egress.
|
|
1151
1207
|
*/
|
|
1152
1208
|
ipv4?: string;
|
|
1153
1209
|
|
|
1154
1210
|
/**
|
|
1155
|
-
*
|
|
1156
|
-
*
|
|
1157
|
-
* WARP IPs.
|
|
1211
|
+
* Specify the fallback IPv4 address to use for egress when the primary IPv4 fails.
|
|
1212
|
+
* Set '0.0.0.0' to indicate local egress via WARP IPs.
|
|
1158
1213
|
*/
|
|
1159
1214
|
ipv4_fallback?: string;
|
|
1160
1215
|
|
|
1161
1216
|
/**
|
|
1162
|
-
*
|
|
1217
|
+
* Specify the IPv6 range to use for egress.
|
|
1163
1218
|
*/
|
|
1164
1219
|
ipv6?: string;
|
|
1165
1220
|
}
|
|
1166
1221
|
|
|
1167
1222
|
/**
|
|
1168
|
-
* Send matching traffic to the supplied destination IP address
|
|
1223
|
+
* Send matching traffic to the supplied destination IP address and port. Settable
|
|
1224
|
+
* only for `l4` rules with the action set to `l4_override`.
|
|
1169
1225
|
*/
|
|
1170
1226
|
export interface L4override {
|
|
1171
1227
|
/**
|
|
1172
|
-
* IPv4 or IPv6 address.
|
|
1228
|
+
* Defines the IPv4 or IPv6 address.
|
|
1173
1229
|
*/
|
|
1174
1230
|
ip?: string;
|
|
1175
1231
|
|
|
1176
1232
|
/**
|
|
1177
|
-
*
|
|
1233
|
+
* Defines a port number to use for TCP/UDP overrides.
|
|
1178
1234
|
*/
|
|
1179
1235
|
port?: number;
|
|
1180
1236
|
}
|
|
1181
1237
|
|
|
1182
1238
|
/**
|
|
1183
|
-
* Configure a notification to display on the user's device when this rule
|
|
1184
|
-
*
|
|
1239
|
+
* Configure a notification to display on the user's device when this rule matched.
|
|
1240
|
+
* Settable for all types of rules with the action set to `block`.
|
|
1185
1241
|
*/
|
|
1186
1242
|
export interface NotificationSettings {
|
|
1187
1243
|
/**
|
|
1188
|
-
*
|
|
1244
|
+
* Enable notification.
|
|
1189
1245
|
*/
|
|
1190
1246
|
enabled?: boolean;
|
|
1191
1247
|
|
|
1192
1248
|
/**
|
|
1193
|
-
*
|
|
1249
|
+
* Indicates whether to pass the context information as query parameters.
|
|
1194
1250
|
*/
|
|
1195
1251
|
include_context?: boolean;
|
|
1196
1252
|
|
|
@@ -1200,28 +1256,29 @@ export namespace RuleSettingParam {
|
|
|
1200
1256
|
msg?: string;
|
|
1201
1257
|
|
|
1202
1258
|
/**
|
|
1203
|
-
*
|
|
1204
|
-
* notification
|
|
1259
|
+
* Defines an optional URL to direct users to additional information. If unset, the
|
|
1260
|
+
* notification opens a block page.
|
|
1205
1261
|
*/
|
|
1206
1262
|
support_url?: string;
|
|
1207
1263
|
}
|
|
1208
1264
|
|
|
1209
1265
|
/**
|
|
1210
|
-
* Configure DLP payload logging.
|
|
1266
|
+
* Configure DLP payload logging. Settable only for `http` rules.
|
|
1211
1267
|
*/
|
|
1212
1268
|
export interface PayloadLog {
|
|
1213
1269
|
/**
|
|
1214
|
-
*
|
|
1270
|
+
* Enable DLP payload logging for this rule.
|
|
1215
1271
|
*/
|
|
1216
1272
|
enabled?: boolean;
|
|
1217
1273
|
}
|
|
1218
1274
|
|
|
1219
1275
|
/**
|
|
1220
|
-
*
|
|
1276
|
+
* Configure settings that apply to quarantine rules. Settable only for `http`
|
|
1277
|
+
* rules.
|
|
1221
1278
|
*/
|
|
1222
1279
|
export interface Quarantine {
|
|
1223
1280
|
/**
|
|
1224
|
-
*
|
|
1281
|
+
* Specify the types of files to sandbox.
|
|
1225
1282
|
*/
|
|
1226
1283
|
file_types?: Array<
|
|
1227
1284
|
| 'exe'
|
|
@@ -1241,186 +1298,200 @@ export namespace RuleSettingParam {
|
|
|
1241
1298
|
}
|
|
1242
1299
|
|
|
1243
1300
|
/**
|
|
1244
|
-
*
|
|
1301
|
+
* Apply settings to redirect rules. Settable only for `http` rules with the action
|
|
1302
|
+
* set to `redirect`.
|
|
1245
1303
|
*/
|
|
1246
1304
|
export interface Redirect {
|
|
1247
1305
|
/**
|
|
1248
|
-
* URI to which the user
|
|
1306
|
+
* Specify the URI to which the user is redirected.
|
|
1249
1307
|
*/
|
|
1250
1308
|
target_uri: string;
|
|
1251
1309
|
|
|
1252
1310
|
/**
|
|
1253
|
-
*
|
|
1311
|
+
* Specify whether to pass the context information as query parameters.
|
|
1254
1312
|
*/
|
|
1255
1313
|
include_context?: boolean;
|
|
1256
1314
|
|
|
1257
1315
|
/**
|
|
1258
|
-
*
|
|
1259
|
-
*
|
|
1316
|
+
* Specify whether to append the path and query parameters from the original
|
|
1317
|
+
* request to target_uri.
|
|
1260
1318
|
*/
|
|
1261
1319
|
preserve_path_and_query?: boolean;
|
|
1262
1320
|
}
|
|
1263
1321
|
|
|
1264
1322
|
/**
|
|
1265
1323
|
* Configure to forward the query to the internal DNS service, passing the
|
|
1266
|
-
* specified 'view_id' as input.
|
|
1267
|
-
*
|
|
1268
|
-
*
|
|
1324
|
+
* specified 'view_id' as input. Not used when 'dns_resolvers' is specified or
|
|
1325
|
+
* 'resolve_dns_through_cloudflare' is set. Only valid when a rule's action set to
|
|
1326
|
+
* 'resolve'. Settable only for `dns_resolver` rules.
|
|
1269
1327
|
*/
|
|
1270
1328
|
export interface ResolveDNSInternally {
|
|
1271
1329
|
/**
|
|
1272
|
-
*
|
|
1273
|
-
* from 'NOERROR' or when the response data only
|
|
1274
|
-
* 'AAAA' queries.
|
|
1330
|
+
* Specify the fallback behavior to apply when the internal DNS response code
|
|
1331
|
+
* differs from 'NOERROR' or when the response data contains only CNAME records for
|
|
1332
|
+
* 'A' or 'AAAA' queries.
|
|
1275
1333
|
*/
|
|
1276
1334
|
fallback?: 'none' | 'public_dns';
|
|
1277
1335
|
|
|
1278
1336
|
/**
|
|
1279
|
-
*
|
|
1337
|
+
* Specify the internal DNS view identifier to pass to the internal DNS service.
|
|
1280
1338
|
*/
|
|
1281
1339
|
view_id?: string;
|
|
1282
1340
|
}
|
|
1283
1341
|
|
|
1284
1342
|
/**
|
|
1285
|
-
* Configure behavior when an upstream
|
|
1343
|
+
* Configure behavior when an upstream certificate is invalid or an SSL error
|
|
1344
|
+
* occurs. Settable only for `http` rules with the action set to `allow`.
|
|
1286
1345
|
*/
|
|
1287
1346
|
export interface UntrustedCERT {
|
|
1288
1347
|
/**
|
|
1289
|
-
*
|
|
1290
|
-
*
|
|
1348
|
+
* Defines the action performed when an untrusted certificate seen. The default
|
|
1349
|
+
* action an error with HTTP code 526.
|
|
1291
1350
|
*/
|
|
1292
1351
|
action?: 'pass_through' | 'block' | 'error';
|
|
1293
1352
|
}
|
|
1294
1353
|
}
|
|
1295
1354
|
|
|
1296
1355
|
/**
|
|
1297
|
-
*
|
|
1298
|
-
*
|
|
1356
|
+
* Defines the schedule for activating DNS policies. Settable only for `dns` and
|
|
1357
|
+
* `dns_resolver` rules.
|
|
1299
1358
|
*/
|
|
1300
1359
|
export interface Schedule {
|
|
1301
1360
|
/**
|
|
1302
|
-
*
|
|
1303
|
-
* from 00:00-24:00. If this parameter
|
|
1304
|
-
* Fridays.
|
|
1361
|
+
* Specify the time intervals when the rule is active on Fridays, in the increasing
|
|
1362
|
+
* order from 00:00-24:00. If this parameter omitted, the rule is deactivated on
|
|
1363
|
+
* Fridays. API returns a formatted version of this string, which may cause
|
|
1364
|
+
* Terraform drift if a unformatted value is used.
|
|
1305
1365
|
*/
|
|
1306
1366
|
fri?: string;
|
|
1307
1367
|
|
|
1308
1368
|
/**
|
|
1309
|
-
*
|
|
1310
|
-
* from 00:00-24:00
|
|
1311
|
-
* Mondays.
|
|
1369
|
+
* Specify the time intervals when the rule is active on Mondays, in the increasing
|
|
1370
|
+
* order from 00:00-24:00(capped at maximum of 6 time splits). If this parameter
|
|
1371
|
+
* omitted, the rule is deactivated on Mondays. API returns a formatted version of
|
|
1372
|
+
* this string, which may cause Terraform drift if a unformatted value is used.
|
|
1312
1373
|
*/
|
|
1313
1374
|
mon?: string;
|
|
1314
1375
|
|
|
1315
1376
|
/**
|
|
1316
|
-
*
|
|
1317
|
-
* order from 00:00-24:00. If this parameter
|
|
1318
|
-
* deactivated on Saturdays.
|
|
1377
|
+
* Specify the time intervals when the rule is active on Saturdays, in the
|
|
1378
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1379
|
+
* deactivated on Saturdays. API returns a formatted version of this string, which
|
|
1380
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1319
1381
|
*/
|
|
1320
1382
|
sat?: string;
|
|
1321
1383
|
|
|
1322
1384
|
/**
|
|
1323
|
-
*
|
|
1324
|
-
* from 00:00-24:00. If this parameter
|
|
1325
|
-
* Sundays.
|
|
1385
|
+
* Specify the time intervals when the rule is active on Sundays, in the increasing
|
|
1386
|
+
* order from 00:00-24:00. If this parameter omitted, the rule is deactivated on
|
|
1387
|
+
* Sundays. API returns a formatted version of this string, which may cause
|
|
1388
|
+
* Terraform drift if a unformatted value is used.
|
|
1326
1389
|
*/
|
|
1327
1390
|
sun?: string;
|
|
1328
1391
|
|
|
1329
1392
|
/**
|
|
1330
|
-
*
|
|
1331
|
-
* order from 00:00-24:00. If this parameter
|
|
1332
|
-
* deactivated on Thursdays.
|
|
1393
|
+
* Specify the time intervals when the rule is active on Thursdays, in the
|
|
1394
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1395
|
+
* deactivated on Thursdays. API returns a formatted version of this string, which
|
|
1396
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1333
1397
|
*/
|
|
1334
1398
|
thu?: string;
|
|
1335
1399
|
|
|
1336
1400
|
/**
|
|
1337
|
-
*
|
|
1401
|
+
* Specify the time zone for rule evaluation. When a
|
|
1338
1402
|
* [valid time zone city name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)
|
|
1339
|
-
* is provided, Gateway
|
|
1340
|
-
* parameter is omitted,
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1343
|
-
* center.
|
|
1403
|
+
* is provided, Gateway always uses the current time for that time zone. When this
|
|
1404
|
+
* parameter is omitted, Gateway uses the time zone determined from the user's IP
|
|
1405
|
+
* address. Colo time zone is used when the user's IP address does not resolve to a
|
|
1406
|
+
* location.
|
|
1344
1407
|
*/
|
|
1345
1408
|
time_zone?: string;
|
|
1346
1409
|
|
|
1347
1410
|
/**
|
|
1348
|
-
*
|
|
1349
|
-
* from 00:00-24:00. If this parameter
|
|
1350
|
-
* Tuesdays.
|
|
1411
|
+
* Specify the time intervals when the rule is active on Tuesdays, in the
|
|
1412
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1413
|
+
* deactivated on Tuesdays. API returns a formatted version of this string, which
|
|
1414
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1351
1415
|
*/
|
|
1352
1416
|
tue?: string;
|
|
1353
1417
|
|
|
1354
1418
|
/**
|
|
1355
|
-
*
|
|
1356
|
-
* order from 00:00-24:00. If this parameter
|
|
1357
|
-
* deactivated on Wednesdays.
|
|
1419
|
+
* Specify the time intervals when the rule is active on Wednesdays, in the
|
|
1420
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1421
|
+
* deactivated on Wednesdays. API returns a formatted version of this string, which
|
|
1422
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1358
1423
|
*/
|
|
1359
1424
|
wed?: string;
|
|
1360
1425
|
}
|
|
1361
1426
|
|
|
1362
1427
|
/**
|
|
1363
|
-
*
|
|
1364
|
-
*
|
|
1428
|
+
* Defines the schedule for activating DNS policies. Settable only for `dns` and
|
|
1429
|
+
* `dns_resolver` rules.
|
|
1365
1430
|
*/
|
|
1366
1431
|
export interface ScheduleParam {
|
|
1367
1432
|
/**
|
|
1368
|
-
*
|
|
1369
|
-
* from 00:00-24:00. If this parameter
|
|
1370
|
-
* Fridays.
|
|
1433
|
+
* Specify the time intervals when the rule is active on Fridays, in the increasing
|
|
1434
|
+
* order from 00:00-24:00. If this parameter omitted, the rule is deactivated on
|
|
1435
|
+
* Fridays. API returns a formatted version of this string, which may cause
|
|
1436
|
+
* Terraform drift if a unformatted value is used.
|
|
1371
1437
|
*/
|
|
1372
1438
|
fri?: string;
|
|
1373
1439
|
|
|
1374
1440
|
/**
|
|
1375
|
-
*
|
|
1376
|
-
* from 00:00-24:00
|
|
1377
|
-
* Mondays.
|
|
1441
|
+
* Specify the time intervals when the rule is active on Mondays, in the increasing
|
|
1442
|
+
* order from 00:00-24:00(capped at maximum of 6 time splits). If this parameter
|
|
1443
|
+
* omitted, the rule is deactivated on Mondays. API returns a formatted version of
|
|
1444
|
+
* this string, which may cause Terraform drift if a unformatted value is used.
|
|
1378
1445
|
*/
|
|
1379
1446
|
mon?: string;
|
|
1380
1447
|
|
|
1381
1448
|
/**
|
|
1382
|
-
*
|
|
1383
|
-
* order from 00:00-24:00. If this parameter
|
|
1384
|
-
* deactivated on Saturdays.
|
|
1449
|
+
* Specify the time intervals when the rule is active on Saturdays, in the
|
|
1450
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1451
|
+
* deactivated on Saturdays. API returns a formatted version of this string, which
|
|
1452
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1385
1453
|
*/
|
|
1386
1454
|
sat?: string;
|
|
1387
1455
|
|
|
1388
1456
|
/**
|
|
1389
|
-
*
|
|
1390
|
-
* from 00:00-24:00. If this parameter
|
|
1391
|
-
* Sundays.
|
|
1457
|
+
* Specify the time intervals when the rule is active on Sundays, in the increasing
|
|
1458
|
+
* order from 00:00-24:00. If this parameter omitted, the rule is deactivated on
|
|
1459
|
+
* Sundays. API returns a formatted version of this string, which may cause
|
|
1460
|
+
* Terraform drift if a unformatted value is used.
|
|
1392
1461
|
*/
|
|
1393
1462
|
sun?: string;
|
|
1394
1463
|
|
|
1395
1464
|
/**
|
|
1396
|
-
*
|
|
1397
|
-
* order from 00:00-24:00. If this parameter
|
|
1398
|
-
* deactivated on Thursdays.
|
|
1465
|
+
* Specify the time intervals when the rule is active on Thursdays, in the
|
|
1466
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1467
|
+
* deactivated on Thursdays. API returns a formatted version of this string, which
|
|
1468
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1399
1469
|
*/
|
|
1400
1470
|
thu?: string;
|
|
1401
1471
|
|
|
1402
1472
|
/**
|
|
1403
|
-
*
|
|
1473
|
+
* Specify the time zone for rule evaluation. When a
|
|
1404
1474
|
* [valid time zone city name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)
|
|
1405
|
-
* is provided, Gateway
|
|
1406
|
-
* parameter is omitted,
|
|
1407
|
-
*
|
|
1408
|
-
*
|
|
1409
|
-
* center.
|
|
1475
|
+
* is provided, Gateway always uses the current time for that time zone. When this
|
|
1476
|
+
* parameter is omitted, Gateway uses the time zone determined from the user's IP
|
|
1477
|
+
* address. Colo time zone is used when the user's IP address does not resolve to a
|
|
1478
|
+
* location.
|
|
1410
1479
|
*/
|
|
1411
1480
|
time_zone?: string;
|
|
1412
1481
|
|
|
1413
1482
|
/**
|
|
1414
|
-
*
|
|
1415
|
-
* from 00:00-24:00. If this parameter
|
|
1416
|
-
* Tuesdays.
|
|
1483
|
+
* Specify the time intervals when the rule is active on Tuesdays, in the
|
|
1484
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1485
|
+
* deactivated on Tuesdays. API returns a formatted version of this string, which
|
|
1486
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1417
1487
|
*/
|
|
1418
1488
|
tue?: string;
|
|
1419
1489
|
|
|
1420
1490
|
/**
|
|
1421
|
-
*
|
|
1422
|
-
* order from 00:00-24:00. If this parameter
|
|
1423
|
-
* deactivated on Wednesdays.
|
|
1491
|
+
* Specify the time intervals when the rule is active on Wednesdays, in the
|
|
1492
|
+
* increasing order from 00:00-24:00. If this parameter omitted, the rule is
|
|
1493
|
+
* deactivated on Wednesdays. API returns a formatted version of this string, which
|
|
1494
|
+
* may cause Terraform drift if a unformatted value is used.
|
|
1424
1495
|
*/
|
|
1425
1496
|
wed?: string;
|
|
1426
1497
|
}
|
|
@@ -1434,8 +1505,8 @@ export interface RuleCreateParams {
|
|
|
1434
1505
|
account_id: string;
|
|
1435
1506
|
|
|
1436
1507
|
/**
|
|
1437
|
-
* Body param:
|
|
1438
|
-
* device posture expressions
|
|
1508
|
+
* Body param: Specify the action to perform when the associated traffic, identity,
|
|
1509
|
+
* and device posture expressions either absent or evaluate to `true`.
|
|
1439
1510
|
*/
|
|
1440
1511
|
action:
|
|
1441
1512
|
| 'on'
|
|
@@ -1456,100 +1527,102 @@ export interface RuleCreateParams {
|
|
|
1456
1527
|
| 'redirect';
|
|
1457
1528
|
|
|
1458
1529
|
/**
|
|
1459
|
-
* Body param:
|
|
1530
|
+
* Body param: Specify the rule name.
|
|
1460
1531
|
*/
|
|
1461
1532
|
name: string;
|
|
1462
1533
|
|
|
1463
1534
|
/**
|
|
1464
|
-
* Body param:
|
|
1535
|
+
* Body param: Specify the rule description.
|
|
1465
1536
|
*/
|
|
1466
1537
|
description?: string;
|
|
1467
1538
|
|
|
1468
1539
|
/**
|
|
1469
|
-
* Body param:
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1540
|
+
* Body param: Specify the wirefilter expression used for device posture check. The
|
|
1541
|
+
* API automatically formats and sanitizes expressions before storing them. To
|
|
1542
|
+
* prevent Terraform state drift, use the formatted expression returned in the API
|
|
1543
|
+
* response.
|
|
1473
1544
|
*/
|
|
1474
1545
|
device_posture?: string;
|
|
1475
1546
|
|
|
1476
1547
|
/**
|
|
1477
|
-
* Body param:
|
|
1548
|
+
* Body param: Specify whether the rule is enabled.
|
|
1478
1549
|
*/
|
|
1479
1550
|
enabled?: boolean;
|
|
1480
1551
|
|
|
1481
1552
|
/**
|
|
1482
|
-
* Body param:
|
|
1483
|
-
* Takes precedence over the policy's `schedule` configuration, if any.
|
|
1484
|
-
*
|
|
1485
|
-
* This does not apply to HTTP or network policies.
|
|
1553
|
+
* Body param: Defines the expiration time stamp and default duration of a DNS
|
|
1554
|
+
* policy. Takes precedence over the policy's `schedule` configuration, if any.
|
|
1555
|
+
* This does not apply to HTTP or network policies. Settable only for `dns` rules.
|
|
1486
1556
|
*/
|
|
1487
1557
|
expiration?: RuleCreateParams.Expiration | null;
|
|
1488
1558
|
|
|
1489
1559
|
/**
|
|
1490
|
-
* Body param:
|
|
1491
|
-
* posture expressions.
|
|
1560
|
+
* Body param: Specify the protocol or layer to evaluate the traffic, identity, and
|
|
1561
|
+
* device posture expressions.
|
|
1492
1562
|
*/
|
|
1493
1563
|
filters?: Array<GatewayFilterParam>;
|
|
1494
1564
|
|
|
1495
1565
|
/**
|
|
1496
|
-
* Body param:
|
|
1497
|
-
* automatically formats and sanitizes
|
|
1498
|
-
*
|
|
1566
|
+
* Body param: Specify the wirefilter expression used for identity matching. The
|
|
1567
|
+
* API automatically formats and sanitizes expressions before storing them. To
|
|
1568
|
+
* prevent Terraform state drift, use the formatted expression returned in the API
|
|
1569
|
+
* response.
|
|
1499
1570
|
*/
|
|
1500
1571
|
identity?: string;
|
|
1501
1572
|
|
|
1502
1573
|
/**
|
|
1503
|
-
* Body param:
|
|
1504
|
-
*
|
|
1505
|
-
*
|
|
1574
|
+
* Body param: Set the order of your rules. Lower values indicate higher
|
|
1575
|
+
* precedence. At each processing phase, evaluate applicable rules in ascending
|
|
1576
|
+
* order of this value. Refer to
|
|
1506
1577
|
* [Order of enforcement](http://developers.cloudflare.com/learning-paths/secure-internet-traffic/understand-policies/order-of-enforcement/#manage-precedence-with-terraform)
|
|
1507
|
-
*
|
|
1578
|
+
* to manage precedence via Terraform.
|
|
1508
1579
|
*/
|
|
1509
1580
|
precedence?: number;
|
|
1510
1581
|
|
|
1511
1582
|
/**
|
|
1512
|
-
* Body param:
|
|
1583
|
+
* Body param: Set settings related to this rule. Each setting is only valid for
|
|
1584
|
+
* specific rule types and can only be used with the appropriate selectors. If
|
|
1585
|
+
* Terraform drift is observed in these setting values, verify that the setting is
|
|
1586
|
+
* supported for the given rule type and that the API response reflects the
|
|
1587
|
+
* requested value. If the API response returns sanitized or modified values that
|
|
1588
|
+
* differ from the request, use the API-provided values in Terraform to ensure
|
|
1589
|
+
* consistency.
|
|
1513
1590
|
*/
|
|
1514
1591
|
rule_settings?: RuleSettingParam;
|
|
1515
1592
|
|
|
1516
1593
|
/**
|
|
1517
|
-
* Body param:
|
|
1518
|
-
*
|
|
1594
|
+
* Body param: Defines the schedule for activating DNS policies. Settable only for
|
|
1595
|
+
* `dns` and `dns_resolver` rules.
|
|
1519
1596
|
*/
|
|
1520
1597
|
schedule?: ScheduleParam | null;
|
|
1521
1598
|
|
|
1522
1599
|
/**
|
|
1523
|
-
* Body param:
|
|
1524
|
-
* automatically formats and sanitizes
|
|
1525
|
-
*
|
|
1600
|
+
* Body param: Specify the wirefilter expression used for traffic matching. The API
|
|
1601
|
+
* automatically formats and sanitizes expressions before storing them. To prevent
|
|
1602
|
+
* Terraform state drift, use the formatted expression returned in the API
|
|
1603
|
+
* response.
|
|
1526
1604
|
*/
|
|
1527
1605
|
traffic?: string;
|
|
1528
1606
|
}
|
|
1529
1607
|
|
|
1530
1608
|
export namespace RuleCreateParams {
|
|
1531
1609
|
/**
|
|
1532
|
-
*
|
|
1533
|
-
* over the policy's `schedule` configuration, if any.
|
|
1534
|
-
*
|
|
1535
|
-
* This does not apply to HTTP or network policies.
|
|
1610
|
+
* Defines the expiration time stamp and default duration of a DNS policy. Takes
|
|
1611
|
+
* precedence over the policy's `schedule` configuration, if any. This does not
|
|
1612
|
+
* apply to HTTP or network policies. Settable only for `dns` rules.
|
|
1536
1613
|
*/
|
|
1537
1614
|
export interface Expiration {
|
|
1538
1615
|
/**
|
|
1539
|
-
*
|
|
1540
|
-
*
|
|
1541
|
-
*
|
|
1542
|
-
*
|
|
1543
|
-
*
|
|
1544
|
-
*
|
|
1545
|
-
* Policies with an expiration do not consider the timezone of clients they are
|
|
1546
|
-
* applied to, and expire "globally" at the point given by their `expires_at`
|
|
1547
|
-
* value.
|
|
1616
|
+
* Show the timestamp when the policy expires and stops applying. The value must
|
|
1617
|
+
* follow RFC 3339 and include a UTC offset. The system accepts non-zero offsets
|
|
1618
|
+
* but converts them to the equivalent UTC+00:00 value and returns timestamps with
|
|
1619
|
+
* a trailing Z. Expiration policies ignore client timezones and expire globally at
|
|
1620
|
+
* the specified expires_at time.
|
|
1548
1621
|
*/
|
|
1549
1622
|
expires_at: string;
|
|
1550
1623
|
|
|
1551
1624
|
/**
|
|
1552
|
-
*
|
|
1625
|
+
* Defines the default duration a policy active in minutes. Must set in order to
|
|
1553
1626
|
* use the `reset_expiration` endpoint on this rule.
|
|
1554
1627
|
*/
|
|
1555
1628
|
duration?: number;
|
|
@@ -1563,8 +1636,8 @@ export interface RuleUpdateParams {
|
|
|
1563
1636
|
account_id: string;
|
|
1564
1637
|
|
|
1565
1638
|
/**
|
|
1566
|
-
* Body param:
|
|
1567
|
-
* device posture expressions
|
|
1639
|
+
* Body param: Specify the action to perform when the associated traffic, identity,
|
|
1640
|
+
* and device posture expressions either absent or evaluate to `true`.
|
|
1568
1641
|
*/
|
|
1569
1642
|
action:
|
|
1570
1643
|
| 'on'
|
|
@@ -1585,100 +1658,102 @@ export interface RuleUpdateParams {
|
|
|
1585
1658
|
| 'redirect';
|
|
1586
1659
|
|
|
1587
1660
|
/**
|
|
1588
|
-
* Body param:
|
|
1661
|
+
* Body param: Specify the rule name.
|
|
1589
1662
|
*/
|
|
1590
1663
|
name: string;
|
|
1591
1664
|
|
|
1592
1665
|
/**
|
|
1593
|
-
* Body param:
|
|
1666
|
+
* Body param: Specify the rule description.
|
|
1594
1667
|
*/
|
|
1595
1668
|
description?: string;
|
|
1596
1669
|
|
|
1597
1670
|
/**
|
|
1598
|
-
* Body param:
|
|
1599
|
-
*
|
|
1600
|
-
*
|
|
1601
|
-
*
|
|
1671
|
+
* Body param: Specify the wirefilter expression used for device posture check. The
|
|
1672
|
+
* API automatically formats and sanitizes expressions before storing them. To
|
|
1673
|
+
* prevent Terraform state drift, use the formatted expression returned in the API
|
|
1674
|
+
* response.
|
|
1602
1675
|
*/
|
|
1603
1676
|
device_posture?: string;
|
|
1604
1677
|
|
|
1605
1678
|
/**
|
|
1606
|
-
* Body param:
|
|
1679
|
+
* Body param: Specify whether the rule is enabled.
|
|
1607
1680
|
*/
|
|
1608
1681
|
enabled?: boolean;
|
|
1609
1682
|
|
|
1610
1683
|
/**
|
|
1611
|
-
* Body param:
|
|
1612
|
-
* Takes precedence over the policy's `schedule` configuration, if any.
|
|
1613
|
-
*
|
|
1614
|
-
* This does not apply to HTTP or network policies.
|
|
1684
|
+
* Body param: Defines the expiration time stamp and default duration of a DNS
|
|
1685
|
+
* policy. Takes precedence over the policy's `schedule` configuration, if any.
|
|
1686
|
+
* This does not apply to HTTP or network policies. Settable only for `dns` rules.
|
|
1615
1687
|
*/
|
|
1616
1688
|
expiration?: RuleUpdateParams.Expiration | null;
|
|
1617
1689
|
|
|
1618
1690
|
/**
|
|
1619
|
-
* Body param:
|
|
1620
|
-
* posture expressions.
|
|
1691
|
+
* Body param: Specify the protocol or layer to evaluate the traffic, identity, and
|
|
1692
|
+
* device posture expressions.
|
|
1621
1693
|
*/
|
|
1622
1694
|
filters?: Array<GatewayFilterParam>;
|
|
1623
1695
|
|
|
1624
1696
|
/**
|
|
1625
|
-
* Body param:
|
|
1626
|
-
* automatically formats and sanitizes
|
|
1627
|
-
*
|
|
1697
|
+
* Body param: Specify the wirefilter expression used for identity matching. The
|
|
1698
|
+
* API automatically formats and sanitizes expressions before storing them. To
|
|
1699
|
+
* prevent Terraform state drift, use the formatted expression returned in the API
|
|
1700
|
+
* response.
|
|
1628
1701
|
*/
|
|
1629
1702
|
identity?: string;
|
|
1630
1703
|
|
|
1631
1704
|
/**
|
|
1632
|
-
* Body param:
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1705
|
+
* Body param: Set the order of your rules. Lower values indicate higher
|
|
1706
|
+
* precedence. At each processing phase, evaluate applicable rules in ascending
|
|
1707
|
+
* order of this value. Refer to
|
|
1635
1708
|
* [Order of enforcement](http://developers.cloudflare.com/learning-paths/secure-internet-traffic/understand-policies/order-of-enforcement/#manage-precedence-with-terraform)
|
|
1636
|
-
*
|
|
1709
|
+
* to manage precedence via Terraform.
|
|
1637
1710
|
*/
|
|
1638
1711
|
precedence?: number;
|
|
1639
1712
|
|
|
1640
1713
|
/**
|
|
1641
|
-
* Body param:
|
|
1714
|
+
* Body param: Set settings related to this rule. Each setting is only valid for
|
|
1715
|
+
* specific rule types and can only be used with the appropriate selectors. If
|
|
1716
|
+
* Terraform drift is observed in these setting values, verify that the setting is
|
|
1717
|
+
* supported for the given rule type and that the API response reflects the
|
|
1718
|
+
* requested value. If the API response returns sanitized or modified values that
|
|
1719
|
+
* differ from the request, use the API-provided values in Terraform to ensure
|
|
1720
|
+
* consistency.
|
|
1642
1721
|
*/
|
|
1643
1722
|
rule_settings?: RuleSettingParam;
|
|
1644
1723
|
|
|
1645
1724
|
/**
|
|
1646
|
-
* Body param:
|
|
1647
|
-
*
|
|
1725
|
+
* Body param: Defines the schedule for activating DNS policies. Settable only for
|
|
1726
|
+
* `dns` and `dns_resolver` rules.
|
|
1648
1727
|
*/
|
|
1649
1728
|
schedule?: ScheduleParam | null;
|
|
1650
1729
|
|
|
1651
1730
|
/**
|
|
1652
|
-
* Body param:
|
|
1653
|
-
* automatically formats and sanitizes
|
|
1654
|
-
*
|
|
1731
|
+
* Body param: Specify the wirefilter expression used for traffic matching. The API
|
|
1732
|
+
* automatically formats and sanitizes expressions before storing them. To prevent
|
|
1733
|
+
* Terraform state drift, use the formatted expression returned in the API
|
|
1734
|
+
* response.
|
|
1655
1735
|
*/
|
|
1656
1736
|
traffic?: string;
|
|
1657
1737
|
}
|
|
1658
1738
|
|
|
1659
1739
|
export namespace RuleUpdateParams {
|
|
1660
1740
|
/**
|
|
1661
|
-
*
|
|
1662
|
-
* over the policy's `schedule` configuration, if any.
|
|
1663
|
-
*
|
|
1664
|
-
* This does not apply to HTTP or network policies.
|
|
1741
|
+
* Defines the expiration time stamp and default duration of a DNS policy. Takes
|
|
1742
|
+
* precedence over the policy's `schedule` configuration, if any. This does not
|
|
1743
|
+
* apply to HTTP or network policies. Settable only for `dns` rules.
|
|
1665
1744
|
*/
|
|
1666
1745
|
export interface Expiration {
|
|
1667
1746
|
/**
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
1670
|
-
*
|
|
1671
|
-
*
|
|
1672
|
-
*
|
|
1673
|
-
*
|
|
1674
|
-
* Policies with an expiration do not consider the timezone of clients they are
|
|
1675
|
-
* applied to, and expire "globally" at the point given by their `expires_at`
|
|
1676
|
-
* value.
|
|
1747
|
+
* Show the timestamp when the policy expires and stops applying. The value must
|
|
1748
|
+
* follow RFC 3339 and include a UTC offset. The system accepts non-zero offsets
|
|
1749
|
+
* but converts them to the equivalent UTC+00:00 value and returns timestamps with
|
|
1750
|
+
* a trailing Z. Expiration policies ignore client timezones and expire globally at
|
|
1751
|
+
* the specified expires_at time.
|
|
1677
1752
|
*/
|
|
1678
1753
|
expires_at: string;
|
|
1679
1754
|
|
|
1680
1755
|
/**
|
|
1681
|
-
*
|
|
1756
|
+
* Defines the default duration a policy active in minutes. Must set in order to
|
|
1682
1757
|
* use the `reset_expiration` endpoint on this rule.
|
|
1683
1758
|
*/
|
|
1684
1759
|
duration?: number;
|