NetworkDevice

class NetworkDevice : KotlinCustomResource

The NetworkDevice resource definition. Uses Azure REST API version 2023-02-01-preview. In version 1.x of the Azure Native provider, it used API version 2023-02-01-preview. Other available API versions: 2023-06-15.

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 = "null",
HostName = "networkDeviceName",
Location = "eastus",
NetworkDeviceName = "networkDeviceName",
NetworkDeviceRole = AzureNative.ManagedNetworkFabric.NetworkDeviceRoleTypes.CE,
NetworkDeviceSku = "DefaultSku",
ResourceGroupName = "resourceGroupName",
SerialNumber = "Arista;DCS-7280PR3-24;12.05;JPE21330382",
Tags =
{
{ "keyID", "keyValue" },
},
});
});
package main
import (
managednetworkfabric "github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
"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("null"),
HostName: pulumi.String("networkDeviceName"),
Location: pulumi.String("eastus"),
NetworkDeviceName: pulumi.String("networkDeviceName"),
NetworkDeviceRole: pulumi.String(managednetworkfabric.NetworkDeviceRoleTypesCE),
NetworkDeviceSku: pulumi.String("DefaultSku"),
ResourceGroupName: pulumi.String("resourceGroupName"),
SerialNumber: pulumi.String("Arista;DCS-7280PR3-24;12.05;JPE21330382"),
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("null")
.hostName("networkDeviceName")
.location("eastus")
.networkDeviceName("networkDeviceName")
.networkDeviceRole("CE")
.networkDeviceSku("DefaultSku")
.resourceGroupName("resourceGroupName")
.serialNumber("Arista;DCS-7280PR3-24;12.05;JPE21330382")
.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 networkDeviceName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}

Properties

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

Switch configuration description.

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

The host Name of the device.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

networkDeviceRole is the device role: Example: CE | ToR.

Link copied to clipboard

Network Device SKU name.

Link copied to clipboard
val networkRackId: Output<String>

Reference to network rack resource id.

Link copied to clipboard

Gets the provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serialNumber: Output<String>

serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

Current version of the device as defined in SKU.