Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
This data source can read the CDP configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() =>
{
var example = Iosxe.GetCdp.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.LookupCdp(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.GetCdpArgs;
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.getCdp();
}
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getCdp({});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_cdp()
variables:
example:
fn::invoke:
Function: iosxe:getCdp
Arguments: {}
Using getCdp
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 getCdp(args: GetCdpArgs, opts?: InvokeOptions): Promise<GetCdpResult>
function getCdpOutput(args: GetCdpOutputArgs, opts?: InvokeOptions): Output<GetCdpResult>def get_cdp(device: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdpResult
def get_cdp_output(device: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdpResult]func LookupCdp(ctx *Context, args *LookupCdpArgs, opts ...InvokeOption) (*LookupCdpResult, error)
func LookupCdpOutput(ctx *Context, args *LookupCdpOutputArgs, opts ...InvokeOption) LookupCdpResultOutput> Note: This function is named LookupCdp in the Go SDK.
public static class GetCdp
{
public static Task<GetCdpResult> InvokeAsync(GetCdpArgs args, InvokeOptions? opts = null)
public static Output<GetCdpResult> Invoke(GetCdpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCdpResult> getCdp(GetCdpArgs args, InvokeOptions options)
public static Output<GetCdpResult> getCdp(GetCdpArgs args, InvokeOptions options)
fn::invoke:
function: iosxe:index/getCdp:getCdp
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.
getCdp Result
The following output properties are available:
- Filter
Tlv stringList - Apply tlv-list globally
- Holdtime int
- Specify the holdtime (in sec) to be sent in packets
- Id string
- The path of the retrieved object.
- Run bool
- Enable CDP
- Timer int
- Specify the rate at which CDP packets are sent (in sec)
- Tlv
Lists List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Cdp Tlv List> - Configure tlv-list
- Device string
- A device name from the provider configuration.
- Filter
Tlv stringList - Apply tlv-list globally
- Holdtime int
- Specify the holdtime (in sec) to be sent in packets
- Id string
- The path of the retrieved object.
- Run bool
- Enable CDP
- Timer int
- Specify the rate at which CDP packets are sent (in sec)
- Tlv
Lists []GetCdp Tlv List - Configure tlv-list
- Device string
- A device name from the provider configuration.
- filter
Tlv StringList - Apply tlv-list globally
- holdtime Integer
- Specify the holdtime (in sec) to be sent in packets
- id String
- The path of the retrieved object.
- run Boolean
- Enable CDP
- timer Integer
- Specify the rate at which CDP packets are sent (in sec)
- tlv
Lists List<GetCdp Tlv List> - Configure tlv-list
- device String
- A device name from the provider configuration.
- filter
Tlv stringList - Apply tlv-list globally
- holdtime number
- Specify the holdtime (in sec) to be sent in packets
- id string
- The path of the retrieved object.
- run boolean
- Enable CDP
- timer number
- Specify the rate at which CDP packets are sent (in sec)
- tlv
Lists GetCdp Tlv List[] - Configure tlv-list
- device string
- A device name from the provider configuration.
- filter_
tlv_ strlist - Apply tlv-list globally
- holdtime int
- Specify the holdtime (in sec) to be sent in packets
- id str
- The path of the retrieved object.
- run bool
- Enable CDP
- timer int
- Specify the rate at which CDP packets are sent (in sec)
- tlv_
lists Sequence[GetCdp Tlv List] - Configure tlv-list
- device str
- A device name from the provider configuration.
- filter
Tlv StringList - Apply tlv-list globally
- holdtime Number
- Specify the holdtime (in sec) to be sent in packets
- id String
- The path of the retrieved object.
- run Boolean
- Enable CDP
- timer Number
- Specify the rate at which CDP packets are sent (in sec)
- tlv
Lists List<Property Map> - Configure tlv-list
- device String
- A device name from the provider configuration.
Supporting Types
GetCdpTlvList
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxeTerraform Provider.
Viewing docs for Cisco IOS XE v0.0.1
published on Friday, Sep 22, 2023 by lbrlabs
published on Friday, Sep 22, 2023 by lbrlabs
