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

iosxe.getMsdpVrf

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 MSDP VRF configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetMsdpVrf.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.LookupMsdpVrf(ctx, &iosxe.LookupMsdpVrfArgs{
    			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.GetMsdpVrfArgs;
    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.getMsdpVrf(GetMsdpVrfArgs.builder()
                .vrf("VRF1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_msdp_vrf(vrf="VRF1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getMsdpVrf({
        vrf: "VRF1",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getMsdpVrf
          Arguments:
            vrf: VRF1
    

    Using getMsdpVrf

    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 getMsdpVrf(args: GetMsdpVrfArgs, opts?: InvokeOptions): Promise<GetMsdpVrfResult>
    function getMsdpVrfOutput(args: GetMsdpVrfOutputArgs, opts?: InvokeOptions): Output<GetMsdpVrfResult>
    def get_msdp_vrf(device: Optional[str] = None,
                     vrf: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetMsdpVrfResult
    def get_msdp_vrf_output(device: Optional[pulumi.Input[str]] = None,
                     vrf: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetMsdpVrfResult]
    func LookupMsdpVrf(ctx *Context, args *LookupMsdpVrfArgs, opts ...InvokeOption) (*LookupMsdpVrfResult, error)
    func LookupMsdpVrfOutput(ctx *Context, args *LookupMsdpVrfOutputArgs, opts ...InvokeOption) LookupMsdpVrfResultOutput

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

    public static class GetMsdpVrf 
    {
        public static Task<GetMsdpVrfResult> InvokeAsync(GetMsdpVrfArgs args, InvokeOptions? opts = null)
        public static Output<GetMsdpVrfResult> Invoke(GetMsdpVrfInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMsdpVrfResult> getMsdpVrf(GetMsdpVrfArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getMsdpVrf:getMsdpVrf
      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.

    getMsdpVrf Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    OriginatorId string
    Configure MSDP Originator ID
    Passwords List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetMsdpVrfPassword>
    MSDP peer on which the password is to be set
    Peers List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetMsdpVrfPeer>
    Configure an MSDP peer
    Vrf string
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    OriginatorId string
    Configure MSDP Originator ID
    Passwords []GetMsdpVrfPassword
    MSDP peer on which the password is to be set
    Peers []GetMsdpVrfPeer
    Configure an MSDP peer
    Vrf string
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    originatorId String
    Configure MSDP Originator ID
    passwords List<GetMsdpVrfPassword>
    MSDP peer on which the password is to be set
    peers List<GetMsdpVrfPeer>
    Configure an MSDP peer
    vrf String
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    originatorId string
    Configure MSDP Originator ID
    passwords GetMsdpVrfPassword[]
    MSDP peer on which the password is to be set
    peers GetMsdpVrfPeer[]
    Configure an MSDP peer
    vrf string
    device string
    A device name from the provider configuration.
    id str
    The path of the retrieved object.
    originator_id str
    Configure MSDP Originator ID
    passwords Sequence[GetMsdpVrfPassword]
    MSDP peer on which the password is to be set
    peers Sequence[GetMsdpVrfPeer]
    Configure an MSDP peer
    vrf str
    device str
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    originatorId String
    Configure MSDP Originator ID
    passwords List<Property Map>
    MSDP peer on which the password is to be set
    peers List<Property Map>
    Configure an MSDP peer
    vrf String
    device String
    A device name from the provider configuration.

    Supporting Types

    GetMsdpVrfPassword

    Addr string
    Encryption int
    Password string
    Addr string
    Encryption int
    Password string
    addr String
    encryption Integer
    password String
    addr string
    encryption number
    password string
    addr String
    encryption Number
    password String

    GetMsdpVrfPeer

    Addr string
    ConnectSourceLoopback int
    Loopback interface
    RemoteAs int
    Configured AS number
    Addr string
    ConnectSourceLoopback int
    Loopback interface
    RemoteAs int
    Configured AS number
    addr String
    connectSourceLoopback Integer
    Loopback interface
    remoteAs Integer
    Configured AS number
    addr string
    connectSourceLoopback number
    Loopback interface
    remoteAs number
    Configured AS number
    addr str
    connect_source_loopback int
    Loopback interface
    remote_as int
    Configured AS number
    addr String
    connectSourceLoopback Number
    Loopback interface
    remoteAs Number
    Configured AS 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