TeamsRule

class TeamsRule : KotlinCustomResource

Deprecated

cloudflare.index/teamsrule.TeamsRule has been deprecated in favor of cloudflare.index/zerotrustgatewaypolicy.ZeroTrustGatewayPolicy

Example Usage

resources:
exampleZeroTrustGatewayPolicy:
type: cloudflare:ZeroTrustGatewayPolicy
name: example_zero_trust_gateway_policy
properties:
accountId: 699d98642c564d2e855e9661899b7252
action: on
name: block bad websites
description: Block bad websites based on their host name.
devicePosture: any(device_posture.checks.passed[*] in {"1308749e-fcfb-4ebc-b051-fe022b632644"})
enabled: true
expiration:
expires_at: 2014-01-01T05:20:20Z
duration: 10
expired: false
filters:
- http
identity: any(identity.groups.name[*] in {"finance"})
precedence: 0
ruleSettings:
add_headers:
foo: string
allow_child_bypass: false
audit_ssh:
commandLogging: false
biso_admin_controls:
copy: enabled
dcp: false
dd: false
dk: false
download: enabled
dp: false
du: false
keyboard: enabled
paste: enabled
printing: enabled
upload: enabled
version: v1
block_page_enabled: true
block_reason: This website is a security risk
bypass_parent_rule: false
check_session:
duration: 300s
enforce: true
dns_resolvers:
ipv4:
- ip: 2.2.2.2
port: 5053
routeThroughPrivateNetwork: true
vnetId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
ipv6:
- ip: '2001:DB8::'
port: 5053
routeThroughPrivateNetwork: true
vnetId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
egress:
ipv4: 192.0.2.2
ipv4Fallback: 192.0.2.3
ipv6: 2001:DB8::/64
ignore_cname_category_matches: true
insecure_disable_dnssec_validation: false
ip_categories: true
ip_indicator_feeds: true
l4override:
ip: 1.1.1.1
port: 0
notification_settings:
enabled: true
msg: msg
supportUrl: support_url
override_host: example.com
override_ips:
- 1.1.1.1
- 2.2.2.2
payload_log:
enabled: true
quarantine:
fileTypes:
- exe
resolve_dns_internally:
fallback: none
viewId: view_id
resolve_dns_through_cloudflare: true
untrusted_cert:
action: pass_through
schedule:
fri: 08:00-12:30,13:30-17:00
mon: 08:00-12:30,13:30-17:00
sat: 08:00-12:30,13:30-17:00
sun: 08:00-12:30,13:30-17:00
thu: 08:00-12:30,13:30-17:00
time_zone: America/New York
tue: 08:00-12:30,13:30-17:00
wed: 08:00-12:30,13:30-17:00
traffic: http.request.uri matches ".*a/partial/uri.*" and http.request.host in $01302951-49f9-47c9-a400-0297e60b6a10

Import

$ pulumi import cloudflare:index/teamsRule:TeamsRule example '<account_id>/<rule_id>'

Properties

Link copied to clipboard
val accountId: Output<String>
Link copied to clipboard
val action: Output<String>

The action to preform when the associated traffic, identity, and device posture expressions are either absent or evaluate to true. Available values: "on", "off", "allow", "block", "scan", "noscan", "safesearch", "ytrestricted", "isolate", "noisolate", "override", "l4_override", "egress", "resolve", "quarantine".

Link copied to clipboard
val createdAt: Output<String>
Link copied to clipboard
val deletedAt: Output<String>

Date of deletion, if any.

Link copied to clipboard
val description: Output<String>?

The description of the rule.

Link copied to clipboard
val devicePosture: Output<String>?

The wirefilter expression used for device posture check matching.

Link copied to clipboard
val enabled: Output<Boolean>?

True if the rule is enabled.

Link copied to clipboard

The expiration time stamp and default duration of a DNS policy. Takes precedence over the policy's schedule configuration, if any.

Link copied to clipboard
val filters: Output<List<String>>?

The protocol or layer to evaluate the traffic, identity, and device posture expressions.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val identity: Output<String>?

The wirefilter expression used for identity matching.

Link copied to clipboard
val name: Output<String>

The name of the rule.

Link copied to clipboard
val precedence: Output<Int>?

Precedence sets the order of your rules. Lower values indicate higher precedence. At each processing phase, applicable rules are evaluated in ascending order of this value.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Additional settings that modify the rule's action.

Link copied to clipboard

The schedule for activating DNS policies. This does not apply to HTTP or network policies.

Link copied to clipboard
val traffic: Output<String>?

The wirefilter expression used for traffic matching.

Link copied to clipboard
val updatedAt: Output<String>
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<Int>

version number of the rule