1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. MagicNetworkMonitoringRule
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.MagicNetworkMonitoringRule

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    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",
        duration: "1m",
        name: "my_rule_1",
        automaticAdvertisement: true,
        bandwidth: 1000,
        packetThreshold: 10000,
        prefixes: ["203.0.113.1/32"],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_magic_network_monitoring_rule = cloudflare.MagicNetworkMonitoringRule("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"])
    
    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"),
    			Duration:               pulumi.String("1m"),
    			Name:                   pulumi.String("my_rule_1"),
    			AutomaticAdvertisement: pulumi.Bool(true),
    			Bandwidth:              pulumi.Float64(1000),
    			PacketThreshold:        pulumi.Float64(10000),
    			Prefixes: pulumi.StringArray{
    				pulumi.String("203.0.113.1/32"),
    			},
    		})
    		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.MagicNetworkMonitoringRule("example_magic_network_monitoring_rule", new()
        {
            AccountId = "6f91088a406011ed95aed352566e8d4c",
            Duration = "1m",
            Name = "my_rule_1",
            AutomaticAdvertisement = true,
            Bandwidth = 1000,
            PacketThreshold = 10000,
            Prefixes = new[]
            {
                "203.0.113.1/32",
            },
        });
    
    });
    
    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")
                .duration("1m")
                .name("my_rule_1")
                .automaticAdvertisement(true)
                .bandwidth(1000.0)
                .packetThreshold(10000.0)
                .prefixes("203.0.113.1/32")
                .build());
    
        }
    }
    
    resources:
      exampleMagicNetworkMonitoringRule:
        type: cloudflare:MagicNetworkMonitoringRule
        name: example_magic_network_monitoring_rule
        properties:
          accountId: 6f91088a406011ed95aed352566e8d4c
          duration: 1m
          name: my_rule_1
          automaticAdvertisement: true
          bandwidth: 1000
          packetThreshold: 10000
          prefixes:
            - 203.0.113.1/32
    

    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,
                                   account_id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   automatic_advertisement: Optional[bool] = None,
                                   bandwidth: Optional[float] = None,
                                   duration: Optional[str] = None,
                                   packet_threshold: Optional[float] = None,
                                   prefixes: Optional[Sequence[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()
    {
        AccountId = "string",
        Name = "string",
        AutomaticAdvertisement = false,
        Bandwidth = 0,
        Duration = "string",
        PacketThreshold = 0,
        Prefixes = new[]
        {
            "string",
        },
    });
    
    example, err := cloudflare.NewMagicNetworkMonitoringRule(ctx, "magicNetworkMonitoringRuleResource", &cloudflare.MagicNetworkMonitoringRuleArgs{
    	AccountId:              pulumi.String("string"),
    	Name:                   pulumi.String("string"),
    	AutomaticAdvertisement: pulumi.Bool(false),
    	Bandwidth:              pulumi.Float64(0),
    	Duration:               pulumi.String("string"),
    	PacketThreshold:        pulumi.Float64(0),
    	Prefixes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var magicNetworkMonitoringRuleResource = new MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource", MagicNetworkMonitoringRuleArgs.builder()
        .accountId("string")
        .name("string")
        .automaticAdvertisement(false)
        .bandwidth(0)
        .duration("string")
        .packetThreshold(0)
        .prefixes("string")
        .build());
    
    magic_network_monitoring_rule_resource = cloudflare.MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource",
        account_id="string",
        name="string",
        automatic_advertisement=False,
        bandwidth=0,
        duration="string",
        packet_threshold=0,
        prefixes=["string"])
    
    const magicNetworkMonitoringRuleResource = new cloudflare.MagicNetworkMonitoringRule("magicNetworkMonitoringRuleResource", {
        accountId: "string",
        name: "string",
        automaticAdvertisement: false,
        bandwidth: 0,
        duration: "string",
        packetThreshold: 0,
        prefixes: ["string"],
    });
    
    type: cloudflare:MagicNetworkMonitoringRule
    properties:
        accountId: string
        automaticAdvertisement: false
        bandwidth: 0
        duration: string
        name: string
        packetThreshold: 0
        prefixes:
            - 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:

    AccountId string
    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.
    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.
    Bandwidth 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.
    Prefixes List<string>
    AccountId string
    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.
    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.
    Bandwidth 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.
    Prefixes []string
    accountId String
    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.
    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.
    bandwidth 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.
    prefixes List<String>
    accountId string
    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.
    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.
    bandwidth 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.
    prefixes string[]
    account_id str
    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.
    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 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.
    prefixes Sequence[str]
    accountId String
    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.
    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.
    bandwidth 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.
    prefixes List<String>

    Outputs

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

    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    PrefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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".
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    PrefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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".
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    prefixMatch String
    Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    type String
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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".
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    prefixMatch string
    Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    type string
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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".
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    prefix_match str
    Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    type str
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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".
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    prefixMatch String
    Prefix match type to be applied for a prefix auto advertisement when using an advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    type String
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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".

    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: Optional[float] = 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.
    Bandwidth 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.
    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 advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    Prefixes List<string>
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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.
    Bandwidth 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.
    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 advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    Prefixes []string
    Type string
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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.
    bandwidth 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.
    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 advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    prefixes List<String>
    type String
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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.
    bandwidth 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.
    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 advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    prefixes string[]
    type string
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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 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.
    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 advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    prefixes Sequence[str]
    type str
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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.
    bandwidth 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.
    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 advanced_ddos rule. Available values: "exact", "subnet", "supernet".
    prefixes List<String>
    type String
    MNM rule type. Available values: "threshold", "zscore", "advanced_ddos".
    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
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi