AWS v6.55.0 published on Monday, Oct 7, 2024 by Pulumi
aws.networkmanager.getDevices
Explore with Pulumi AI
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",
})
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
})
}
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 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
Using getDevices
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 getDevices(args: GetDevicesArgs, opts?: InvokeOptions): Promise<GetDevicesResult>
function getDevicesOutput(args: GetDevicesOutputArgs, opts?: InvokeOptions): Output<GetDevicesResult>
def get_devices(global_network_id: Optional[str] = None,
site_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetDevicesResult
def get_devices_output(global_network_id: Optional[pulumi.Input[str]] = None,
site_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDevicesResult]
func GetDevices(ctx *Context, args *GetDevicesArgs, opts ...InvokeOption) (*GetDevicesResult, error)
func GetDevicesOutput(ctx *Context, args *GetDevicesOutputArgs, opts ...InvokeOption) GetDevicesResultOutput
> Note: This function is named GetDevices
in the Go SDK.
public static class GetDevices
{
public static Task<GetDevicesResult> InvokeAsync(GetDevicesArgs args, InvokeOptions? opts = null)
public static Output<GetDevicesResult> Invoke(GetDevicesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDevicesResult> getDevices(GetDevicesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:networkmanager/getDevices:getDevices
arguments:
# arguments dictionary
The following arguments are supported:
- Global
Network stringId - ID of the Global Network of the devices to retrieve.
- Site
Id string - ID of the site of the devices to retrieve.
- Dictionary<string, string>
- Restricts the list to the devices with these tags.
- Global
Network stringId - ID of the Global Network of the devices to retrieve.
- Site
Id string - ID of the site of the devices to retrieve.
- map[string]string
- Restricts the list to the devices with these tags.
- global
Network StringId - ID of the Global Network of the devices to retrieve.
- site
Id String - ID of the site of the devices to retrieve.
- Map<String,String>
- Restricts the list to the devices with these tags.
- global
Network stringId - ID of the Global Network of the devices to retrieve.
- site
Id string - ID of the site of the devices to retrieve.
- {[key: string]: string}
- Restricts the list to the devices with these tags.
- global_
network_ strid - ID of the Global Network of the devices to retrieve.
- site_
id str - ID of the site of the devices to retrieve.
- Mapping[str, str]
- Restricts the list to the devices with these tags.
- global
Network StringId - ID of the Global Network of the devices to retrieve.
- site
Id String - ID of the site of the devices to retrieve.
- Map<String>
- Restricts the list to the devices with these tags.
getDevices Result
The following output properties are available:
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- IDs of the devices.
- Site
Id string - Dictionary<string, string>
- Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- IDs of the devices.
- Site
Id string - map[string]string
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the devices.
- site
Id String - Map<String,String>
- global
Network stringId - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- IDs of the devices.
- site
Id string - {[key: string]: string}
- global_
network_ strid - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- IDs of the devices.
- site_
id str - Mapping[str, str]
- global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the devices.
- site
Id String - Map<String>
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.