1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. MagicNetworkMonitoringRule
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • Magic Network Monitoring Admin
    • Magic Network Monitoring Config Read
    • Magic Network Monitoring Config Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleMagicNetworkMonitoringRule = new cloudflare.MagicNetworkMonitoringRule("example_magic_network_monitoring_rule", {
        accountId: "6f91088a406011ed95aed352566e8d4c",
        automaticAdvertisement: true,
        name: "my_rule_1",
        prefixes: ["203.0.113.1/32"],
        type: "zscore",
        bandwidthThreshold: 1000,
        duration: "1m",
        packetThreshold: 10000,
        prefixMatch: "exact",
        zscoreSensitivity: "high",
        zscoreTarget: "bits",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_magic_network_monitoring_rule = cloudflare.MagicNetworkMonitoringRule("example_magic_network_monitoring_rule",
        account_id="6f91088a406011ed95aed352566e8d4c",
        automatic_advertisement=True,
        name="my_rule_1",
        prefixes=["203.0.113.1/32"],
        type="zscore",
        bandwidth_threshold=1000,
        duration="1m",
        packet_threshold=10000,
        prefix_match="exact",
        zscore_sensitivity="high",
        zscore_target="bits")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewMagicNetworkMonitoringRule(ctx, "example_magic_network_monitoring_rule", &cloudflare.MagicNetworkMonitoringRuleArgs{
    			AccountId:              pulumi.String("6f91088a406011ed95aed352566e8d4c"),
    			AutomaticAdvertisement: pulumi.Bool(true),
    			Name:                   pulumi.String("my_rule_1"),
    			Prefixes: pulumi.StringArray{
    				pulumi.String("203.0.113.1/32"),
    			},
    			Type:               pulumi.String("zscore"),
    			BandwidthThreshold: pulumi.Float64(1000),
    			Duration:           pulumi.String("1m"),
    			PacketThreshold:    pulumi.Float64(10000),
    			PrefixMatch:        pulumi.String("exact"),
    			ZscoreSensitivity:  pulumi.String("high"),
    			ZscoreTarget:       pulumi.String("bits"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleMagicNetworkMonitoringRule = new Cloudflare.Index.MagicNetworkMonitoringRule("example_magic_network_monitoring_rule", new()
        {
            AccountId = "6f91088a406011ed95aed352566e8d4c",
            AutomaticAdvertisement = true,
            Name = "my_rule_1",
            Prefixes = new[]
            {
                "203.0.113.1/32",
            },
            Type = "zscore",
            BandwidthThreshold = 1000,
            Duration = "1m",
            PacketThreshold = 10000,
            PrefixMatch = "exact",
            ZscoreSensitivity = "high",
            ZscoreTarget = "bits",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.MagicNetworkMonitoringRule;
    import com.pulumi.cloudflare.MagicNetworkMonitoringRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleMagicNetworkMonitoringRule = new MagicNetworkMonitoringRule("exampleMagicNetworkMonitoringRule", MagicNetworkMonitoringRuleArgs.builder()
                .accountId("6f91088a406011ed95aed352566e8d4c")
                .automaticAdvertisement(true)
                .name("my_rule_1")
                .prefixes("203.0.113.1/32")
                .type("zscore")
                .bandwidthThreshold(1000.0)
                .duration("1m")
                .packetThreshold(10000.0)
                .prefixMatch("exact")
                .zscoreSensitivity("high")
                .zscoreTarget("bits")
                .build());
    
        }
    }
    
    resources:
      exampleMagicNetworkMonitoringRule:
        type: cloudflare:MagicNetworkMonitoringRule
        name: example_magic_network_monitoring_rule
        properties:
          accountId: 6f91088a406011ed95aed352566e8d4c
          automaticAdvertisement: true
          name: my_rule_1
          prefixes:
            - 203.0.113.1/32
          type: zscore
          bandwidthThreshold: 1000
          duration: 1m
          packetThreshold: 10000
          prefixMatch: exact
          zscoreSensitivity: high
          zscoreTarget: bits
    

    Create MagicNetworkMonitoringRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MagicNetworkMonitoringRule(name: string, args: MagicNetworkMonitoringRuleArgs, opts?: CustomResourceOptions);
    @overload
    def MagicNetworkMonitoringRule(resource_name: str,
                                   args: MagicNetworkMonitoringRuleArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def MagicNetworkMonitoringRule(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   automatic_advertisement: Optional[bool] = None,
                                   name: Optional[str] = None,
                                   prefixes: Optional[Sequence[str]] = None,
                                   type: Optional[str] = None,
                                   account_id: Optional[str] = None,
                                   bandwidth_threshold: Optional[float] = None,
                                   duration: Optional[str] = None,
                                   packet_threshold: Optional[float] = None,
                                   prefix_match: Optional[str] = None,
                                   zscore_sensitivity: Optional[str] = None,
                                   zscore_target: Optional[str] = None)
    func NewMagicNetworkMonitoringRule(ctx *Context, name string, args MagicNetworkMonitoringRuleArgs, opts ...ResourceOption) (*MagicNetworkMonitoringRule, error)
    public MagicNetworkMonitoringRule(string name, MagicNetworkMonitoringRuleArgs args, CustomResourceOptions? opts = null)
    public MagicNetworkMonitoringRule(String name, MagicNetworkMonitoringRuleArgs args)
    public MagicNetworkMonitoringRule(String name, MagicNetworkMonitoringRuleArgs args, CustomResourceOptions options)
    
    type: cloudflare:MagicNetworkMonitoringRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MagicNetworkMonitoringRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MagicNetworkMonitoringRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MagicNetworkMonitoringRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MagicNetworkMonitoringRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MagicNetworkMonitoringRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var magicNetworkMonitoringRuleResource = new Cloudflare.MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource", new()
    {
        AutomaticAdvertisement = false,
        Name = "string",
        Prefixes = new[]
        {
            "string",
        },
        Type = "string",
        AccountId = "string",
        BandwidthThreshold = 0,
        Duration = "string",
        PacketThreshold = 0,
        PrefixMatch = "string",
        ZscoreSensitivity = "string",
        ZscoreTarget = "string",
    });
    
    example, err := cloudflare.NewMagicNetworkMonitoringRule(ctx, "magicNetworkMonitoringRuleResource", &cloudflare.MagicNetworkMonitoringRuleArgs{
    	AutomaticAdvertisement: pulumi.Bool(false),
    	Name:                   pulumi.String("string"),
    	Prefixes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Type:               pulumi.String("string"),
    	AccountId:          pulumi.String("string"),
    	BandwidthThreshold: pulumi.Float64(0),
    	Duration:           pulumi.String("string"),
    	PacketThreshold:    pulumi.Float64(0),
    	PrefixMatch:        pulumi.String("string"),
    	ZscoreSensitivity:  pulumi.String("string"),
    	ZscoreTarget:       pulumi.String("string"),
    })
    
    var magicNetworkMonitoringRuleResource = new MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource", MagicNetworkMonitoringRuleArgs.builder()
        .automaticAdvertisement(false)
        .name("string")
        .prefixes("string")
        .type("string")
        .accountId("string")
        .bandwidthThreshold(0.0)
        .duration("string")
        .packetThreshold(0.0)
        .prefixMatch("string")
        .zscoreSensitivity("string")
        .zscoreTarget("string")
        .build());
    
    magic_network_monitoring_rule_resource = cloudflare.MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource",
        automatic_advertisement=False,
        name="string",
        prefixes=["string"],
        type="string",
        account_id="string",
        bandwidth_threshold=float(0),
        duration="string",
        packet_threshold=float(0),
        prefix_match="string",
        zscore_sensitivity="string",
        zscore_target="string")
    
    const magicNetworkMonitoringRuleResource = new cloudflare.MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource", {
        automaticAdvertisement: false,
        name: "string",
        prefixes: ["string"],
        type: "string",
        accountId: "string",
        bandwidthThreshold: 0,
        duration: "string",
        packetThreshold: 0,
        prefixMatch: "string",
        zscoreSensitivity: "string",
        zscoreTarget: "string",
    });
    
    type: cloudflare:MagicNetworkMonitoringRule
    properties:
        accountId: string
        automaticAdvertisement: false
        bandwidthThreshold: 0
        duration: string
        name: string
        packetThreshold: 0
        prefixMatch: string
        prefixes:
            - string
        type: string
        zscoreSensitivity: string
        zscoreTarget: string
    

    MagicNetworkMonitoringRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MagicNetworkMonitoringRule resource accepts the following input properties:

    AutomaticAdvertisement bool
    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.
    Name string
    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.
    Prefixes List<string>
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    AccountId string
    BandwidthThreshold double
    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.
    Duration string
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    PacketThreshold double
    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.
    PrefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    ZscoreSensitivity string
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    ZscoreTarget string
    Target of the zscore rule analysis. Available values: "bits", "packets".
    AutomaticAdvertisement bool
    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.
    Name string
    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.
    Prefixes []string
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    AccountId string
    BandwidthThreshold float64
    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.
    Duration string
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    PacketThreshold float64
    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.
    PrefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    ZscoreSensitivity string
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    ZscoreTarget string
    Target of the zscore rule analysis. Available values: "bits", "packets".
    automaticAdvertisement Boolean
    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.
    name String
    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.
    prefixes List<String>
    type String
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    accountId String
    bandwidthThreshold Double
    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.
    duration String
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    packetThreshold Double
    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.
    prefixMatch String
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    zscoreSensitivity String
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscoreTarget String
    Target of the zscore rule analysis. Available values: "bits", "packets".
    automaticAdvertisement boolean
    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.
    name string
    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.
    prefixes string[]
    type string
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    accountId string
    bandwidthThreshold number
    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.
    duration string
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    packetThreshold number
    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.
    prefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    zscoreSensitivity string
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscoreTarget string
    Target of the zscore rule analysis. Available values: "bits", "packets".
    automatic_advertisement bool
    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.
    name str
    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.
    prefixes Sequence[str]
    type str
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    account_id str
    bandwidth_threshold float
    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.
    duration str
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    packet_threshold float
    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.
    prefix_match str
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    zscore_sensitivity str
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscore_target str
    Target of the zscore rule analysis. Available values: "bits", "packets".
    automaticAdvertisement Boolean
    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.
    name String
    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.
    prefixes List<String>
    type String
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    accountId String
    bandwidthThreshold Number
    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.
    duration String
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    packetThreshold Number
    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.
    prefixMatch String
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    zscoreSensitivity String
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscoreTarget String
    Target of the zscore rule analysis. Available values: "bits", "packets".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MagicNetworkMonitoringRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MagicNetworkMonitoringRule Resource

    Get an existing MagicNetworkMonitoringRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MagicNetworkMonitoringRuleState, opts?: CustomResourceOptions): MagicNetworkMonitoringRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            automatic_advertisement: Optional[bool] = None,
            bandwidth_threshold: Optional[float] = None,
            duration: Optional[str] = None,
            name: Optional[str] = None,
            packet_threshold: Optional[float] = None,
            prefix_match: Optional[str] = None,
            prefixes: Optional[Sequence[str]] = None,
            type: Optional[str] = None,
            zscore_sensitivity: Optional[str] = None,
            zscore_target: Optional[str] = None) -> MagicNetworkMonitoringRule
    func GetMagicNetworkMonitoringRule(ctx *Context, name string, id IDInput, state *MagicNetworkMonitoringRuleState, opts ...ResourceOption) (*MagicNetworkMonitoringRule, error)
    public static MagicNetworkMonitoringRule Get(string name, Input<string> id, MagicNetworkMonitoringRuleState? state, CustomResourceOptions? opts = null)
    public static MagicNetworkMonitoringRule get(String name, Output<String> id, MagicNetworkMonitoringRuleState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:MagicNetworkMonitoringRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    AutomaticAdvertisement bool
    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.
    BandwidthThreshold double
    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.
    Duration string
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    Name string
    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.
    PacketThreshold double
    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.
    PrefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    Prefixes List<string>
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    ZscoreSensitivity string
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    ZscoreTarget string
    Target of the zscore rule analysis. Available values: "bits", "packets".
    AccountId string
    AutomaticAdvertisement bool
    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.
    BandwidthThreshold float64
    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.
    Duration string
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    Name string
    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.
    PacketThreshold float64
    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.
    PrefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    Prefixes []string
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    ZscoreSensitivity string
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    ZscoreTarget string
    Target of the zscore rule analysis. Available values: "bits", "packets".
    accountId String
    automaticAdvertisement Boolean
    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.
    bandwidthThreshold Double
    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.
    duration String
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    name String
    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.
    packetThreshold Double
    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.
    prefixMatch String
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    prefixes List<String>
    type String
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    zscoreSensitivity String
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscoreTarget String
    Target of the zscore rule analysis. Available values: "bits", "packets".
    accountId string
    automaticAdvertisement boolean
    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.
    bandwidthThreshold number
    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.
    duration string
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    name string
    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.
    packetThreshold number
    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.
    prefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    prefixes string[]
    type string
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    zscoreSensitivity string
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscoreTarget string
    Target of the zscore rule analysis. Available values: "bits", "packets".
    account_id str
    automatic_advertisement bool
    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.
    bandwidth_threshold float
    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.
    duration str
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    name str
    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.
    packet_threshold float
    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.
    prefix_match str
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    prefixes Sequence[str]
    type str
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    zscore_sensitivity str
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscore_target str
    Target of the zscore rule analysis. Available values: "bits", "packets".
    accountId String
    automaticAdvertisement Boolean
    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.
    bandwidthThreshold Number
    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.
    duration String
    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"]. Available values: "1m", "5m", "10m", "15m", "20m", "30m", "45m", "60m".
    name String
    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.
    packetThreshold Number
    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.
    prefixMatch String
    Prefix match type to be applied for a prefix auto advertisement when using an advancedDdos rule. Available values: "exact", "subnet", "supernet".
    prefixes List<String>
    type String
    MNM rule type. Available values: "threshold", "zscore", "advancedDdos".
    zscoreSensitivity String
    Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
    zscoreTarget String
    Target of the zscore rule analysis. Available values: "bits", "packets".

    Import

    $ pulumi import cloudflare:index/magicNetworkMonitoringRule:MagicNetworkMonitoringRule example '<account_id>/<rule_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.