Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getUdld
Explore with Pulumi AI
This data source can read the UDLD configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() => 
{
    var example = Iosxe.GetUdld.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.LookupUdld(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.GetUdldArgs;
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.getUdld();
    }
}
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_udld()
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getUdld({});
variables:
  example:
    fn::invoke:
      Function: iosxe:getUdld
      Arguments: {}
Using getUdld
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 getUdld(args: GetUdldArgs, opts?: InvokeOptions): Promise<GetUdldResult>
function getUdldOutput(args: GetUdldOutputArgs, opts?: InvokeOptions): Output<GetUdldResult>def get_udld(device: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUdldResult
def get_udld_output(device: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetUdldResult]func LookupUdld(ctx *Context, args *LookupUdldArgs, opts ...InvokeOption) (*LookupUdldResult, error)
func LookupUdldOutput(ctx *Context, args *LookupUdldOutputArgs, opts ...InvokeOption) LookupUdldResultOutput> Note: This function is named LookupUdld in the Go SDK.
public static class GetUdld 
{
    public static Task<GetUdldResult> InvokeAsync(GetUdldArgs args, InvokeOptions? opts = null)
    public static Output<GetUdldResult> Invoke(GetUdldInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUdldResult> getUdld(GetUdldArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: iosxe:index/getUdld:getUdld
  arguments:
    # arguments dictionaryThe 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.
 
getUdld Result
The following output properties are available:
- Aggressive bool
 - Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
 - Enable bool
 - Enable UDLD protocol on fiber ports except where locally configured
 - Id string
 - The path of the retrieved object.
 - Message
Time int - Set UDLD message time period
 - Recovery
Interval int - timer-interval(sec)
 - Device string
 - A device name from the provider configuration.
 
- Aggressive bool
 - Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
 - Enable bool
 - Enable UDLD protocol on fiber ports except where locally configured
 - Id string
 - The path of the retrieved object.
 - Message
Time int - Set UDLD message time period
 - Recovery
Interval int - timer-interval(sec)
 - Device string
 - A device name from the provider configuration.
 
- aggressive Boolean
 - Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
 - enable Boolean
 - Enable UDLD protocol on fiber ports except where locally configured
 - id String
 - The path of the retrieved object.
 - message
Time Integer - Set UDLD message time period
 - recovery
Interval Integer - timer-interval(sec)
 - device String
 - A device name from the provider configuration.
 
- aggressive boolean
 - Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
 - enable boolean
 - Enable UDLD protocol on fiber ports except where locally configured
 - id string
 - The path of the retrieved object.
 - message
Time number - Set UDLD message time period
 - recovery
Interval number - timer-interval(sec)
 - device string
 - A device name from the provider configuration.
 
- aggressive bool
 - Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
 - enable bool
 - Enable UDLD protocol on fiber ports except where locally configured
 - id str
 - The path of the retrieved object.
 - message_
time int - Set UDLD message time period
 - recovery_
interval int - timer-interval(sec)
 - device str
 - A device name from the provider configuration.
 
- aggressive Boolean
 - Enable UDLD protocol in aggressive mode on fiber ports exceptwhere locally configured
 - enable Boolean
 - Enable UDLD protocol on fiber ports except where locally configured
 - id String
 - The path of the retrieved object.
 - message
Time Number - Set UDLD message time period
 - recovery
Interval Number - timer-interval(sec)
 - device String
 - A device name from the provider configuration.
 
Package Details
- Repository
 - iosxe lbrlabs/pulumi-iosxe
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
iosxeTerraform Provider.