cloudflare.MagicNetworkMonitoringRule
Explore with Pulumi AI
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:
- Account
Id 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.
- 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 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".
- Packet
Threshold 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>
- Account
Id 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.
- 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 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".
- Packet
Threshold 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
- account
Id 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.
- automatic
Advertisement 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".
- packet
Threshold 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>
- account
Id 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.
- automatic
Advertisement 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".
- packet
Threshold 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]
- account
Id 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.
- automatic
Advertisement 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".
- packet
Threshold 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:
- Bandwidth
Threshold 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.
- Prefix
Match 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".
- Zscore
Sensitivity string - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- Zscore
Target string - Target of the zscore rule analysis. Available values: "bits", "packets".
- Bandwidth
Threshold 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.
- Prefix
Match 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".
- Zscore
Sensitivity string - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- Zscore
Target string - Target of the zscore rule analysis. Available values: "bits", "packets".
- bandwidth
Threshold 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.
- prefix
Match 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".
- zscore
Sensitivity String - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- zscore
Target String - Target of the zscore rule analysis. Available values: "bits", "packets".
- bandwidth
Threshold 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.
- prefix
Match 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".
- zscore
Sensitivity string - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- zscore
Target 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".
- bandwidth
Threshold 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.
- prefix
Match 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".
- zscore
Sensitivity String - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- zscore
Target 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.
- Account
Id string - 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 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.
- Bandwidth
Threshold 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.
- Packet
Threshold 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.
- Prefix
Match 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".
- Zscore
Sensitivity string - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- Zscore
Target string - Target of the zscore rule analysis. Available values: "bits", "packets".
- Account
Id string - 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 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.
- Bandwidth
Threshold 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.
- Packet
Threshold 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.
- Prefix
Match 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".
- Zscore
Sensitivity string - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- Zscore
Target string - Target of the zscore rule analysis. Available values: "bits", "packets".
- account
Id String - automatic
Advertisement 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.
- bandwidth
Threshold 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.
- packet
Threshold 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.
- prefix
Match 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".
- zscore
Sensitivity String - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- zscore
Target String - Target of the zscore rule analysis. Available values: "bits", "packets".
- account
Id string - automatic
Advertisement 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.
- bandwidth
Threshold 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.
- packet
Threshold 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.
- prefix
Match 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".
- zscore
Sensitivity string - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- zscore
Target 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".
- account
Id String - automatic
Advertisement 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.
- bandwidth
Threshold 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.
- packet
Threshold 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.
- prefix
Match 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".
- zscore
Sensitivity String - Level of sensitivity set for zscore rules. Available values: "low", "medium", "high".
- zscore
Target 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.