Cisco Meraki v0.2.4 published on Friday, Jun 14, 2024 by Pulumi
meraki.devices.getLldpCdp
Explore with Pulumi AI
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
Get
Lldp Cdp Item - Serial string
- serial path parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Get
Lldp Cdp Item - Serial string
- serial path parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- item
Get
Lldp Cdp Item - serial String
- serial path parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- item
Get
Lldp Cdp Item - serial string
- serial path parameter.
- id str
- The provider-assigned unique ID for this managed resource.
- item
Get
Lldp Cdp Item - 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
Get
Lldp Cdp Item Ports - Source
Mac string - Source MAC address
- Ports
Get
Lldp Cdp Item Ports - Source
Mac string - Source MAC address
- ports
Get
Lldp Cdp Item Ports - source
Mac String - Source MAC address
- ports
Get
Lldp Cdp Item Ports - source
Mac string - Source MAC address
- ports
Get
Lldp Cdp Item Ports - source_
mac str - Source MAC address
- ports Property Map
- source
Mac String - Source MAC address
GetLldpCdpItemPorts
GetLldpCdpItemPortsStatus12
GetLldpCdpItemPortsStatus12Cdp
- Address string
- Device
Id string - Port
Id string - Source
Port string
- Address string
- Device
Id string - Port
Id string - Source
Port string
- address String
- device
Id String - port
Id String - source
Port String
- address string
- device
Id string - port
Id string - source
Port string
- address str
- device_
id str - port_
id str - source_
port str
- address String
- device
Id String - port
Id String - source
Port String
GetLldpCdpItemPortsStatus12Lldp
- Management
Address string - Port
Id string - Source
Port string - System
Name string
- Management
Address string - Port
Id string - Source
Port string - System
Name string
- management
Address String - port
Id String - source
Port String - system
Name String
- management
Address string - port
Id string - source
Port string - system
Name string
- management_
address str - port_
id str - source_
port str - system_
name str
- management
Address String - port
Id String - source
Port String - system
Name String
GetLldpCdpItemPortsStatus8
GetLldpCdpItemPortsStatus8Cdp
- Address string
- Device
Id string - Port
Id string - Source
Port string
- Address string
- Device
Id string - Port
Id string - Source
Port string
- address String
- device
Id String - port
Id String - source
Port String
- address string
- device
Id string - port
Id string - source
Port string
- address str
- device_
id str - port_
id str - source_
port str
- address String
- device
Id String - port
Id String - source
Port String
Package Details
- Repository
- meraki pulumi/pulumi-meraki
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
meraki
Terraform Provider.