Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleMagicWanStaticRoute = cloudflare.getMagicWanStaticRoute({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
routeId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_magic_wan_static_route = cloudflare.get_magic_wan_static_route(account_id="023e105f4ecef8ad9ca31a8372d0c353",
route_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.LookupMagicWanStaticRoute(ctx, &cloudflare.LookupMagicWanStaticRouteArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
RouteId: "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 exampleMagicWanStaticRoute = Cloudflare.GetMagicWanStaticRoute.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
RouteId = "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.GetMagicWanStaticRouteArgs;
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 exampleMagicWanStaticRoute = CloudflareFunctions.getMagicWanStaticRoute(GetMagicWanStaticRouteArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.routeId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleMagicWanStaticRoute:
fn::invoke:
function: cloudflare:getMagicWanStaticRoute
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
routeId: 023e105f4ecef8ad9ca31a8372d0c353
Using getMagicWanStaticRoute
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 getMagicWanStaticRoute(args: GetMagicWanStaticRouteArgs, opts?: InvokeOptions): Promise<GetMagicWanStaticRouteResult>
function getMagicWanStaticRouteOutput(args: GetMagicWanStaticRouteOutputArgs, opts?: InvokeOptions): Output<GetMagicWanStaticRouteResult>def get_magic_wan_static_route(account_id: Optional[str] = None,
route_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMagicWanStaticRouteResult
def get_magic_wan_static_route_output(account_id: Optional[pulumi.Input[str]] = None,
route_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMagicWanStaticRouteResult]func LookupMagicWanStaticRoute(ctx *Context, args *LookupMagicWanStaticRouteArgs, opts ...InvokeOption) (*LookupMagicWanStaticRouteResult, error)
func LookupMagicWanStaticRouteOutput(ctx *Context, args *LookupMagicWanStaticRouteOutputArgs, opts ...InvokeOption) LookupMagicWanStaticRouteResultOutput> Note: This function is named LookupMagicWanStaticRoute in the Go SDK.
public static class GetMagicWanStaticRoute
{
public static Task<GetMagicWanStaticRouteResult> InvokeAsync(GetMagicWanStaticRouteArgs args, InvokeOptions? opts = null)
public static Output<GetMagicWanStaticRouteResult> Invoke(GetMagicWanStaticRouteInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMagicWanStaticRouteResult> getMagicWanStaticRoute(GetMagicWanStaticRouteArgs args, InvokeOptions options)
public static Output<GetMagicWanStaticRouteResult> getMagicWanStaticRoute(GetMagicWanStaticRouteArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getMagicWanStaticRoute:getMagicWanStaticRoute
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - Identifier
- route_
id str - Identifier
getMagicWanStaticRoute Result
The following output properties are available:
- Account
Id string - Identifier
- Id string
- Identifier
- Route
Get
Magic Wan Static Route Route - Route
Id string - Identifier
- Account
Id string - Identifier
- Id string
- Identifier
- Route
Get
Magic Wan Static Route Route - Route
Id string - Identifier
- account
Id String - Identifier
- id String
- Identifier
- route
Get
Magic Wan Static Route Route - route
Id String - Identifier
- account
Id string - Identifier
- id string
- Identifier
- route
Get
Magic Wan Static Route Route - route
Id string - Identifier
- account_
id str - Identifier
- id str
- Identifier
- route
Get
Magic Wan Static Route Route - route_
id str - Identifier
- account
Id String - Identifier
- id String
- Identifier
- route Property Map
- route
Id String - Identifier
Supporting Types
GetMagicWanStaticRouteRoute
- Created
On string - When the route was created.
- Description string
- An optional human provided description of the static route.
- Id string
- Identifier
- Modified
On string - When the route was last modified.
- Nexthop string
- The next-hop IP Address for the static route.
- Prefix string
- IP Prefix in Classless Inter-Domain Routing format.
- Priority int
- Priority of the static route.
- Scope
Get
Magic Wan Static Route Route Scope - Used only for ECMP routes.
- Weight int
- Optional weight of the ECMP scope - if provided.
- Created
On string - When the route was created.
- Description string
- An optional human provided description of the static route.
- Id string
- Identifier
- Modified
On string - When the route was last modified.
- Nexthop string
- The next-hop IP Address for the static route.
- Prefix string
- IP Prefix in Classless Inter-Domain Routing format.
- Priority int
- Priority of the static route.
- Scope
Get
Magic Wan Static Route Route Scope - Used only for ECMP routes.
- Weight int
- Optional weight of the ECMP scope - if provided.
- created
On String - When the route was created.
- description String
- An optional human provided description of the static route.
- id String
- Identifier
- modified
On String - When the route was last modified.
- nexthop String
- The next-hop IP Address for the static route.
- prefix String
- IP Prefix in Classless Inter-Domain Routing format.
- priority Integer
- Priority of the static route.
- scope
Get
Magic Wan Static Route Route Scope - Used only for ECMP routes.
- weight Integer
- Optional weight of the ECMP scope - if provided.
- created
On string - When the route was created.
- description string
- An optional human provided description of the static route.
- id string
- Identifier
- modified
On string - When the route was last modified.
- nexthop string
- The next-hop IP Address for the static route.
- prefix string
- IP Prefix in Classless Inter-Domain Routing format.
- priority number
- Priority of the static route.
- scope
Get
Magic Wan Static Route Route Scope - Used only for ECMP routes.
- weight number
- Optional weight of the ECMP scope - if provided.
- created_
on str - When the route was created.
- description str
- An optional human provided description of the static route.
- id str
- Identifier
- modified_
on str - When the route was last modified.
- nexthop str
- The next-hop IP Address for the static route.
- prefix str
- IP Prefix in Classless Inter-Domain Routing format.
- priority int
- Priority of the static route.
- scope
Get
Magic Wan Static Route Route Scope - Used only for ECMP routes.
- weight int
- Optional weight of the ECMP scope - if provided.
- created
On String - When the route was created.
- description String
- An optional human provided description of the static route.
- id String
- Identifier
- modified
On String - When the route was last modified.
- nexthop String
- The next-hop IP Address for the static route.
- prefix String
- IP Prefix in Classless Inter-Domain Routing format.
- priority Number
- Priority of the static route.
- scope Property Map
- Used only for ECMP routes.
- weight Number
- Optional weight of the ECMP scope - if provided.
GetMagicWanStaticRouteRouteScope
- Colo
Names List<string> - List of colo names for the ECMP scope.
- Colo
Regions List<string> - List of colo regions for the ECMP scope.
- Colo
Names []string - List of colo names for the ECMP scope.
- Colo
Regions []string - List of colo regions for the ECMP scope.
- colo
Names List<String> - List of colo names for the ECMP scope.
- colo
Regions List<String> - List of colo regions for the ECMP scope.
- colo
Names string[] - List of colo names for the ECMP scope.
- colo
Regions string[] - List of colo regions for the ECMP scope.
- colo_
names Sequence[str] - List of colo names for the ECMP scope.
- colo_
regions Sequence[str] - List of colo regions for the ECMP scope.
- colo
Names List<String> - List of colo names for the ECMP scope.
- colo
Regions List<String> - List of colo regions for the ECMP scope.
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.13.0
published on Wednesday, Jan 21, 2026 by Pulumi
published on Wednesday, Jan 21, 2026 by Pulumi
