DiscoveredAssetArgs

data class DiscoveredAssetArgs(val assetEndpointProfileRef: Output<String>? = null, val datasets: Output<List<DiscoveredDatasetArgs>>? = null, val defaultDatasetsConfiguration: Output<String>? = null, val defaultEventsConfiguration: Output<String>? = null, val defaultTopic: Output<TopicArgs>? = null, val discoveredAssetName: Output<String>? = null, val discoveryId: Output<String>? = null, val documentationUri: Output<String>? = null, val events: Output<List<DiscoveredEventArgs>>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val hardwareRevision: Output<String>? = null, val location: Output<String>? = null, val manufacturer: Output<String>? = null, val manufacturerUri: Output<String>? = null, val model: Output<String>? = null, val productCode: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serialNumber: Output<String>? = null, val softwareRevision: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val version: Output<Double>? = null) : ConvertibleToJava<DiscoveredAssetArgs>

Discovered Asset definition. Uses Azure REST API version 2024-09-01-preview.

Example Usage

Create_DiscoveredAsset

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var discoveredAsset = new AzureNative.DeviceRegistry.DiscoveredAsset("discoveredAsset", new()
{
AssetEndpointProfileRef = "myAssetEndpointProfile",
Datasets = new[]
{
new AzureNative.DeviceRegistry.Inputs.DiscoveredDatasetArgs
{
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DiscoveredDataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
Name = "dataPoint1",
},
new AzureNative.DeviceRegistry.Inputs.DiscoveredDataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
Name = "dataPoint2",
},
},
DatasetConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
Name = "dataset1",
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/dataset1",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
},
},
DefaultDatasetsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
DefaultEventsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
DefaultTopic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/defaultTopic",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
DiscoveredAssetName = "my-discoveredasset",
DiscoveryId = "11111111-1111-1111-1111-111111111111",
DocumentationUri = "https://www.example.com/manual",
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.DiscoveredEventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
Name = "event1",
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/event1",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
},
new AzureNative.DeviceRegistry.Inputs.DiscoveredEventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
Name = "event2",
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
HardwareRevision = "1.0",
Location = "West Europe",
Manufacturer = "Contoso",
ManufacturerUri = "https://www.contoso.com/manufacturerUri",
Model = "ContosoModel",
ProductCode = "SA34VDG",
ResourceGroupName = "myResourceGroup",
SerialNumber = "64-103816-519918-8",
SoftwareRevision = "2.0",
Tags =
{
{ "site", "building-1" },
},
Version = 73766,
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewDiscoveredAsset(ctx, "discoveredAsset", &deviceregistry.DiscoveredAssetArgs{
AssetEndpointProfileRef: pulumi.String("myAssetEndpointProfile"),
Datasets: deviceregistry.DiscoveredDatasetArray{
&deviceregistry.DiscoveredDatasetArgs{
DataPoints: deviceregistry.DiscoveredDataPointArray{
&deviceregistry.DiscoveredDataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
Name: pulumi.String("dataPoint1"),
},
&deviceregistry.DiscoveredDataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
Name: pulumi.String("dataPoint2"),
},
},
DatasetConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
Name: pulumi.String("dataset1"),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/dataset1"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
},
},
DefaultDatasetsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
DefaultEventsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
DefaultTopic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/defaultTopic"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
DiscoveredAssetName: pulumi.String("my-discoveredasset"),
DiscoveryId: pulumi.String("11111111-1111-1111-1111-111111111111"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Events: deviceregistry.DiscoveredEventArray{
&deviceregistry.DiscoveredEventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
Name: pulumi.String("event1"),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/event1"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
},
&deviceregistry.DiscoveredEventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
Name: pulumi.String("event2"),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
HardwareRevision: pulumi.String("1.0"),
Location: pulumi.String("West Europe"),
Manufacturer: pulumi.String("Contoso"),
ManufacturerUri: pulumi.String("https://www.contoso.com/manufacturerUri"),
Model: pulumi.String("ContosoModel"),
ProductCode: pulumi.String("SA34VDG"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SerialNumber: pulumi.String("64-103816-519918-8"),
SoftwareRevision: pulumi.String("2.0"),
Tags: pulumi.StringMap{
"site": pulumi.String("building-1"),
},
Version: pulumi.Float64(73766),
})
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.deviceregistry.DiscoveredAsset;
import com.pulumi.azurenative.deviceregistry.DiscoveredAssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DiscoveredDatasetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.TopicArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DiscoveredEventArgs;
import com.pulumi.azurenative.deviceregistry.inputs.ExtendedLocationArgs;
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 discoveredAsset = new DiscoveredAsset("discoveredAsset", DiscoveredAssetArgs.builder()
.assetEndpointProfileRef("myAssetEndpointProfile")
.datasets(DiscoveredDatasetArgs.builder()
.dataPoints(
DiscoveredDataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.name("dataPoint1")
.build(),
DiscoveredDataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.name("dataPoint2")
.build())
.datasetConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.name("dataset1")
.topic(TopicArgs.builder()
.path("/path/dataset1")
.retain("Keep")
.build())
.build())
.defaultDatasetsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.defaultEventsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.defaultTopic(TopicArgs.builder()
.path("/path/defaultTopic")
.retain("Keep")
.build())
.discoveredAssetName("my-discoveredasset")
.discoveryId("11111111-1111-1111-1111-111111111111")
.documentationUri("https://www.example.com/manual")
.events(
DiscoveredEventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.name("event1")
.topic(TopicArgs.builder()
.path("/path/event1")
.retain("Keep")
.build())
.build(),
DiscoveredEventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.name("event2")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.hardwareRevision("1.0")
.location("West Europe")
.manufacturer("Contoso")
.manufacturerUri("https://www.contoso.com/manufacturerUri")
.model("ContosoModel")
.productCode("SA34VDG")
.resourceGroupName("myResourceGroup")
.serialNumber("64-103816-519918-8")
.softwareRevision("2.0")
.tags(Map.of("site", "building-1"))
.version(73766)
.build());
}
}

