1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getMagicWanBgpFilterProfiles
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleMagicWanBgpFilterProfiles = cloudflare.getMagicWanBgpFilterProfiles({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_magic_wan_bgp_filter_profiles = cloudflare.get_magic_wan_bgp_filter_profiles(account_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetMagicWanBgpFilterProfiles(ctx, &cloudflare.LookupMagicWanBgpFilterProfilesArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, 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 exampleMagicWanBgpFilterProfiles = Cloudflare.GetMagicWanBgpFilterProfiles.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    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.GetMagicWanBgpFilterProfilesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleMagicWanBgpFilterProfiles = CloudflareFunctions.getMagicWanBgpFilterProfiles(GetMagicWanBgpFilterProfilesArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleMagicWanBgpFilterProfiles:
        fn::invoke:
          function: cloudflare:getMagicWanBgpFilterProfiles
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_magic_wan_bgp_filter_profiles" "exampleMagicWanBgpFilterProfiles" {
      account_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getMagicWanBgpFilterProfiles

    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 getMagicWanBgpFilterProfiles(args: GetMagicWanBgpFilterProfilesArgs, opts?: InvokeOptions): Promise<GetMagicWanBgpFilterProfilesResult>
    function getMagicWanBgpFilterProfilesOutput(args: GetMagicWanBgpFilterProfilesOutputArgs, opts?: InvokeOutputOptions): Output<GetMagicWanBgpFilterProfilesResult>
    def get_magic_wan_bgp_filter_profiles(account_id: Optional[str] = None,
                                          max_items: Optional[int] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetMagicWanBgpFilterProfilesResult
    def get_magic_wan_bgp_filter_profiles_output(account_id: pulumi.Input[Optional[str]] = None,
                                          max_items: pulumi.Input[Optional[int]] = None,
                                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetMagicWanBgpFilterProfilesResult]
    func LookupMagicWanBgpFilterProfiles(ctx *Context, args *LookupMagicWanBgpFilterProfilesArgs, opts ...InvokeOption) (*LookupMagicWanBgpFilterProfilesResult, error)
    func LookupMagicWanBgpFilterProfilesOutput(ctx *Context, args *LookupMagicWanBgpFilterProfilesOutputArgs, opts ...InvokeOption) LookupMagicWanBgpFilterProfilesResultOutput

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

    public static class GetMagicWanBgpFilterProfiles 
    {
        public static Task<GetMagicWanBgpFilterProfilesResult> InvokeAsync(GetMagicWanBgpFilterProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetMagicWanBgpFilterProfilesResult> Invoke(GetMagicWanBgpFilterProfilesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMagicWanBgpFilterProfilesResult> Invoke(GetMagicWanBgpFilterProfilesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMagicWanBgpFilterProfilesResult> getMagicWanBgpFilterProfiles(GetMagicWanBgpFilterProfilesArgs args, InvokeOptions options)
    public static Output<GetMagicWanBgpFilterProfilesResult> getMagicWanBgpFilterProfiles(GetMagicWanBgpFilterProfilesArgs args, InvokeOptions options)
    public static Output<GetMagicWanBgpFilterProfilesResult> getMagicWanBgpFilterProfiles(GetMagicWanBgpFilterProfilesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getMagicWanBgpFilterProfiles:getMagicWanBgpFilterProfiles
      arguments:
        # arguments dictionary
    data "cloudflare_get_magic_wan_bgp_filter_profiles" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Identifier
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Identifier
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Identifier
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    maxItems Number
    Max items to fetch, default: 1000

    getMagicWanBgpFilterProfiles Result

    The following output properties are available:

    AccountId string
    Identifier
    Results List<GetMagicWanBgpFilterProfilesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier
    Results []GetMagicWanBgpFilterProfilesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    Identifier
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    Identifier
    results List<GetMagicWanBgpFilterProfilesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier
    results GetMagicWanBgpFilterProfilesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    Identifier
    results Sequence[GetMagicWanBgpFilterProfilesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    Identifier
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetMagicWanBgpFilterProfilesResult

    CreatedOn string
    Description string
    Description of the filter profile
    Id string
    Identifier
    MatchAction string
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    ModifiedOn string
    Name string
    Friendly name for the filter profile
    Targets List<string>
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.
    CreatedOn string
    Description string
    Description of the filter profile
    Id string
    Identifier
    MatchAction string
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    ModifiedOn string
    Name string
    Friendly name for the filter profile
    Targets []string
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.
    created_on string
    description string
    Description of the filter profile
    id string
    Identifier
    match_action string
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    modified_on string
    name string
    Friendly name for the filter profile
    targets list(string)
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.
    createdOn String
    description String
    Description of the filter profile
    id String
    Identifier
    matchAction String
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    modifiedOn String
    name String
    Friendly name for the filter profile
    targets List<String>
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.
    createdOn string
    description string
    Description of the filter profile
    id string
    Identifier
    matchAction string
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    modifiedOn string
    name string
    Friendly name for the filter profile
    targets string[]
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.
    created_on str
    description str
    Description of the filter profile
    id str
    Identifier
    match_action str
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    modified_on str
    name str
    Friendly name for the filter profile
    targets Sequence[str]
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.
    createdOn String
    description String
    Description of the filter profile
    id String
    Identifier
    matchAction String
    Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
    modifiedOn String
    name String
    Friendly name for the filter profile
    targets List<String>
    List of CIDR prefixes. Each entry may carry an optional suffix that specifies which prefix lengths to match relative to the prefix length N: '{X,Y}' matches prefix lengths in the inclusive range [X, Y] where N <= X <= Y <= max (max is 32 for IPv4, 128 for IPv6), '{X}' matches exactly length X (equivalent to {X,X}), '+' is shorthand for {N, max} (the prefix and all more-specific subnets, including at length N itself; valid even when N is the maximum length). Omit the suffix to match the prefix exactly at length N.

    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 logo
    Viewing docs for Cloudflare v6.23.1
    published on Wednesday, Oct 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial