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

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();

});
Copy
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
	})
}
Copy
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();

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";

const example = iosxe.getMsdp({});
Copy
import pulumi
import pulumi_iosxe as iosxe

example = iosxe.get_msdp()
Copy
variables:
  example:
    fn::invoke:
      Function: iosxe:getMsdp
      Arguments: {}
Copy

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>
Copy
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]
Copy
func LookupMsdp(ctx *Context, args *LookupMsdpArgs, opts ...InvokeOption) (*LookupMsdpResult, error)
func LookupMsdpOutput(ctx *Context, args *LookupMsdpOutputArgs, opts ...InvokeOption) LookupMsdpResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetMsdpResult> getMsdp(GetMsdpArgs args, InvokeOptions options)
public static Output<GetMsdpResult> getMsdp(GetMsdpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: iosxe:index/getMsdp:getMsdp
  arguments:
    # arguments dictionary
Copy

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 This property is required. string
Encryption This property is required. int
Password This property is required. string
Addr This property is required. string
Encryption This property is required. int
Password This property is required. string
addr This property is required. String
encryption This property is required. Integer
password This property is required. String
addr This property is required. string
encryption This property is required. number
password This property is required. string
addr This property is required. str
encryption This property is required. int
password This property is required. str
addr This property is required. String
encryption This property is required. Number
password This property is required. String

GetMsdpPeer

Addr This property is required. string
ConnectSourceLoopback This property is required. int
Loopback interface
RemoteAs This property is required. int
Configured AS number
Addr This property is required. string
ConnectSourceLoopback This property is required. int
Loopback interface
RemoteAs This property is required. int
Configured AS number
addr This property is required. String
connectSourceLoopback This property is required. Integer
Loopback interface
remoteAs This property is required. Integer
Configured AS number
addr This property is required. string
connectSourceLoopback This property is required. number
Loopback interface
remoteAs This property is required. number
Configured AS number
addr This property is required. str
connect_source_loopback This property is required. int
Loopback interface
remote_as This property is required. int
Configured AS number
addr This property is required. String
connectSourceLoopback This property is required. Number
Loopback interface
remoteAs This property is required. 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.
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs