1. Packages
  2. Meraki Provider
  3. API Docs
  4. devices
  5. getLldpCdp
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

meraki.devices.getLldpCdp

Explore with Pulumi AI

meraki logo
Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = meraki.devices.getLldpCdp({
        serial: "string",
    });
    export const merakiDevicesLldpCdpExample = example.then(example => example.item);
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.devices.get_lldp_cdp(serial="string")
    pulumi.export("merakiDevicesLldpCdpExample", example.item)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/devices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devices.GetLldpCdp(ctx, &devices.GetLldpCdpArgs{
    			Serial: "string",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiDevicesLldpCdpExample", example.Item)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Meraki.Devices.GetLldpCdp.Invoke(new()
        {
            Serial = "string",
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiDevicesLldpCdpExample"] = example.Apply(getLldpCdpResult => getLldpCdpResult.Item),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.devices.DevicesFunctions;
    import com.pulumi.meraki.devices.inputs.GetLldpCdpArgs;
    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 = DevicesFunctions.getLldpCdp(GetLldpCdpArgs.builder()
                .serial("string")
                .build());
    
            ctx.export("merakiDevicesLldpCdpExample", example.applyValue(getLldpCdpResult -> getLldpCdpResult.item()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: meraki:devices:getLldpCdp
          Arguments:
            serial: string
    outputs:
      merakiDevicesLldpCdpExample: ${example.item}
    

    Using getLldpCdp

    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 getLldpCdp(args: GetLldpCdpArgs, opts?: InvokeOptions): Promise<GetLldpCdpResult>
    function getLldpCdpOutput(args: GetLldpCdpOutputArgs, opts?: InvokeOptions): Output<GetLldpCdpResult>
    def get_lldp_cdp(serial: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetLldpCdpResult
    def get_lldp_cdp_output(serial: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetLldpCdpResult]
    func GetLldpCdp(ctx *Context, args *GetLldpCdpArgs, opts ...InvokeOption) (*GetLldpCdpResult, error)
    func GetLldpCdpOutput(ctx *Context, args *GetLldpCdpOutputArgs, opts ...InvokeOption) GetLldpCdpResultOutput

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

    public static class GetLldpCdp 
    {
        public static Task<GetLldpCdpResult> InvokeAsync(GetLldpCdpArgs args, InvokeOptions? opts = null)
        public static Output<GetLldpCdpResult> Invoke(GetLldpCdpInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLldpCdpResult> getLldpCdp(GetLldpCdpArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: meraki:devices/getLldpCdp:getLldpCdp
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Serial string
    serial path parameter.
    Serial string
    serial path parameter.
    serial String
    serial path parameter.
    serial string
    serial path parameter.
    serial str
    serial path parameter.
    serial String
    serial path parameter.

    getLldpCdp Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetLldpCdpItem
    Serial string
    serial path parameter.
    Id string
    The provider-assigned unique ID for this managed resource.
    Item GetLldpCdpItem
    Serial string
    serial path parameter.
    id String
    The provider-assigned unique ID for this managed resource.
    item GetLldpCdpItem
    serial String
    serial path parameter.
    id string
    The provider-assigned unique ID for this managed resource.
    item GetLldpCdpItem
    serial string
    serial path parameter.
    id str
    The provider-assigned unique ID for this managed resource.
    item GetLldpCdpItem
    serial str
    serial path parameter.
    id String
    The provider-assigned unique ID for this managed resource.
    item Property Map
    serial String
    serial path parameter.

    Supporting Types

    GetLldpCdpItem

    Ports GetLldpCdpItemPorts
    SourceMac string
    Source MAC address
    Ports GetLldpCdpItemPorts
    SourceMac string
    Source MAC address
    ports GetLldpCdpItemPorts
    sourceMac String
    Source MAC address
    ports GetLldpCdpItemPorts
    sourceMac string
    Source MAC address
    ports GetLldpCdpItemPorts
    source_mac str
    Source MAC address
    ports Property Map
    sourceMac String
    Source MAC address

    GetLldpCdpItemPorts

    GetLldpCdpItemPortsStatus12

    GetLldpCdpItemPortsStatus12Cdp

    Address string
    DeviceId string
    PortId string
    SourcePort string
    Address string
    DeviceId string
    PortId string
    SourcePort string
    address String
    deviceId String
    portId String
    sourcePort String
    address string
    deviceId string
    portId string
    sourcePort string
    address String
    deviceId String
    portId String
    sourcePort String

    GetLldpCdpItemPortsStatus12Lldp

    GetLldpCdpItemPortsStatus8

    GetLldpCdpItemPortsStatus8Cdp

    Address string
    DeviceId string
    PortId string
    SourcePort string
    Address string
    DeviceId string
    PortId string
    SourcePort string
    address String
    deviceId String
    portId String
    sourcePort String
    address string
    deviceId string
    portId string
    sourcePort string
    address String
    deviceId String
    portId String
    sourcePort String

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Cisco Meraki v0.3.2 published on Tuesday, Sep 24, 2024 by Pulumi