NetworkDeviceArgs

data class NetworkDeviceArgs(val annotation: Output<String>? = null, val hostName: Output<String>? = null, val location: Output<String>? = null, val networkDeviceName: Output<String>? = null, val networkDeviceSku: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serialNumber: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkDeviceArgs>

The Network Device resource definition. Uses Azure REST API version 2023-06-15. In version 2.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-02-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native managednetworkfabric [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

NetworkDevices_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var networkDevice = new AzureNative.ManagedNetworkFabric.NetworkDevice("networkDevice", new()
{
Annotation = "annotation",
HostName = "NFA-Device",
Location = "eastuseuap",
NetworkDeviceName = "example-device",
NetworkDeviceSku = "DeviceSku",
ResourceGroupName = "example-rg",
SerialNumber = "Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX",
Tags =
{
{ "keyID", "KeyValue" },
},
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := managednetworkfabric.NewNetworkDevice(ctx, "networkDevice", &managednetworkfabric.NetworkDeviceArgs{
Annotation: pulumi.String("annotation"),
HostName: pulumi.String("NFA-Device"),
Location: pulumi.String("eastuseuap"),
NetworkDeviceName: pulumi.String("example-device"),
NetworkDeviceSku: pulumi.String("DeviceSku"),
ResourceGroupName: pulumi.String("example-rg"),
SerialNumber: pulumi.String("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX"),
Tags: pulumi.StringMap{
"keyID": pulumi.String("KeyValue"),
},
})
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.azurenative.managednetworkfabric.NetworkDevice;
import com.pulumi.azurenative.managednetworkfabric.NetworkDeviceArgs;
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) {
var networkDevice = new NetworkDevice("networkDevice", NetworkDeviceArgs.builder()
.annotation("annotation")
.hostName("NFA-Device")
.location("eastuseuap")
.networkDeviceName("example-device")
.networkDeviceSku("DeviceSku")
.resourceGroupName("example-rg")
.serialNumber("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX")
.tags(Map.of("keyID", "KeyValue"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:managednetworkfabric:NetworkDevice example-device /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}

Constructors

Link copied to clipboard
constructor(annotation: Output<String>? = null, hostName: Output<String>? = null, location: Output<String>? = null, networkDeviceName: Output<String>? = null, networkDeviceSku: Output<String>? = null, resourceGroupName: Output<String>? = null, serialNumber: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val annotation: Output<String>? = null

Switch configuration description.

Link copied to clipboard
val hostName: Output<String>? = null

The host name of the device.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val networkDeviceName: Output<String>? = null

Name of the Network Device.

Link copied to clipboard
val networkDeviceSku: Output<String>? = null

Network Device SKU name.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val serialNumber: Output<String>? = null

Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): NetworkDeviceArgs