getDevice

Get information about a Databox Edge Device.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.databoxedge.getDevice({
name: "example-device",
resourceGroupName: "example-rg",
});
import pulumi
import pulumi_azure as azure
example = azure.databoxedge.get_device(name="example-device",
resource_group_name="example-rg")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.DataboxEdge.GetDevice.Invoke(new()
{
Name = "example-device",
ResourceGroupName = "example-rg",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/databoxedge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.LookupDevice(ctx, &databoxedge.LookupDeviceArgs{
Name: "example-device",
ResourceGroupName: "example-rg",
}, 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.azure.databoxedge.DataboxedgeFunctions;
import com.pulumi.azure.databoxedge.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 = DataboxedgeFunctions.getDevice(GetDeviceArgs.builder()
.name("example-device")
.resourceGroupName("example-rg")
.build());
}
}
variables:
example:
fn::invoke:
function: azure:databoxedge:getDevice
arguments:
name: example-device
resourceGroupName: example-rg

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.DataBoxEdge: 2022-03-01

Return

A collection of values returned by getDevice.

Parameters

argument

A collection of arguments for invoking getDevice.


suspend fun getDevice(name: String, resourceGroupName: String): GetDeviceResult

Return

A collection of values returned by getDevice.

Parameters

name

The name which should be used for this Databox Edge Device. Changing this forces a new Databox Edge Device to be created.

resourceGroupName

The name of the Resource Group where the Databox Edge Device should exist. Changing this forces a new Databox Edge Device to be created.

See also


suspend fun getDevice(argument: suspend GetDevicePlainArgsBuilder.() -> Unit): GetDeviceResult

Return

A collection of values returned by getDevice.

Parameters

argument

Builder for com.pulumi.azure.databoxedge.kotlin.inputs.GetDevicePlainArgs.

See also