Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.23.1
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 = 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 dictionarydata "cloudflare_get_magic_wan_bgp_filter_profile" "name" {
# arguments
}The following arguments are supported:
- account_
id string - Identifier
- profile_
id string - Identifier
- account_
id str - Identifier
- profile_
id str - Identifier
getMagicWanBgpFilterProfile Result
The following output properties are available:
- 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.
- 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 []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.
- 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.
- 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 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.
- 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.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi