get Devices
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());
}
}
Content copied to clipboard
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
global Network Id
ID of the Global Network of the devices to retrieve.
site Id
ID of the site of the devices to retrieve.
tags
Restricts the list to the devices with these tags.
See also
Return
A collection of values returned by getDevices.
Parameters
argument
Builder for com.pulumi.aws.networkmanager.kotlin.inputs.GetDevicesPlainArgs.