1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getMagicWanBgpFilterProfile
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 exampleMagicWanBgpFilterProfile = cloudflare.getMagicWanBgpFilterProfile({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        profileId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_magic_wan_bgp_filter_profile = cloudflare.get_magic_wan_bgp_filter_profile(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        profile_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.GetMagicWanBgpFilterProfile(ctx, &cloudflare.LookupMagicWanBgpFilterProfileArgs{
    			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
    			ProfileId: "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 exampleMagicWanBgpFilterProfile = Cloudflare.GetMagicWanBgpFilterProfile.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            ProfileId = "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.GetMagicWanBgpFilterProfileArgs;
    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 exampleMagicWanBgpFilterProfile = CloudflareFunctions.getMagicWanBgpFilterProfile(GetMagicWanBgpFilterProfileArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .profileId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleMagicWanBgpFilterProfile:
        fn::invoke:
          function: cloudflare:getMagicWanBgpFilterProfile
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            profileId: 023e105f4ecef8ad9ca31a8372d0c353
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_magic_wan_bgp_filter_profile" "exampleMagicWanBgpFilterProfile" {
      account_id = "023e105f4ecef8ad9ca31a8372d0c353"
      profile_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getMagicWanBgpFilterProfile

    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 getMagicWanBgpFilterProfile(args: GetMagicWanBgpFilterProfileArgs, opts?: InvokeOptions): Promise<GetMagicWanBgpFilterProfileResult>
    function getMagicWanBgpFilterProfileOutput(args: GetMagicWanBgpFilterProfileOutputArgs, opts?: InvokeOutputOptions): Output<GetMagicWanBgpFilterProfileResult>
    def get_magic_wan_bgp_filter_profile(account_id: Optional[str] = None,
                                         profile_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetMagicWanBgpFilterProfileResult
    def get_magic_wan_bgp_filter_profile_output(account_id: pulumi.Input[Optional[str]] = None,
                                         profile_id: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOutputOptions] = None) -> Output[GetMagicWanBgpFilterProfileResult]
    func LookupMagicWanBgpFilterProfile(ctx *Context, args *LookupMagicWanBgpFilterProfileArgs, opts ...InvokeOption) (*LookupMagicWanBgpFilterProfileResult, error)
    func LookupMagicWanBgpFilterProfileOutput(ctx *Context, args *LookupMagicWanBgpFilterProfileOutputArgs, opts ...InvokeOption) LookupMagicWanBgpFilterProfileResultOutput

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

    public static class GetMagicWanBgpFilterProfile 
    {
        public static Task<GetMagicWanBgpFilterProfileResult> InvokeAsync(GetMagicWanBgpFilterProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetMagicWanBgpFilterProfileResult> Invoke(GetMagicWanBgpFilterProfileInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetMagicWanBgpFilterProfileResult> Invoke(GetMagicWanBgpFilterProfileInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetMagicWanBgpFilterProfileResult> getMagicWanBgpFilterProfile(GetMagicWanBgpFilterProfileArgs args, InvokeOptions options)
    public static Output<GetMagicWanBgpFilterProfileResult> getMagicWanBgpFilterProfile(GetMagicWanBgpFilterProfileArgs args, InvokeOptions options)
    public static Output<GetMagicWanBgpFilterProfileResult> getMagicWanBgpFilterProfile(GetMagicWanBgpFilterProfileArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getMagicWanBgpFilterProfile:getMagicWanBgpFilterProfile
      arguments:
        # arguments dictionary
    data "cloudflare_get_magic_wan_bgp_filter_profile" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Identifier
    ProfileId string
    Identifier
    AccountId string
    Identifier
    ProfileId string
    Identifier
    account_id string
    Identifier
    profile_id string
    Identifier
    accountId String
    Identifier
    profileId String
    Identifier
    accountId string
    Identifier
    profileId string
    Identifier
    account_id str
    Identifier
    profile_id str
    Identifier
    accountId String
    Identifier
    profileId String
    Identifier

    getMagicWanBgpFilterProfile Result

    The following output properties are available:

    AccountId string
    Identifier
    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
    ProfileId string
    Identifier
    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.
    AccountId string
    Identifier
    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
    ProfileId string
    Identifier
    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.
    account_id string
    Identifier
    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
    profile_id string
    Identifier
    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.
    accountId String
    Identifier
    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
    profileId String
    Identifier
    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.
    accountId string
    Identifier
    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
    profileId string
    Identifier
    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.
    account_id str
    Identifier
    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
    profile_id str
    Identifier
    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.
    accountId String
    Identifier
    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
    profileId String
    Identifier
    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