getDevices

Retrieve information about devices.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getDevices({
globalNetworkId: globalNetworkId,
tags: {
Env: "test",
},
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_devices(global_network_id=global_network_id,
tags={
"Env": "test",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.NetworkManager.GetDevices.Invoke(new()
{
GlobalNetworkId = globalNetworkId,
Tags =
{
{ "Env", "test" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.GetDevices(ctx, &networkmanager.GetDevicesArgs{
GlobalNetworkId: globalNetworkId,
Tags: map[string]interface{}{
"Env": "test",
},
}, 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.aws.networkmanager.NetworkmanagerFunctions;
import com.pulumi.aws.networkmanager.inputs.GetDevicesArgs;
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 = NetworkmanagerFunctions.getDevices(GetDevicesArgs.builder()
.globalNetworkId(globalNetworkId)
.tags(Map.of("Env", "test"))
.build());
}
}
variables:
example:
fn::invoke:
function: aws:networkmanager:getDevices
arguments:
globalNetworkId: ${globalNetworkId}
tags:
Env: test

Return

A collection of values returned by getDevices.

Parameters

argument

A collection of arguments for invoking getDevices.


suspend fun getDevices(globalNetworkId: String, siteId: String? = null, tags: Map<String, String>? = null): GetDevicesResult

Return

A collection of values returned by getDevices.

Parameters

globalNetworkId

ID of the Global Network of the devices to retrieve.

siteId

ID of the site of the devices to retrieve.

tags

Restricts the list to the devices with these tags.

See also


suspend fun getDevices(argument: suspend GetDevicesPlainArgsBuilder.() -> Unit): GetDevicesResult

Return

A collection of values returned by getDevices.

Parameters

argument

Builder for com.pulumi.aws.networkmanager.kotlin.inputs.GetDevicesPlainArgs.

See also