Magic Network Monitoring
Magic Network MonitoringConfigs
resource cloudflare_magic_network_monitoring_configuration
cloudflare_magic_network_monitoring_configuration
resource "cloudflare_magic_network_monitoring_configuration" "example_magic_network_monitoring_configuration" {
account_id = "6f91088a406011ed95aed352566e8d4c"
default_sampling = 1
name = "cloudflare user\'s account"
router_ips = ["203.0.113.1"]
warp_devices = [{
id = "5360368d-b351-4791-abe1-93550dabd351"
name = "My warp device"
router_ip = "203.0.113.1"
}]
}
data cloudflare_magic_network_monitoring_configuration
cloudflare_magic_network_monitoring_configuration
data "cloudflare_magic_network_monitoring_configuration" "example_magic_network_monitoring_configuration" {
account_id = "6f91088a406011ed95aed352566e8d4c"
}
Magic Network MonitoringRules
resource cloudflare_magic_network_monitoring_rule
required
optional
Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.
The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.
computed
cloudflare_magic_network_monitoring_rule
resource "cloudflare_magic_network_monitoring_rule" "example_magic_network_monitoring_rule" {
account_id = "6f91088a406011ed95aed352566e8d4c"
duration = "1m"
name = "my_rule_1"
automatic_advertisement = true
bandwidth = 1000
packet_threshold = 10000
prefixes = ["203.0.113.1/32"]
}
data cloudflare_magic_network_monitoring_rule
computed
Toggle on if you would like Cloudflare to automatically advertise the IP Prefixes within the rule via Magic Transit when the rule is triggered. Only available for users of Magic Transit.
The number of bits per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.
The amount of time that the rule threshold must be exceeded to send an alert notification. The final value must be equivalent to one of the following 8 values ["1m","5m","10m","15m","20m","30m","45m","60m"].
The name of the rule. Must be unique. Supports characters A-Z, a-z, 0-9, underscore (_), dash (-), period (.), and tilde (~). You can’t have a space in the rule name. Max 256 characters.
The number of packets per second for the rule. When this value is exceeded for the set duration, an alert notification is sent. Minimum of 1 and no maximum.
cloudflare_magic_network_monitoring_rule
data "cloudflare_magic_network_monitoring_rule" "example_magic_network_monitoring_rule" {
account_id = "6f91088a406011ed95aed352566e8d4c"
rule_id = "2890e6fa406311ed9b5a23f70f6fb8cf"
}
data cloudflare_magic_network_monitoring_rules
cloudflare_magic_network_monitoring_rules
data "cloudflare_magic_network_monitoring_rules" "example_magic_network_monitoring_rules" {
account_id = "6f91088a406011ed95aed352566e8d4c"
}