Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
Provides details about an existing Network Manager device.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.networkmanager.getDevice({
globalNetworkId: globalNetworkId,
deviceId: deviceId,
});
import pulumi
import pulumi_aws as aws
example = aws.networkmanager.get_device(global_network_id=global_network_id,
device_id=device_id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networkmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkmanager.LookupDevice(ctx, &networkmanager.LookupDeviceArgs{
GlobalNetworkId: globalNetworkId,
DeviceId: deviceId,
}, 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.GetDevice.Invoke(new()
{
GlobalNetworkId = globalNetworkId,
DeviceId = deviceId,
});
});
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.GetDeviceArgs;
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.getDevice(GetDeviceArgs.builder()
.globalNetworkId(globalNetworkId)
.deviceId(deviceId)
.build());
}
}
variables:
example:
fn::invoke:
function: aws:networkmanager:getDevice
arguments:
globalNetworkId: ${globalNetworkId}
deviceId: ${deviceId}
Using getDevice
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 getDevice(args: GetDeviceArgs, opts?: InvokeOptions): Promise<GetDeviceResult>
function getDeviceOutput(args: GetDeviceOutputArgs, opts?: InvokeOptions): Output<GetDeviceResult>def get_device(device_id: Optional[str] = None,
global_network_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetDeviceResult
def get_device_output(device_id: Optional[pulumi.Input[str]] = None,
global_network_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDeviceResult]func LookupDevice(ctx *Context, args *LookupDeviceArgs, opts ...InvokeOption) (*LookupDeviceResult, error)
func LookupDeviceOutput(ctx *Context, args *LookupDeviceOutputArgs, opts ...InvokeOption) LookupDeviceResultOutput> Note: This function is named LookupDevice in the Go SDK.
public static class GetDevice
{
public static Task<GetDeviceResult> InvokeAsync(GetDeviceArgs args, InvokeOptions? opts = null)
public static Output<GetDeviceResult> Invoke(GetDeviceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
public static Output<GetDeviceResult> getDevice(GetDeviceArgs args, InvokeOptions options)
fn::invoke:
function: aws:networkmanager/getDevice:getDevice
arguments:
# arguments dictionaryThe following arguments are supported:
- Device
Id string - ID of the device.
- Global
Network stringId - ID of the global network.
- Dictionary<string, string>
- Key-value tags for the device.
- Device
Id string - ID of the device.
- Global
Network stringId - ID of the global network.
- map[string]string
- Key-value tags for the device.
- device
Id String - ID of the device.
- global
Network StringId - ID of the global network.
- Map<String,String>
- Key-value tags for the device.
- device
Id string - ID of the device.
- global
Network stringId - ID of the global network.
- {[key: string]: string}
- Key-value tags for the device.
- device_
id str - ID of the device.
- global_
network_ strid - ID of the global network.
- Mapping[str, str]
- Key-value tags for the device.
- device
Id String - ID of the device.
- global
Network StringId - ID of the global network.
- Map<String>
- Key-value tags for the device.
getDevice Result
The following output properties are available:
- Arn string
- ARN of the device.
- Aws
Locations List<GetDevice Aws Location> - AWS location of the device. Documented below.
- Description string
- Description of the device.
- Device
Id string - Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Locations
List<Get
Device Location> - Location of the device. Documented below.
- Model string
- Model of device.
- Serial
Number string - Serial number of the device.
- Site
Id string - ID of the site.
- Dictionary<string, string>
- Key-value tags for the device.
- Type string
- Type of device.
- Vendor string
- Vendor of the device.
- Arn string
- ARN of the device.
- Aws
Locations []GetDevice Aws Location - AWS location of the device. Documented below.
- Description string
- Description of the device.
- Device
Id string - Global
Network stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Locations
[]Get
Device Location - Location of the device. Documented below.
- Model string
- Model of device.
- Serial
Number string - Serial number of the device.
- Site
Id string - ID of the site.
- map[string]string
- Key-value tags for the device.
- Type string
- Type of device.
- Vendor string
- Vendor of the device.
- arn String
- ARN of the device.
- aws
Locations List<GetDevice Aws Location> - AWS location of the device. Documented below.
- description String
- Description of the device.
- device
Id String - global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- locations
List<Get
Device Location> - Location of the device. Documented below.
- model String
- Model of device.
- serial
Number String - Serial number of the device.
- site
Id String - ID of the site.
- Map<String,String>
- Key-value tags for the device.
- type String
- Type of device.
- vendor String
- Vendor of the device.
- arn string
- ARN of the device.
- aws
Locations GetDevice Aws Location[] - AWS location of the device. Documented below.
- description string
- Description of the device.
- device
Id string - global
Network stringId - id string
- The provider-assigned unique ID for this managed resource.
- locations
Get
Device Location[] - Location of the device. Documented below.
- model string
- Model of device.
- serial
Number string - Serial number of the device.
- site
Id string - ID of the site.
- {[key: string]: string}
- Key-value tags for the device.
- type string
- Type of device.
- vendor string
- Vendor of the device.
- arn str
- ARN of the device.
- aws_
locations Sequence[GetDevice Aws Location] - AWS location of the device. Documented below.
- description str
- Description of the device.
- device_
id str - global_
network_ strid - id str
- The provider-assigned unique ID for this managed resource.
- locations
Sequence[Get
Device Location] - Location of the device. Documented below.
- model str
- Model of device.
- serial_
number str - Serial number of the device.
- site_
id str - ID of the site.
- Mapping[str, str]
- Key-value tags for the device.
- type str
- Type of device.
- vendor str
- Vendor of the device.
- arn String
- ARN of the device.
- aws
Locations List<Property Map> - AWS location of the device. Documented below.
- description String
- Description of the device.
- device
Id String - global
Network StringId - id String
- The provider-assigned unique ID for this managed resource.
- locations List<Property Map>
- Location of the device. Documented below.
- model String
- Model of device.
- serial
Number String - Serial number of the device.
- site
Id String - ID of the site.
- Map<String>
- Key-value tags for the device.
- type String
- Type of device.
- vendor String
- Vendor of the device.
Supporting Types
GetDeviceAwsLocation
- subnet_
arn str - ARN of the subnet that the device is located in.
- zone str
- Zone that the device is located in.
GetDeviceLocation
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