Import

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

$ pulumi import azure-native:deviceregistry:DiscoveredAsset my-discoveredasset /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/discoveredAssets/{discoveredAssetName}

Constructors

Link copied to clipboard
constructor(assetEndpointProfileRef: Output<String>? = null, datasets: Output<List<DiscoveredDatasetArgs>>? = null, defaultDatasetsConfiguration: Output<String>? = null, defaultEventsConfiguration: Output<String>? = null, defaultTopic: Output<TopicArgs>? = null, discoveredAssetName: Output<String>? = null, discoveryId: Output<String>? = null, documentationUri: Output<String>? = null, events: Output<List<DiscoveredEventArgs>>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, hardwareRevision: Output<String>? = null, location: Output<String>? = null, manufacturer: Output<String>? = null, manufacturerUri: Output<String>? = null, model: Output<String>? = null, productCode: Output<String>? = null, resourceGroupName: Output<String>? = null, serialNumber: Output<String>? = null, softwareRevision: Output<String>? = null, tags: Output<Map<String, String>>? = null, version: Output<Double>? = null)

Properties

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

A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.

Link copied to clipboard
val datasets: Output<List<DiscoveredDatasetArgs>>? = null

Array of datasets that are part of the asset. Each dataset spec describes the data points that make up the set.

Link copied to clipboard

Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.

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

Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.

Link copied to clipboard
val defaultTopic: Output<TopicArgs>? = null

Object that describes the default topic information for the asset.

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

Discovered Asset name parameter.

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

Identifier used to detect changes in the asset.

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

Reference to the documentation.

Link copied to clipboard
val events: Output<List<DiscoveredEventArgs>>? = null

Array of events that are part of the asset. Each event can have per-event configuration.

Link copied to clipboard

The extended location.

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

Revision number of the hardware.

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

The geo-location where the resource lives

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

Asset manufacturer name.

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

Asset manufacturer URI.

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

Asset model name.

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

Asset product code.

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

Asset serial number.

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

Revision number of the software.

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

Resource tags.

Link copied to clipboard
val version: Output<Double>? = null

An integer that is incremented each time the resource is modified.

Functions

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