getDevices

Retrieve information about devices.

Example Usage

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(var_.global_network_id())
.tags(Map.of("Env", "test"))
.build());
}
}

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