1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getStaticRouteVrf
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getStaticRouteVrf

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the Static Route VRF configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetStaticRouteVrf.Invoke(new()
        {
            Vrf = "VRF1",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := iosxe.LookupStaticRouteVrf(ctx, &iosxe.LookupStaticRouteVrfArgs{
    			Vrf: "VRF1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.iosxe.IosxeFunctions;
    import com.pulumi.iosxe.inputs.GetStaticRouteVrfArgs;
    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 example = IosxeFunctions.getStaticRouteVrf(GetStaticRouteVrfArgs.builder()
                .vrf("VRF1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_static_route_vrf(vrf="VRF1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getStaticRouteVrf({
        vrf: "VRF1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getStaticRouteVrf
          Arguments:
            vrf: VRF1
    

    Using getStaticRouteVrf

    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 getStaticRouteVrf(args: GetStaticRouteVrfArgs, opts?: InvokeOptions): Promise<GetStaticRouteVrfResult>
    function getStaticRouteVrfOutput(args: GetStaticRouteVrfOutputArgs, opts?: InvokeOptions): Output<GetStaticRouteVrfResult>
    def get_static_route_vrf(device: Optional[str] = None,
                             vrf: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetStaticRouteVrfResult
    def get_static_route_vrf_output(device: Optional[pulumi.Input[str]] = None,
                             vrf: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetStaticRouteVrfResult]
    func LookupStaticRouteVrf(ctx *Context, args *LookupStaticRouteVrfArgs, opts ...InvokeOption) (*LookupStaticRouteVrfResult, error)
    func LookupStaticRouteVrfOutput(ctx *Context, args *LookupStaticRouteVrfOutputArgs, opts ...InvokeOption) LookupStaticRouteVrfResultOutput

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

    public static class GetStaticRouteVrf 
    {
        public static Task<GetStaticRouteVrfResult> InvokeAsync(GetStaticRouteVrfArgs args, InvokeOptions? opts = null)
        public static Output<GetStaticRouteVrfResult> Invoke(GetStaticRouteVrfInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStaticRouteVrfResult> getStaticRouteVrf(GetStaticRouteVrfArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getStaticRouteVrf:getStaticRouteVrf
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Vrf string
    Device string
    A device name from the provider configuration.
    Vrf string
    Device string
    A device name from the provider configuration.
    vrf String
    device String
    A device name from the provider configuration.
    vrf string
    device string
    A device name from the provider configuration.
    vrf str
    device str
    A device name from the provider configuration.
    vrf String
    device String
    A device name from the provider configuration.

    getStaticRouteVrf Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    Routes List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetStaticRouteVrfRoute>
    Vrf string
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    Routes []GetStaticRouteVrfRoute
    Vrf string
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    routes List<GetStaticRouteVrfRoute>
    vrf String
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    routes GetStaticRouteVrfRoute[]
    vrf string
    device string
    A device name from the provider configuration.
    id str
    The path of the retrieved object.
    routes Sequence[GetStaticRouteVrfRoute]
    vrf str
    device str
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    routes List<Property Map>
    vrf String
    device String
    A device name from the provider configuration.

    Supporting Types

    GetStaticRouteVrfRoute

    GetStaticRouteVrfRouteNextHop

    Global bool
    Metric int
    Name string
    NextHop string
    Permanent bool
    Tag int
    Global bool
    Metric int
    Name string
    NextHop string
    Permanent bool
    Tag int
    global Boolean
    metric Integer
    name String
    nextHop String
    permanent Boolean
    tag Integer
    global boolean
    metric number
    name string
    nextHop string
    permanent boolean
    tag number
    global_ bool
    metric int
    name str
    next_hop str
    permanent bool
    tag int
    global Boolean
    metric Number
    name String
    nextHop String
    permanent Boolean
    tag Number

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs