Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getMagicNetworkMonitoringRules
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleMagicNetworkMonitoringRules = cloudflare.getMagicNetworkMonitoringRules({
accountId: "6f91088a406011ed95aed352566e8d4c",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_magic_network_monitoring_rules = cloudflare.get_magic_network_monitoring_rules(account_id="6f91088a406011ed95aed352566e8d4c")
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.LookupMagicNetworkMonitoringRules(ctx, &cloudflare.LookupMagicNetworkMonitoringRulesArgs{
AccountId: "6f91088a406011ed95aed352566e8d4c",
}, nil)
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 exampleMagicNetworkMonitoringRules = Cloudflare.GetMagicNetworkMonitoringRules.Invoke(new()
{
AccountId = "6f91088a406011ed95aed352566e8d4c",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetMagicNetworkMonitoringRulesArgs;
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) {
final var exampleMagicNetworkMonitoringRules = CloudflareFunctions.getMagicNetworkMonitoringRules(GetMagicNetworkMonitoringRulesArgs.builder()
.accountId("6f91088a406011ed95aed352566e8d4c")
.build());
}
}
variables:
exampleMagicNetworkMonitoringRules:
fn::invoke:
function: cloudflare:getMagicNetworkMonitoringRules
arguments:
accountId: 6f91088a406011ed95aed352566e8d4c
Using getMagicNetworkMonitoringRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMagicNetworkMonitoringRules(args: GetMagicNetworkMonitoringRulesArgs, opts?: InvokeOptions): Promise<GetMagicNetworkMonitoringRulesResult>
function getMagicNetworkMonitoringRulesOutput(args: GetMagicNetworkMonitoringRulesOutputArgs, opts?: InvokeOptions): Output<GetMagicNetworkMonitoringRulesResult>
def get_magic_network_monitoring_rules(account_id: Optional[str] = None,
max_items: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetMagicNetworkMonitoringRulesResult
def get_magic_network_monitoring_rules_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMagicNetworkMonitoringRulesResult]
func LookupMagicNetworkMonitoringRules(ctx *Context, args *LookupMagicNetworkMonitoringRulesArgs, opts ...InvokeOption) (*LookupMagicNetworkMonitoringRulesResult, error)
func LookupMagicNetworkMonitoringRulesOutput(ctx *Context, args *LookupMagicNetworkMonitoringRulesOutputArgs, opts ...InvokeOption) LookupMagicNetworkMonitoringRulesResultOutput
> Note: This function is named LookupMagicNetworkMonitoringRules
in the Go SDK.
public static class GetMagicNetworkMonitoringRules
{
public static Task<GetMagicNetworkMonitoringRulesResult> InvokeAsync(GetMagicNetworkMonitoringRulesArgs args, InvokeOptions? opts = null)
public static Output<GetMagicNetworkMonitoringRulesResult> Invoke(GetMagicNetworkMonitoringRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMagicNetworkMonitoringRulesResult> getMagicNetworkMonitoringRules(GetMagicNetworkMonitoringRulesArgs args, InvokeOptions options)
public static Output<GetMagicNetworkMonitoringRulesResult> getMagicNetworkMonitoringRules(GetMagicNetworkMonitoringRulesArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getMagicNetworkMonitoringRules:getMagicNetworkMonitoringRules
arguments:
# arguments dictionary
The following arguments are supported:
- account_
id str - max_
items int - Max items to fetch, default: 1000
getMagicNetworkMonitoringRules Result
The following output properties are available:
- Account
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Magic Network Monitoring Rules Result> - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Magic Network Monitoring Rules Result - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Magic Network Monitoring Rules Result> - The items returned by the data source
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Magic Network Monitoring Rules Result[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- account_
id str - id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Magic Network Monitoring Rules Result] - The items returned by the data source
- max_
items int - Max items to fetch, default: 1000
- account
Id String - id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetMagicNetworkMonitoringRulesResult
- 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 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".
- Id string
- The id of the rule. Must be unique.
- 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".
- 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 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".
- Id string
- The id of the rule. Must be unique.
- 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".
- 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
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".
- id String
- The id of the rule. Must be unique.
- 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".
- 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
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".
- id string
- The id of the rule. Must be unique.
- 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".
- 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".
- id str
- The id of the rule. Must be unique.
- 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".
- 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
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".
- id String
- The id of the rule. Must be unique.
- 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".
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.