1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getMagicWanStaticRoute
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getMagicWanStaticRoute

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 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 dictionary

    The following arguments are supported:

    AccountId string
    Identifier
    RouteId string
    Identifier
    AccountId string
    Identifier
    RouteId string
    Identifier
    accountId String
    Identifier
    routeId String
    Identifier
    accountId string
    Identifier
    routeId string
    Identifier
    account_id str
    Identifier
    route_id str
    Identifier
    accountId String
    Identifier
    routeId String
    Identifier

    getMagicWanStaticRoute Result

    The following output properties are available:

    AccountId string
    Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Route GetMagicWanStaticRouteRoute
    RouteId string
    Identifier
    AccountId string
    Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Route GetMagicWanStaticRouteRoute
    RouteId string
    Identifier
    accountId String
    Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    route GetMagicWanStaticRouteRoute
    routeId String
    Identifier
    accountId string
    Identifier
    id string
    The provider-assigned unique ID for this managed resource.
    route GetMagicWanStaticRouteRoute
    routeId string
    Identifier
    account_id str
    Identifier
    id str
    The provider-assigned unique ID for this managed resource.
    route GetMagicWanStaticRouteRoute
    route_id str
    Identifier
    accountId String
    Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    route Property Map
    routeId String
    Identifier

    Supporting Types

    GetMagicWanStaticRouteRoute

    CreatedOn string
    When the route was created.
    Description string
    An optional human provided description of the static route.
    Id string
    Identifier
    ModifiedOn 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 GetMagicWanStaticRouteRouteScope
    Used only for ECMP routes.
    Weight int
    Optional weight of the ECMP scope - if provided.
    CreatedOn string
    When the route was created.
    Description string
    An optional human provided description of the static route.
    Id string
    Identifier
    ModifiedOn 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 GetMagicWanStaticRouteRouteScope
    Used only for ECMP routes.
    Weight int
    Optional weight of the ECMP scope - if provided.
    createdOn String
    When the route was created.
    description String
    An optional human provided description of the static route.
    id String
    Identifier
    modifiedOn 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 GetMagicWanStaticRouteRouteScope
    Used only for ECMP routes.
    weight Integer
    Optional weight of the ECMP scope - if provided.
    createdOn string
    When the route was created.
    description string
    An optional human provided description of the static route.
    id string
    Identifier
    modifiedOn 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 GetMagicWanStaticRouteRouteScope
    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 GetMagicWanStaticRouteRouteScope
    Used only for ECMP routes.
    weight int
    Optional weight of the ECMP scope - if provided.
    createdOn String
    When the route was created.
    description String
    An optional human provided description of the static route.
    id String
    Identifier
    modifiedOn 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

    ColoNames List<string>
    List of colo names for the ECMP scope.
    ColoRegions List<string>
    List of colo regions for the ECMP scope.
    ColoNames []string
    List of colo names for the ECMP scope.
    ColoRegions []string
    List of colo regions for the ECMP scope.
    coloNames List<String>
    List of colo names for the ECMP scope.
    coloRegions List<String>
    List of colo regions for the ECMP scope.
    coloNames string[]
    List of colo names for the ECMP scope.
    coloRegions 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.
    coloNames List<String>
    List of colo names for the ECMP scope.
    coloRegions 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 cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi