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

cloudflare.getMagicNetworkMonitoringConfiguration

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 exampleMagicNetworkMonitoringConfiguration = cloudflare.getMagicNetworkMonitoringConfiguration({
        accountId: "6f91088a406011ed95aed352566e8d4c",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_magic_network_monitoring_configuration = cloudflare.get_magic_network_monitoring_configuration(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.LookupMagicNetworkMonitoringConfiguration(ctx, &cloudflare.LookupMagicNetworkMonitoringConfigurationArgs{
    			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 exampleMagicNetworkMonitoringConfiguration = Cloudflare.GetMagicNetworkMonitoringConfiguration.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.GetMagicNetworkMonitoringConfigurationArgs;
    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 exampleMagicNetworkMonitoringConfiguration = CloudflareFunctions.getMagicNetworkMonitoringConfiguration(GetMagicNetworkMonitoringConfigurationArgs.builder()
                .accountId("6f91088a406011ed95aed352566e8d4c")
                .build());
    
        }
    }
    
    variables:
      exampleMagicNetworkMonitoringConfiguration:
        fn::invoke:
          function: cloudflare:getMagicNetworkMonitoringConfiguration
          arguments:
            accountId: 6f91088a406011ed95aed352566e8d4c
    

    Using getMagicNetworkMonitoringConfiguration

    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 getMagicNetworkMonitoringConfiguration(args: GetMagicNetworkMonitoringConfigurationArgs, opts?: InvokeOptions): Promise<GetMagicNetworkMonitoringConfigurationResult>
    function getMagicNetworkMonitoringConfigurationOutput(args: GetMagicNetworkMonitoringConfigurationOutputArgs, opts?: InvokeOptions): Output<GetMagicNetworkMonitoringConfigurationResult>
    def get_magic_network_monitoring_configuration(account_id: Optional[str] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetMagicNetworkMonitoringConfigurationResult
    def get_magic_network_monitoring_configuration_output(account_id: Optional[pulumi.Input[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetMagicNetworkMonitoringConfigurationResult]
    func LookupMagicNetworkMonitoringConfiguration(ctx *Context, args *LookupMagicNetworkMonitoringConfigurationArgs, opts ...InvokeOption) (*LookupMagicNetworkMonitoringConfigurationResult, error)
    func LookupMagicNetworkMonitoringConfigurationOutput(ctx *Context, args *LookupMagicNetworkMonitoringConfigurationOutputArgs, opts ...InvokeOption) LookupMagicNetworkMonitoringConfigurationResultOutput

    > Note: This function is named LookupMagicNetworkMonitoringConfiguration in the Go SDK.

    public static class GetMagicNetworkMonitoringConfiguration 
    {
        public static Task<GetMagicNetworkMonitoringConfigurationResult> InvokeAsync(GetMagicNetworkMonitoringConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetMagicNetworkMonitoringConfigurationResult> Invoke(GetMagicNetworkMonitoringConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMagicNetworkMonitoringConfigurationResult> getMagicNetworkMonitoringConfiguration(GetMagicNetworkMonitoringConfigurationArgs args, InvokeOptions options)
    public static Output<GetMagicNetworkMonitoringConfigurationResult> getMagicNetworkMonitoringConfiguration(GetMagicNetworkMonitoringConfigurationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getMagicNetworkMonitoringConfiguration:getMagicNetworkMonitoringConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    AccountId string
    accountId String
    accountId string
    accountId String

    getMagicNetworkMonitoringConfiguration Result

    The following output properties are available:

    AccountId string
    DefaultSampling double
    Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The account name.
    RouterIps List<string>
    WarpDevices List<GetMagicNetworkMonitoringConfigurationWarpDevice>
    AccountId string
    DefaultSampling float64
    Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The account name.
    RouterIps []string
    WarpDevices []GetMagicNetworkMonitoringConfigurationWarpDevice
    accountId String
    defaultSampling Double
    Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The account name.
    routerIps List<String>
    warpDevices List<GetMagicNetworkMonitoringConfigurationWarpDevice>
    accountId string
    defaultSampling number
    Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The account name.
    routerIps string[]
    warpDevices GetMagicNetworkMonitoringConfigurationWarpDevice[]
    account_id str
    default_sampling float
    Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The account name.
    router_ips Sequence[str]
    warp_devices Sequence[GetMagicNetworkMonitoringConfigurationWarpDevice]
    accountId String
    defaultSampling Number
    Fallback sampling rate of flow messages being sent in packets per second. This should match the packet sampling rate configured on the router.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The account name.
    routerIps List<String>
    warpDevices List<Property Map>

    Supporting Types

    GetMagicNetworkMonitoringConfigurationWarpDevice

    Id string
    Unique identifier for the warp device.
    Name string
    Name of the warp device.
    RouterIp string
    IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported.
    Id string
    Unique identifier for the warp device.
    Name string
    Name of the warp device.
    RouterIp string
    IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported.
    id String
    Unique identifier for the warp device.
    name String
    Name of the warp device.
    routerIp String
    IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported.
    id string
    Unique identifier for the warp device.
    name string
    Name of the warp device.
    routerIp string
    IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported.
    id str
    Unique identifier for the warp device.
    name str
    Name of the warp device.
    router_ip str
    IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported.
    id String
    Unique identifier for the warp device.
    name String
    Name of the warp device.
    routerIp String
    IPv4 CIDR of the router sourcing flow data associated with this warp device. Only /32 addresses are currently supported.

    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