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

iosxe.getMsdp

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

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetMsdp.Invoke();
    
    });
    
    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.LookupMsdp(ctx, nil, 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.GetMsdpArgs;
    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.getMsdp();
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_msdp()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getMsdp({});
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getMsdp
          Arguments: {}
    

    Using getMsdp

    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 getMsdp(args: GetMsdpArgs, opts?: InvokeOptions): Promise<GetMsdpResult>
    function getMsdpOutput(args: GetMsdpOutputArgs, opts?: InvokeOptions): Output<GetMsdpResult>
    def get_msdp(device: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetMsdpResult
    def get_msdp_output(device: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetMsdpResult]
    func LookupMsdp(ctx *Context, args *LookupMsdpArgs, opts ...InvokeOption) (*LookupMsdpResult, error)
    func LookupMsdpOutput(ctx *Context, args *LookupMsdpOutputArgs, opts ...InvokeOption) LookupMsdpResultOutput

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

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

    The following arguments are supported:

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

    getMsdp 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.GetMsdpPassword>
    MSDP peer on which the password is to be set
    Peers List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetMsdpPeer>
    Configure an MSDP peer
    Device string
    A device name from the provider configuration.
    Id string
    The path of the retrieved object.
    OriginatorId string
    Configure MSDP Originator ID
    Passwords []GetMsdpPassword
    MSDP peer on which the password is to be set
    Peers []GetMsdpPeer
    Configure an MSDP peer
    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<GetMsdpPassword>
    MSDP peer on which the password is to be set
    peers List<GetMsdpPeer>
    Configure an MSDP peer
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    originatorId string
    Configure MSDP Originator ID
    passwords GetMsdpPassword[]
    MSDP peer on which the password is to be set
    peers GetMsdpPeer[]
    Configure an MSDP peer
    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[GetMsdpPassword]
    MSDP peer on which the password is to be set
    peers Sequence[GetMsdpPeer]
    Configure an MSDP peer
    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
    device String
    A device name from the provider configuration.

    Supporting Types

    GetMsdpPassword

    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

    GetMsdpPeer

    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