published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleMagicWanBgpFilterProfile = new cloudflare.MagicWanBgpFilterProfile("example_magic_wan_bgp_filter_profile", {
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
matchAction: "allow",
name: "Allowed On-Prem Imports",
targets: ["10.0.0.0/8{8,32}"],
description: "Allowed corporate subnets from on-premises",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_magic_wan_bgp_filter_profile = cloudflare.MagicWanBgpFilterProfile("example_magic_wan_bgp_filter_profile",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
match_action="allow",
name="Allowed On-Prem Imports",
targets=["10.0.0.0/8{8,32}"],
description="Allowed corporate subnets from on-premises")
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.NewMagicWanBgpFilterProfile(ctx, "example_magic_wan_bgp_filter_profile", &cloudflare.MagicWanBgpFilterProfileArgs{
AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
MatchAction: pulumi.String("allow"),
Name: pulumi.String("Allowed On-Prem Imports"),
Targets: pulumi.StringArray{
pulumi.String("10.0.0.0/8{8,32}"),
},
Description: pulumi.String("Allowed corporate subnets from on-premises"),
})
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 = new Cloudflare.MagicWanBgpFilterProfile("example_magic_wan_bgp_filter_profile", new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
MatchAction = "allow",
Name = "Allowed On-Prem Imports",
Targets = new[]
{
"10.0.0.0/8{8,32}",
},
Description = "Allowed corporate subnets from on-premises",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.MagicWanBgpFilterProfile;
import com.pulumi.cloudflare.MagicWanBgpFilterProfileArgs;
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) {
var exampleMagicWanBgpFilterProfile = new MagicWanBgpFilterProfile("exampleMagicWanBgpFilterProfile", MagicWanBgpFilterProfileArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.matchAction("allow")
.name("Allowed On-Prem Imports")
.targets("10.0.0.0/8{8,32}")
.description("Allowed corporate subnets from on-premises")
.build());
}
}
resources:
exampleMagicWanBgpFilterProfile:
type: cloudflare:MagicWanBgpFilterProfile
name: example_magic_wan_bgp_filter_profile
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
matchAction: allow
name: Allowed On-Prem Imports
targets:
- 10.0.0.0/8{8,32}
description: Allowed corporate subnets from on-premises
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_magic_wan_bgp_filter_profile" "example_magic_wan_bgp_filter_profile" {
lifecycle {
create_before_destroy = true
}
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
match_action = "allow"
name = "Allowed On-Prem Imports"
targets = ["10.0.0.0/8{8,32}"]
description = "Allowed corporate subnets from on-premises"
}
Create MagicWanBgpFilterProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MagicWanBgpFilterProfile(name: string, args: MagicWanBgpFilterProfileArgs, opts?: CustomResourceOptions);@overload
def MagicWanBgpFilterProfile(resource_name: str,
args: MagicWanBgpFilterProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MagicWanBgpFilterProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
match_action: Optional[str] = None,
name: Optional[str] = None,
targets: Optional[Sequence[str]] = None,
description: Optional[str] = None)func NewMagicWanBgpFilterProfile(ctx *Context, name string, args MagicWanBgpFilterProfileArgs, opts ...ResourceOption) (*MagicWanBgpFilterProfile, error)public MagicWanBgpFilterProfile(string name, MagicWanBgpFilterProfileArgs args, CustomResourceOptions? opts = null)
public MagicWanBgpFilterProfile(String name, MagicWanBgpFilterProfileArgs args)
public MagicWanBgpFilterProfile(String name, MagicWanBgpFilterProfileArgs args, CustomResourceOptions options)
type: cloudflare:MagicWanBgpFilterProfile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_magic_wan_bgp_filter_profile" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args MagicWanBgpFilterProfileArgs
- 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 MagicWanBgpFilterProfileArgs
- 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 MagicWanBgpFilterProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MagicWanBgpFilterProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MagicWanBgpFilterProfileArgs
- 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 magicWanBgpFilterProfileResource = new Cloudflare.MagicWanBgpFilterProfile("magicWanBgpFilterProfileResource", new()
{
AccountId = "string",
MatchAction = "string",
Name = "string",
Targets = new[]
{
"string",
},
Description = "string",
});
example, err := cloudflare.NewMagicWanBgpFilterProfile(ctx, "magicWanBgpFilterProfileResource", &cloudflare.MagicWanBgpFilterProfileArgs{
AccountId: pulumi.String("string"),
MatchAction: pulumi.String("string"),
Name: pulumi.String("string"),
Targets: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
})
resource "cloudflare_magic_wan_bgp_filter_profile" "magicWanBgpFilterProfileResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
match_action = "string"
name = "string"
targets = ["string"]
description = "string"
}
var magicWanBgpFilterProfileResource = new MagicWanBgpFilterProfile("magicWanBgpFilterProfileResource", MagicWanBgpFilterProfileArgs.builder()
.accountId("string")
.matchAction("string")
.name("string")
.targets("string")
.description("string")
.build());
magic_wan_bgp_filter_profile_resource = cloudflare.MagicWanBgpFilterProfile("magicWanBgpFilterProfileResource",
account_id="string",
match_action="string",
name="string",
targets=["string"],
description="string")
const magicWanBgpFilterProfileResource = new cloudflare.MagicWanBgpFilterProfile("magicWanBgpFilterProfileResource", {
accountId: "string",
matchAction: "string",
name: "string",
targets: ["string"],
description: "string",
});
type: cloudflare:MagicWanBgpFilterProfile
properties:
accountId: string
description: string
matchAction: string
name: string
targets:
- string
MagicWanBgpFilterProfile 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 MagicWanBgpFilterProfile resource accepts the following input properties:
- Account
Id string - Identifier
- Match
Action string - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- Description string
- Description of the filter profile
- Account
Id string - Identifier
- Match
Action string - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- Description string
- Description of the filter profile
- account_
id string - Identifier
- match_
action string - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- description string
- Description of the filter profile
- account
Id String - Identifier
- match
Action String - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- description String
- Description of the filter profile
- account
Id string - Identifier
- match
Action string - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- description string
- Description of the filter profile
- account_
id str - Identifier
- match_
action str - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- description str
- Description of the filter profile
- account
Id String - Identifier
- match
Action String - Action to take when a route matches one of the targets in this profile Available values: "allow", "deny".
- 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.
- description String
- Description of the filter profile
Outputs
All input properties are implicitly available as output properties. Additionally, the MagicWanBgpFilterProfile resource produces the following output properties:
- Created
On string - Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string
- Created
On string - Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string
- created_
on string - id string
- The provider-assigned unique ID for this managed resource.
- modified_
on string
- created
On String - id String
- The provider-assigned unique ID for this managed resource.
- modified
On String
- created
On string - id string
- The provider-assigned unique ID for this managed resource.
- modified
On string
- created_
on str - id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str
- created
On String - id String
- The provider-assigned unique ID for this managed resource.
- modified
On String
Look up Existing MagicWanBgpFilterProfile Resource
Get an existing MagicWanBgpFilterProfile 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?: MagicWanBgpFilterProfileState, opts?: CustomResourceOptions): MagicWanBgpFilterProfile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_on: Optional[str] = None,
description: Optional[str] = None,
match_action: Optional[str] = None,
modified_on: Optional[str] = None,
name: Optional[str] = None,
targets: Optional[Sequence[str]] = None) -> MagicWanBgpFilterProfilefunc GetMagicWanBgpFilterProfile(ctx *Context, name string, id IDInput, state *MagicWanBgpFilterProfileState, opts ...ResourceOption) (*MagicWanBgpFilterProfile, error)public static MagicWanBgpFilterProfile Get(string name, Input<string> id, MagicWanBgpFilterProfileState? state, CustomResourceOptions? opts = null)public static MagicWanBgpFilterProfile get(String name, Output<String> id, MagicWanBgpFilterProfileState state, CustomResourceOptions options)resources: _: type: cloudflare:MagicWanBgpFilterProfile get: id: ${id}import {
to = cloudflare_magic_wan_bgp_filter_profile.example
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 - Identifier
- Created
On string - Description string
- Description of the filter profile
- 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.
- Account
Id string - Identifier
- Created
On string - Description string
- Description of the filter profile
- 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 []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
- 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.
- account
Id String - Identifier
- created
On String - description String
- Description of the filter profile
- 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.
- account
Id string - Identifier
- created
On string - description string
- Description of the filter profile
- 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 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
- 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.
- account
Id String - Identifier
- created
On String - description String
- Description of the filter profile
- 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.
Import
$ pulumi import cloudflare:index/magicWanBgpFilterProfile:MagicWanBgpFilterProfile example '<account_id>/<profile_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
cloudflareTerraform Provider.
published on Wednesday, Oct 21, 2026 by Pulumi