azure-native.deviceregistry.Asset
Explore with Pulumi AI
Asset definition.
Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2023-11-01-preview.
Other available API versions: 2023-11-01-preview, 2024-09-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native deviceregistry [ApiVersion]
. See the version guide for details.
Example Usage
Create_Asset_With_DiscoveredAssetRefs
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileRef = "myAssetEndpointProfile",
AssetName = "my-asset",
Datasets = new[]
{
new AzureNative.DeviceRegistry.Inputs.DatasetArgs
{
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
Name = "dataPoint1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
Name = "dataPoint2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.None,
},
},
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,
},
Description = "This is a sample Asset",
DiscoveredAssetRefs = new[]
{
"discoveredAsset1",
"discoveredAsset2",
},
DisplayName = "AssetDisplayName",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
Name = "event1",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.None,
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/event1",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
Name = "event2",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.Log,
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
ExternalAssetId = "8ZBA6LRHU0A458969",
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" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileRef: pulumi.String("myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
Datasets: deviceregistry.DatasetArray{
&deviceregistry.DatasetArgs{
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
Name: pulumi.String("dataPoint1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
Name: pulumi.String("dataPoint2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeNone),
},
},
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),
},
Description: pulumi.String("This is a sample Asset"),
DiscoveredAssetRefs: pulumi.StringArray{
pulumi.String("discoveredAsset1"),
pulumi.String("discoveredAsset2"),
},
DisplayName: pulumi.String("AssetDisplayName"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
Name: pulumi.String("event1"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeNone),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/event1"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
},
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
Name: pulumi.String("event2"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeLog),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
ExternalAssetId: pulumi.String("8ZBA6LRHU0A458969"),
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"),
},
})
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.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DatasetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.TopicArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileRef("myAssetEndpointProfile")
.assetName("my-asset")
.datasets(DatasetArgs.builder()
.dataPoints(
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.name("dataPoint1")
.observabilityMode("Counter")
.build(),
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.name("dataPoint2")
.observabilityMode("None")
.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())
.description("This is a sample Asset")
.discoveredAssetRefs(
"discoveredAsset1",
"discoveredAsset2")
.displayName("AssetDisplayName")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.name("event1")
.observabilityMode("None")
.topic(TopicArgs.builder()
.path("/path/event1")
.retain("Keep")
.build())
.build(),
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.name("event2")
.observabilityMode("Log")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.externalAssetId("8ZBA6LRHU0A458969")
.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"))
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileRef: "myAssetEndpointProfile",
assetName: "my-asset",
datasets: [{
dataPoints: [
{
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
name: "dataPoint1",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.Counter,
},
{
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
name: "dataPoint2",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.None,
},
],
datasetConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
name: "dataset1",
topic: {
path: "/path/dataset1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
}],
defaultDatasetsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultTopic: {
path: "/path/defaultTopic",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
description: "This is a sample Asset",
discoveredAssetRefs: [
"discoveredAsset1",
"discoveredAsset2",
],
displayName: "AssetDisplayName",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
name: "event1",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.None,
topic: {
path: "/path/event1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
},
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
name: "event2",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.Log,
},
],
extendedLocation: {
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
type: "CustomLocation",
},
externalAssetId: "8ZBA6LRHU0A458969",
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",
},
});
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_ref="myAssetEndpointProfile",
asset_name="my-asset",
datasets=[{
"data_points": [
{
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"name": "dataPoint1",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.COUNTER,
},
{
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"name": "dataPoint2",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.NONE,
},
],
"dataset_configuration": "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
"name": "dataset1",
"topic": {
"path": "/path/dataset1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
}],
default_datasets_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_topic={
"path": "/path/defaultTopic",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
description="This is a sample Asset",
discovered_asset_refs=[
"discoveredAsset1",
"discoveredAsset2",
],
display_name="AssetDisplayName",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"name": "event1",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.NONE,
"topic": {
"path": "/path/event1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
},
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"name": "event2",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
external_asset_id="8ZBA6LRHU0A458969",
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileRef: myAssetEndpointProfile
assetName: my-asset
datasets:
- dataPoints:
- dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
name: dataPoint1
observabilityMode: Counter
- dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
name: dataPoint2
observabilityMode: None
datasetConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
name: dataset1
topic:
path: /path/dataset1
retain: Keep
defaultDatasetsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultTopic:
path: /path/defaultTopic
retain: Keep
description: This is a sample Asset
discoveredAssetRefs:
- discoveredAsset1
- discoveredAsset2
displayName: AssetDisplayName
documentationUri: https://www.example.com/manual
enabled: true
events:
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
name: event1
observabilityMode: None
topic:
path: /path/event1
retain: Keep
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
name: event2
observabilityMode: Log
extendedLocation:
name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1
type: CustomLocation
externalAssetId: 8ZBA6LRHU0A458969
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
Create_Asset_With_ExternalAssetId
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileRef = "myAssetEndpointProfile",
AssetName = "my-asset",
Datasets = new[]
{
new AzureNative.DeviceRegistry.Inputs.DatasetArgs
{
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
Name = "dataPoint1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
Name = "dataPoint2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.None,
},
},
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,
},
Description = "This is a sample Asset",
DisplayName = "AssetDisplayName",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
Name = "event1",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.None,
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/event1",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
Name = "event2",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.Log,
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
ExternalAssetId = "8ZBA6LRHU0A458969",
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" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileRef: pulumi.String("myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
Datasets: deviceregistry.DatasetArray{
&deviceregistry.DatasetArgs{
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
Name: pulumi.String("dataPoint1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
Name: pulumi.String("dataPoint2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeNone),
},
},
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),
},
Description: pulumi.String("This is a sample Asset"),
DisplayName: pulumi.String("AssetDisplayName"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
Name: pulumi.String("event1"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeNone),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/event1"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
},
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
Name: pulumi.String("event2"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeLog),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
ExternalAssetId: pulumi.String("8ZBA6LRHU0A458969"),
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"),
},
})
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.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DatasetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.TopicArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileRef("myAssetEndpointProfile")
.assetName("my-asset")
.datasets(DatasetArgs.builder()
.dataPoints(
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.name("dataPoint1")
.observabilityMode("Counter")
.build(),
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.name("dataPoint2")
.observabilityMode("None")
.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())
.description("This is a sample Asset")
.displayName("AssetDisplayName")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.name("event1")
.observabilityMode("None")
.topic(TopicArgs.builder()
.path("/path/event1")
.retain("Keep")
.build())
.build(),
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.name("event2")
.observabilityMode("Log")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.externalAssetId("8ZBA6LRHU0A458969")
.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"))
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileRef: "myAssetEndpointProfile",
assetName: "my-asset",
datasets: [{
dataPoints: [
{
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
name: "dataPoint1",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.Counter,
},
{
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
name: "dataPoint2",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.None,
},
],
datasetConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
name: "dataset1",
topic: {
path: "/path/dataset1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
}],
defaultDatasetsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultTopic: {
path: "/path/defaultTopic",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
description: "This is a sample Asset",
displayName: "AssetDisplayName",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
name: "event1",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.None,
topic: {
path: "/path/event1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
},
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
name: "event2",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.Log,
},
],
extendedLocation: {
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
type: "CustomLocation",
},
externalAssetId: "8ZBA6LRHU0A458969",
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",
},
});
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_ref="myAssetEndpointProfile",
asset_name="my-asset",
datasets=[{
"data_points": [
{
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"name": "dataPoint1",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.COUNTER,
},
{
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"name": "dataPoint2",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.NONE,
},
],
"dataset_configuration": "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
"name": "dataset1",
"topic": {
"path": "/path/dataset1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
}],
default_datasets_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_topic={
"path": "/path/defaultTopic",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
description="This is a sample Asset",
display_name="AssetDisplayName",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"name": "event1",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.NONE,
"topic": {
"path": "/path/event1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
},
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"name": "event2",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
external_asset_id="8ZBA6LRHU0A458969",
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileRef: myAssetEndpointProfile
assetName: my-asset
datasets:
- dataPoints:
- dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
name: dataPoint1
observabilityMode: Counter
- dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
name: dataPoint2
observabilityMode: None
datasetConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
name: dataset1
topic:
path: /path/dataset1
retain: Keep
defaultDatasetsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultTopic:
path: /path/defaultTopic
retain: Keep
description: This is a sample Asset
displayName: AssetDisplayName
documentationUri: https://www.example.com/manual
enabled: true
events:
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
name: event1
observabilityMode: None
topic:
path: /path/event1
retain: Keep
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
name: event2
observabilityMode: Log
extendedLocation:
name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1
type: CustomLocation
externalAssetId: 8ZBA6LRHU0A458969
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
Create_Asset_Without_DisplayName
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileRef = "myAssetEndpointProfile",
AssetName = "my-asset",
Datasets = new[]
{
new AzureNative.DeviceRegistry.Inputs.DatasetArgs
{
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
Name = "dataPoint1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
Name = "dataPoint2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.None,
},
},
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,
},
Description = "This is a sample Asset",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
Name = "event1",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.None,
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/event1",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
Name = "event2",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.Log,
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
ExternalAssetId = "8ZBA6LRHU0A458969",
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" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileRef: pulumi.String("myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
Datasets: deviceregistry.DatasetArray{
&deviceregistry.DatasetArgs{
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
Name: pulumi.String("dataPoint1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
Name: pulumi.String("dataPoint2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeNone),
},
},
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),
},
Description: pulumi.String("This is a sample Asset"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
Name: pulumi.String("event1"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeNone),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/event1"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
},
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
Name: pulumi.String("event2"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeLog),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
ExternalAssetId: pulumi.String("8ZBA6LRHU0A458969"),
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"),
},
})
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.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DatasetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.TopicArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileRef("myAssetEndpointProfile")
.assetName("my-asset")
.datasets(DatasetArgs.builder()
.dataPoints(
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.name("dataPoint1")
.observabilityMode("Counter")
.build(),
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.name("dataPoint2")
.observabilityMode("None")
.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())
.description("This is a sample Asset")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.name("event1")
.observabilityMode("None")
.topic(TopicArgs.builder()
.path("/path/event1")
.retain("Keep")
.build())
.build(),
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.name("event2")
.observabilityMode("Log")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.externalAssetId("8ZBA6LRHU0A458969")
.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"))
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileRef: "myAssetEndpointProfile",
assetName: "my-asset",
datasets: [{
dataPoints: [
{
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
name: "dataPoint1",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.Counter,
},
{
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
name: "dataPoint2",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.None,
},
],
datasetConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
name: "dataset1",
topic: {
path: "/path/dataset1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
}],
defaultDatasetsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultTopic: {
path: "/path/defaultTopic",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
description: "This is a sample Asset",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
name: "event1",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.None,
topic: {
path: "/path/event1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
},
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
name: "event2",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.Log,
},
],
extendedLocation: {
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
type: "CustomLocation",
},
externalAssetId: "8ZBA6LRHU0A458969",
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",
},
});
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_ref="myAssetEndpointProfile",
asset_name="my-asset",
datasets=[{
"data_points": [
{
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"name": "dataPoint1",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.COUNTER,
},
{
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"name": "dataPoint2",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.NONE,
},
],
"dataset_configuration": "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
"name": "dataset1",
"topic": {
"path": "/path/dataset1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
}],
default_datasets_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_topic={
"path": "/path/defaultTopic",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
description="This is a sample Asset",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"name": "event1",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.NONE,
"topic": {
"path": "/path/event1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
},
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"name": "event2",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
external_asset_id="8ZBA6LRHU0A458969",
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileRef: myAssetEndpointProfile
assetName: my-asset
datasets:
- dataPoints:
- dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
name: dataPoint1
observabilityMode: Counter
- dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
name: dataPoint2
observabilityMode: None
datasetConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
name: dataset1
topic:
path: /path/dataset1
retain: Keep
defaultDatasetsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultTopic:
path: /path/defaultTopic
retain: Keep
description: This is a sample Asset
documentationUri: https://www.example.com/manual
enabled: true
events:
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
name: event1
observabilityMode: None
topic:
path: /path/event1
retain: Keep
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
name: event2
observabilityMode: Log
extendedLocation:
name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1
type: CustomLocation
externalAssetId: 8ZBA6LRHU0A458969
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
Create_Asset_Without_ExternalAssetId
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileRef = "myAssetEndpointProfile",
AssetName = "my-asset",
Datasets = new[]
{
new AzureNative.DeviceRegistry.Inputs.DatasetArgs
{
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
Name = "dataPoint1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
Name = "dataPoint2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointObservabilityMode.None,
},
},
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,
},
Description = "This is a sample Asset",
DisplayName = "AssetDisplayName",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
Name = "event1",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.None,
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "/path/event1",
Retain = AzureNative.DeviceRegistry.TopicRetainType.Keep,
},
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
Name = "event2",
ObservabilityMode = AzureNative.DeviceRegistry.EventObservabilityMode.Log,
},
},
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" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileRef: pulumi.String("myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
Datasets: deviceregistry.DatasetArray{
&deviceregistry.DatasetArgs{
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
Name: pulumi.String("dataPoint1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
Name: pulumi.String("dataPoint2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointObservabilityModeNone),
},
},
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),
},
Description: pulumi.String("This is a sample Asset"),
DisplayName: pulumi.String("AssetDisplayName"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
Name: pulumi.String("event1"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeNone),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("/path/event1"),
Retain: pulumi.String(deviceregistry.TopicRetainTypeKeep),
},
},
&deviceregistry.EventArgs{
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
Name: pulumi.String("event2"),
ObservabilityMode: pulumi.String(deviceregistry.EventObservabilityModeLog),
},
},
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"),
},
})
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.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DatasetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.TopicArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileRef("myAssetEndpointProfile")
.assetName("my-asset")
.datasets(DatasetArgs.builder()
.dataPoints(
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.name("dataPoint1")
.observabilityMode("Counter")
.build(),
DataPointArgs.builder()
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.name("dataPoint2")
.observabilityMode("None")
.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())
.description("This is a sample Asset")
.displayName("AssetDisplayName")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.name("event1")
.observabilityMode("None")
.topic(TopicArgs.builder()
.path("/path/event1")
.retain("Keep")
.build())
.build(),
EventArgs.builder()
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.name("event2")
.observabilityMode("Log")
.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"))
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileRef: "myAssetEndpointProfile",
assetName: "my-asset",
datasets: [{
dataPoints: [
{
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
name: "dataPoint1",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.Counter,
},
{
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
name: "dataPoint2",
observabilityMode: azure_native.deviceregistry.DataPointObservabilityMode.None,
},
],
datasetConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
name: "dataset1",
topic: {
path: "/path/dataset1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
}],
defaultDatasetsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultTopic: {
path: "/path/defaultTopic",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
description: "This is a sample Asset",
displayName: "AssetDisplayName",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
name: "event1",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.None,
topic: {
path: "/path/event1",
retain: azure_native.deviceregistry.TopicRetainType.Keep,
},
},
{
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
name: "event2",
observabilityMode: azure_native.deviceregistry.EventObservabilityMode.Log,
},
],
extendedLocation: {
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",
},
});
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_ref="myAssetEndpointProfile",
asset_name="my-asset",
datasets=[{
"data_points": [
{
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"name": "dataPoint1",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.COUNTER,
},
{
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"name": "dataPoint2",
"observability_mode": azure_native.deviceregistry.DataPointObservabilityMode.NONE,
},
],
"dataset_configuration": "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
"name": "dataset1",
"topic": {
"path": "/path/dataset1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
}],
default_datasets_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_topic={
"path": "/path/defaultTopic",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
description="This is a sample Asset",
display_name="AssetDisplayName",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"name": "event1",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.NONE,
"topic": {
"path": "/path/event1",
"retain": azure_native.deviceregistry.TopicRetainType.KEEP,
},
},
{
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"name": "event2",
"observability_mode": azure_native.deviceregistry.EventObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileRef: myAssetEndpointProfile
assetName: my-asset
datasets:
- dataPoints:
- dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
name: dataPoint1
observabilityMode: Counter
- dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
name: dataPoint2
observabilityMode: None
datasetConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
name: dataset1
topic:
path: /path/dataset1
retain: Keep
defaultDatasetsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultTopic:
path: /path/defaultTopic
retain: Keep
description: This is a sample Asset
displayName: AssetDisplayName
documentationUri: https://www.example.com/manual
enabled: true
events:
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
name: event1
observabilityMode: None
topic:
path: /path/event1
retain: Keep
- eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
name: event2
observabilityMode: Log
extendedLocation:
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
Create Asset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Asset(name: string, args: AssetArgs, opts?: CustomResourceOptions);
@overload
def Asset(resource_name: str,
args: AssetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Asset(resource_name: str,
opts: Optional[ResourceOptions] = None,
asset_endpoint_profile_ref: Optional[str] = None,
resource_group_name: Optional[str] = None,
extended_location: Optional[ExtendedLocationArgs] = None,
events: Optional[Sequence[EventArgs]] = None,
external_asset_id: Optional[str] = None,
default_events_configuration: Optional[str] = None,
default_topic: Optional[TopicArgs] = None,
description: Optional[str] = None,
discovered_asset_refs: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
documentation_uri: Optional[str] = None,
enabled: Optional[bool] = None,
datasets: Optional[Sequence[DatasetArgs]] = None,
attributes: Optional[Any] = None,
default_datasets_configuration: Optional[str] = None,
hardware_revision: Optional[str] = None,
location: Optional[str] = None,
manufacturer: Optional[str] = None,
manufacturer_uri: Optional[str] = None,
model: Optional[str] = None,
product_code: Optional[str] = None,
asset_name: Optional[str] = None,
serial_number: Optional[str] = None,
software_revision: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAsset(ctx *Context, name string, args AssetArgs, opts ...ResourceOption) (*Asset, error)
public Asset(string name, AssetArgs args, CustomResourceOptions? opts = null)
type: azure-native:deviceregistry:Asset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var assetResource = new AzureNative.DeviceRegistry.Asset("assetResource", new()
{
AssetEndpointProfileRef = "string",
ResourceGroupName = "string",
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "string",
Type = "string",
},
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventNotifier = "string",
Name = "string",
EventConfiguration = "string",
ObservabilityMode = "string",
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "string",
Retain = "string",
},
},
},
ExternalAssetId = "string",
DefaultEventsConfiguration = "string",
DefaultTopic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "string",
Retain = "string",
},
Description = "string",
DiscoveredAssetRefs = new[]
{
"string",
},
DisplayName = "string",
DocumentationUri = "string",
Enabled = false,
Datasets = new[]
{
new AzureNative.DeviceRegistry.Inputs.DatasetArgs
{
Name = "string",
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataSource = "string",
Name = "string",
DataPointConfiguration = "string",
ObservabilityMode = "string",
},
},
DatasetConfiguration = "string",
Topic = new AzureNative.DeviceRegistry.Inputs.TopicArgs
{
Path = "string",
Retain = "string",
},
},
},
Attributes = "any",
DefaultDatasetsConfiguration = "string",
HardwareRevision = "string",
Location = "string",
Manufacturer = "string",
ManufacturerUri = "string",
Model = "string",
ProductCode = "string",
AssetName = "string",
SerialNumber = "string",
SoftwareRevision = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := deviceregistry.NewAsset(ctx, "assetResource", &deviceregistry.AssetArgs{
AssetEndpointProfileRef: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
EventNotifier: pulumi.String("string"),
Name: pulumi.String("string"),
EventConfiguration: pulumi.String("string"),
ObservabilityMode: pulumi.String("string"),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("string"),
Retain: pulumi.String("string"),
},
},
},
ExternalAssetId: pulumi.String("string"),
DefaultEventsConfiguration: pulumi.String("string"),
DefaultTopic: &deviceregistry.TopicArgs{
Path: pulumi.String("string"),
Retain: pulumi.String("string"),
},
Description: pulumi.String("string"),
DiscoveredAssetRefs: pulumi.StringArray{
pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
DocumentationUri: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Datasets: deviceregistry.DatasetArray{
&deviceregistry.DatasetArgs{
Name: pulumi.String("string"),
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
DataSource: pulumi.String("string"),
Name: pulumi.String("string"),
DataPointConfiguration: pulumi.String("string"),
ObservabilityMode: pulumi.String("string"),
},
},
DatasetConfiguration: pulumi.String("string"),
Topic: &deviceregistry.TopicArgs{
Path: pulumi.String("string"),
Retain: pulumi.String("string"),
},
},
},
Attributes: pulumi.Any("any"),
DefaultDatasetsConfiguration: pulumi.String("string"),
HardwareRevision: pulumi.String("string"),
Location: pulumi.String("string"),
Manufacturer: pulumi.String("string"),
ManufacturerUri: pulumi.String("string"),
Model: pulumi.String("string"),
ProductCode: pulumi.String("string"),
AssetName: pulumi.String("string"),
SerialNumber: pulumi.String("string"),
SoftwareRevision: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var assetResource = new com.pulumi.azurenative.deviceregistry.Asset("assetResource", com.pulumi.azurenative.deviceregistry.AssetArgs.builder()
.assetEndpointProfileRef("string")
.resourceGroupName("string")
.extendedLocation(ExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.events(EventArgs.builder()
.eventNotifier("string")
.name("string")
.eventConfiguration("string")
.observabilityMode("string")
.topic(TopicArgs.builder()
.path("string")
.retain("string")
.build())
.build())
.externalAssetId("string")
.defaultEventsConfiguration("string")
.defaultTopic(TopicArgs.builder()
.path("string")
.retain("string")
.build())
.description("string")
.discoveredAssetRefs("string")
.displayName("string")
.documentationUri("string")
.enabled(false)
.datasets(DatasetArgs.builder()
.name("string")
.dataPoints(DataPointArgs.builder()
.dataSource("string")
.name("string")
.dataPointConfiguration("string")
.observabilityMode("string")
.build())
.datasetConfiguration("string")
.topic(TopicArgs.builder()
.path("string")
.retain("string")
.build())
.build())
.attributes("any")
.defaultDatasetsConfiguration("string")
.hardwareRevision("string")
.location("string")
.manufacturer("string")
.manufacturerUri("string")
.model("string")
.productCode("string")
.assetName("string")
.serialNumber("string")
.softwareRevision("string")
.tags(Map.of("string", "string"))
.build());
asset_resource = azure_native.deviceregistry.Asset("assetResource",
asset_endpoint_profile_ref="string",
resource_group_name="string",
extended_location={
"name": "string",
"type": "string",
},
events=[{
"event_notifier": "string",
"name": "string",
"event_configuration": "string",
"observability_mode": "string",
"topic": {
"path": "string",
"retain": "string",
},
}],
external_asset_id="string",
default_events_configuration="string",
default_topic={
"path": "string",
"retain": "string",
},
description="string",
discovered_asset_refs=["string"],
display_name="string",
documentation_uri="string",
enabled=False,
datasets=[{
"name": "string",
"data_points": [{
"data_source": "string",
"name": "string",
"data_point_configuration": "string",
"observability_mode": "string",
}],
"dataset_configuration": "string",
"topic": {
"path": "string",
"retain": "string",
},
}],
attributes="any",
default_datasets_configuration="string",
hardware_revision="string",
location="string",
manufacturer="string",
manufacturer_uri="string",
model="string",
product_code="string",
asset_name="string",
serial_number="string",
software_revision="string",
tags={
"string": "string",
})
const assetResource = new azure_native.deviceregistry.Asset("assetResource", {
assetEndpointProfileRef: "string",
resourceGroupName: "string",
extendedLocation: {
name: "string",
type: "string",
},
events: [{
eventNotifier: "string",
name: "string",
eventConfiguration: "string",
observabilityMode: "string",
topic: {
path: "string",
retain: "string",
},
}],
externalAssetId: "string",
defaultEventsConfiguration: "string",
defaultTopic: {
path: "string",
retain: "string",
},
description: "string",
discoveredAssetRefs: ["string"],
displayName: "string",
documentationUri: "string",
enabled: false,
datasets: [{
name: "string",
dataPoints: [{
dataSource: "string",
name: "string",
dataPointConfiguration: "string",
observabilityMode: "string",
}],
datasetConfiguration: "string",
topic: {
path: "string",
retain: "string",
},
}],
attributes: "any",
defaultDatasetsConfiguration: "string",
hardwareRevision: "string",
location: "string",
manufacturer: "string",
manufacturerUri: "string",
model: "string",
productCode: "string",
assetName: "string",
serialNumber: "string",
softwareRevision: "string",
tags: {
string: "string",
},
});
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileRef: string
assetName: string
attributes: any
datasets:
- dataPoints:
- dataPointConfiguration: string
dataSource: string
name: string
observabilityMode: string
datasetConfiguration: string
name: string
topic:
path: string
retain: string
defaultDatasetsConfiguration: string
defaultEventsConfiguration: string
defaultTopic:
path: string
retain: string
description: string
discoveredAssetRefs:
- string
displayName: string
documentationUri: string
enabled: false
events:
- eventConfiguration: string
eventNotifier: string
name: string
observabilityMode: string
topic:
path: string
retain: string
extendedLocation:
name: string
type: string
externalAssetId: string
hardwareRevision: string
location: string
manufacturer: string
manufacturerUri: string
model: string
productCode: string
resourceGroupName: string
serialNumber: string
softwareRevision: string
tags:
string: string
Asset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Asset resource accepts the following input properties:
- Asset
Endpoint stringProfile Ref - 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.
- Extended
Location Pulumi.Azure Native. Device Registry. Inputs. Extended Location - The extended location.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Asset
Name string - Asset name parameter.
- Attributes object
- A set of key-value pairs that contain custom attributes set by the customer.
- Datasets
List<Pulumi.
Azure Native. Device Registry. Inputs. Dataset> - Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.
- Default
Datasets stringConfiguration - Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
- Default
Events stringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- Default
Topic Pulumi.Azure Native. Device Registry. Inputs. Topic - Object that describes the default topic information for the asset.
- Description string
- Human-readable description of the asset.
- Discovered
Asset List<string>Refs - Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.
- Display
Name string - Human-readable display name.
- Documentation
Uri string - Reference to the documentation.
- Enabled bool
- Enabled/Disabled status of the asset.
- Events
List<Pulumi.
Azure Native. Device Registry. Inputs. Event> - Array of events that are part of the asset. Each event can have per-event configuration.
- External
Asset stringId - Asset id provided by the customer.
- Hardware
Revision string - Revision number of the hardware.
- Location string
- The geo-location where the resource lives
- Manufacturer string
- Asset manufacturer name.
- Manufacturer
Uri string - Asset manufacturer URI.
- Model string
- Asset model name.
- Product
Code string - Asset product code.
- Serial
Number string - Asset serial number.
- Software
Revision string - Revision number of the software.
- Dictionary<string, string>
- Resource tags.
- Asset
Endpoint stringProfile Ref - 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.
- Extended
Location ExtendedLocation Args - The extended location.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Asset
Name string - Asset name parameter.
- Attributes interface{}
- A set of key-value pairs that contain custom attributes set by the customer.
- Datasets
[]Dataset
Args - Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.
- Default
Datasets stringConfiguration - Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
- Default
Events stringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- Default
Topic TopicArgs - Object that describes the default topic information for the asset.
- Description string
- Human-readable description of the asset.
- Discovered
Asset []stringRefs - Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.
- Display
Name string - Human-readable display name.
- Documentation
Uri string - Reference to the documentation.
- Enabled bool
- Enabled/Disabled status of the asset.
- Events
[]Event
Args - Array of events that are part of the asset. Each event can have per-event configuration.
- External
Asset stringId - Asset id provided by the customer.
- Hardware
Revision string - Revision number of the hardware.
- Location string
- The geo-location where the resource lives
- Manufacturer string
- Asset manufacturer name.
- Manufacturer
Uri string - Asset manufacturer URI.
- Model string
- Asset model name.
- Product
Code string - Asset product code.
- Serial
Number string - Asset serial number.
- Software
Revision string - Revision number of the software.
- map[string]string
- Resource tags.
- asset
Endpoint StringProfile Ref - 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.
- extended
Location ExtendedLocation - The extended location.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- asset
Name String - Asset name parameter.
- attributes Object
- A set of key-value pairs that contain custom attributes set by the customer.
- datasets List<Dataset>
- Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.
- default
Datasets StringConfiguration - Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
- default
Events StringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- default
Topic Topic - Object that describes the default topic information for the asset.
- description String
- Human-readable description of the asset.
- discovered
Asset List<String>Refs - Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.
- display
Name String - Human-readable display name.
- documentation
Uri String - Reference to the documentation.
- enabled Boolean
- Enabled/Disabled status of the asset.
- events List<Event>
- Array of events that are part of the asset. Each event can have per-event configuration.
- external
Asset StringId - Asset id provided by the customer.
- hardware
Revision String - Revision number of the hardware.
- location String
- The geo-location where the resource lives
- manufacturer String
- Asset manufacturer name.
- manufacturer
Uri String - Asset manufacturer URI.
- model String
- Asset model name.
- product
Code String - Asset product code.
- serial
Number String - Asset serial number.
- software
Revision String - Revision number of the software.
- Map<String,String>
- Resource tags.
- asset
Endpoint stringProfile Ref - 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.
- extended
Location ExtendedLocation - The extended location.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- asset
Name string - Asset name parameter.
- attributes any
- A set of key-value pairs that contain custom attributes set by the customer.
- datasets Dataset[]
- Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.
- default
Datasets stringConfiguration - Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
- default
Events stringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- default
Topic Topic - Object that describes the default topic information for the asset.
- description string
- Human-readable description of the asset.
- discovered
Asset string[]Refs - Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.
- display
Name string - Human-readable display name.
- documentation
Uri string - Reference to the documentation.
- enabled boolean
- Enabled/Disabled status of the asset.
- events Event[]
- Array of events that are part of the asset. Each event can have per-event configuration.
- external
Asset stringId - Asset id provided by the customer.
- hardware
Revision string - Revision number of the hardware.
- location string
- The geo-location where the resource lives
- manufacturer string
- Asset manufacturer name.
- manufacturer
Uri string - Asset manufacturer URI.
- model string
- Asset model name.
- product
Code string - Asset product code.
- serial
Number string - Asset serial number.
- software
Revision string - Revision number of the software.
- {[key: string]: string}
- Resource tags.
- asset_
endpoint_ strprofile_ ref - 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.
- extended_
location ExtendedLocation Args - The extended location.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- asset_
name str - Asset name parameter.
- attributes Any
- A set of key-value pairs that contain custom attributes set by the customer.
- datasets
Sequence[Dataset
Args] - Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.
- default_
datasets_ strconfiguration - Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
- default_
events_ strconfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- default_
topic TopicArgs - Object that describes the default topic information for the asset.
- description str
- Human-readable description of the asset.
- discovered_
asset_ Sequence[str]refs - Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.
- display_
name str - Human-readable display name.
- documentation_
uri str - Reference to the documentation.
- enabled bool
- Enabled/Disabled status of the asset.
- events
Sequence[Event
Args] - Array of events that are part of the asset. Each event can have per-event configuration.
- external_
asset_ strid - Asset id provided by the customer.
- hardware_
revision str - Revision number of the hardware.
- location str
- The geo-location where the resource lives
- manufacturer str
- Asset manufacturer name.
- manufacturer_
uri str - Asset manufacturer URI.
- model str
- Asset model name.
- product_
code str - Asset product code.
- serial_
number str - Asset serial number.
- software_
revision str - Revision number of the software.
- Mapping[str, str]
- Resource tags.
- asset
Endpoint StringProfile Ref - 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.
- extended
Location Property Map - The extended location.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- asset
Name String - Asset name parameter.
- attributes Any
- A set of key-value pairs that contain custom attributes set by the customer.
- datasets List<Property Map>
- Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.
- default
Datasets StringConfiguration - Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.
- default
Events StringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- default
Topic Property Map - Object that describes the default topic information for the asset.
- description String
- Human-readable description of the asset.
- discovered
Asset List<String>Refs - Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.
- display
Name String - Human-readable display name.
- documentation
Uri String - Reference to the documentation.
- enabled Boolean
- Enabled/Disabled status of the asset.
- events List<Property Map>
- Array of events that are part of the asset. Each event can have per-event configuration.
- external
Asset StringId - Asset id provided by the customer.
- hardware
Revision String - Revision number of the hardware.
- location String
- The geo-location where the resource lives
- manufacturer String
- Asset manufacturer name.
- manufacturer
Uri String - Asset manufacturer URI.
- model String
- Asset model name.
- product
Code String - Asset product code.
- serial
Number String - Asset serial number.
- software
Revision String - Revision number of the software.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Asset resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the resource.
- Status
Pulumi.
Azure Native. Device Registry. Outputs. Asset Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- System
Data Pulumi.Azure Native. Device Registry. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Uuid string
- Globally unique, immutable, non-reusable id.
- Version double
- An integer that is incremented each time the resource is modified.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the resource.
- Status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Uuid string
- Globally unique, immutable, non-reusable id.
- Version float64
- An integer that is incremented each time the resource is modified.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the resource.
- status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid String
- Globally unique, immutable, non-reusable id.
- version Double
- An integer that is incremented each time the resource is modified.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Provisioning state of the resource.
- status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid string
- Globally unique, immutable, non-reusable id.
- version number
- An integer that is incremented each time the resource is modified.
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Provisioning state of the resource.
- status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid str
- Globally unique, immutable, non-reusable id.
- version float
- An integer that is incremented each time the resource is modified.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the resource.
- status Property Map
- Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid String
- Globally unique, immutable, non-reusable id.
- version Number
- An integer that is incremented each time the resource is modified.
Supporting Types
AssetStatusDatasetResponse, AssetStatusDatasetResponseArgs
- Message
Schema Pulumi.Reference Azure Native. Device Registry. Inputs. Message Schema Reference Response - The message schema reference object.
- Name string
- The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
- Message
Schema MessageReference Schema Reference Response - The message schema reference object.
- Name string
- The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
- message
Schema MessageReference Schema Reference Response - The message schema reference object.
- name String
- The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
- message
Schema MessageReference Schema Reference Response - The message schema reference object.
- name string
- The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
- message_
schema_ Messagereference Schema Reference Response - The message schema reference object.
- name str
- The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
- message
Schema Property MapReference - The message schema reference object.
- name String
- The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.
AssetStatusErrorResponse, AssetStatusErrorResponseArgs
AssetStatusEventResponse, AssetStatusEventResponseArgs
- Message
Schema Pulumi.Reference Azure Native. Device Registry. Inputs. Message Schema Reference Response - The message schema reference object.
- Name string
- The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
- Message
Schema MessageReference Schema Reference Response - The message schema reference object.
- Name string
- The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
- message
Schema MessageReference Schema Reference Response - The message schema reference object.
- name String
- The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
- message
Schema MessageReference Schema Reference Response - The message schema reference object.
- name string
- The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
- message_
schema_ Messagereference Schema Reference Response - The message schema reference object.
- name str
- The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
- message
Schema Property MapReference - The message schema reference object.
- name String
- The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.
AssetStatusResponse, AssetStatusResponseArgs
- Datasets
List<Pulumi.
Azure Native. Device Registry. Inputs. Asset Status Dataset Response> - Array of dataset statuses that describe the status of each dataset.
- Errors
List<Pulumi.
Azure Native. Device Registry. Inputs. Asset Status Error Response> - Array object to transfer and persist errors that originate from the Edge.
- Events
List<Pulumi.
Azure Native. Device Registry. Inputs. Asset Status Event Response> - Array of event statuses that describe the status of each event.
- Version double
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- Datasets
[]Asset
Status Dataset Response - Array of dataset statuses that describe the status of each dataset.
- Errors
[]Asset
Status Error Response - Array object to transfer and persist errors that originate from the Edge.
- Events
[]Asset
Status Event Response - Array of event statuses that describe the status of each event.
- Version float64
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- datasets
List<Asset
Status Dataset Response> - Array of dataset statuses that describe the status of each dataset.
- errors
List<Asset
Status Error Response> - Array object to transfer and persist errors that originate from the Edge.
- events
List<Asset
Status Event Response> - Array of event statuses that describe the status of each event.
- version Double
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- datasets
Asset
Status Dataset Response[] - Array of dataset statuses that describe the status of each dataset.
- errors
Asset
Status Error Response[] - Array object to transfer and persist errors that originate from the Edge.
- events
Asset
Status Event Response[] - Array of event statuses that describe the status of each event.
- version number
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- datasets
Sequence[Asset
Status Dataset Response] - Array of dataset statuses that describe the status of each dataset.
- errors
Sequence[Asset
Status Error Response] - Array object to transfer and persist errors that originate from the Edge.
- events
Sequence[Asset
Status Event Response] - Array of event statuses that describe the status of each event.
- version float
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- datasets List<Property Map>
- Array of dataset statuses that describe the status of each dataset.
- errors List<Property Map>
- Array object to transfer and persist errors that originate from the Edge.
- events List<Property Map>
- Array of event statuses that describe the status of each event.
- version Number
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
DataPoint, DataPointArgs
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Name string
- The name of the data point.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string | Pulumi.Azure Native. Device Registry. Data Point Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Name string
- The name of the data point.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string | DataPoint Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name String
- The name of the data point.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String | DataPoint Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name string
- The name of the data point.
- data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode string | DataPoint Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data_
source str - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name str
- The name of the data point.
- data_
point_ strconfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability_
mode str | DataPoint Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name String
- The name of the data point.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String | "None" | "Counter" | "Gauge" | "Histogram" | "Log" - An indication of how the data point should be mapped to OpenTelemetry.
DataPointObservabilityMode, DataPointObservabilityModeArgs
- None
- NoneNo mapping to OpenTelemetry.
- Counter
- CounterMap as counter to OpenTelemetry.
- Gauge
- GaugeMap as gauge to OpenTelemetry.
- Histogram
- HistogramMap as histogram to OpenTelemetry.
- Log
- LogMap as log to OpenTelemetry.
- Data
Point Observability Mode None - NoneNo mapping to OpenTelemetry.
- Data
Point Observability Mode Counter - CounterMap as counter to OpenTelemetry.
- Data
Point Observability Mode Gauge - GaugeMap as gauge to OpenTelemetry.
- Data
Point Observability Mode Histogram - HistogramMap as histogram to OpenTelemetry.
- Data
Point Observability Mode Log - LogMap as log to OpenTelemetry.
- None
- NoneNo mapping to OpenTelemetry.
- Counter
- CounterMap as counter to OpenTelemetry.
- Gauge
- GaugeMap as gauge to OpenTelemetry.
- Histogram
- HistogramMap as histogram to OpenTelemetry.
- Log
- LogMap as log to OpenTelemetry.
- None
- NoneNo mapping to OpenTelemetry.
- Counter
- CounterMap as counter to OpenTelemetry.
- Gauge
- GaugeMap as gauge to OpenTelemetry.
- Histogram
- HistogramMap as histogram to OpenTelemetry.
- Log
- LogMap as log to OpenTelemetry.
- NONE
- NoneNo mapping to OpenTelemetry.
- COUNTER
- CounterMap as counter to OpenTelemetry.
- GAUGE
- GaugeMap as gauge to OpenTelemetry.
- HISTOGRAM
- HistogramMap as histogram to OpenTelemetry.
- LOG
- LogMap as log to OpenTelemetry.
- "None"
- NoneNo mapping to OpenTelemetry.
- "Counter"
- CounterMap as counter to OpenTelemetry.
- "Gauge"
- GaugeMap as gauge to OpenTelemetry.
- "Histogram"
- HistogramMap as histogram to OpenTelemetry.
- "Log"
- LogMap as log to OpenTelemetry.
DataPointResponse, DataPointResponseArgs
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Name string
- The name of the data point.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string - An indication of how the data point should be mapped to OpenTelemetry.
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Name string
- The name of the data point.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name String
- The name of the data point.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name string
- The name of the data point.
- data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode string - An indication of how the data point should be mapped to OpenTelemetry.
- data_
source str - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name str
- The name of the data point.
- data_
point_ strconfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability_
mode str - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- name String
- The name of the data point.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String - An indication of how the data point should be mapped to OpenTelemetry.
Dataset, DatasetArgs
- Name string
- Name of the dataset.
- Data
Points List<Pulumi.Azure Native. Device Registry. Inputs. Data Point> - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- Dataset
Configuration string - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- Topic
Pulumi.
Azure Native. Device Registry. Inputs. Topic - Object that describes the topic information for the specific dataset.
- Name string
- Name of the dataset.
- Data
Points []DataPoint - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- Dataset
Configuration string - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- Topic Topic
- Object that describes the topic information for the specific dataset.
- name String
- Name of the dataset.
- data
Points List<DataPoint> - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset
Configuration String - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic Topic
- Object that describes the topic information for the specific dataset.
- name string
- Name of the dataset.
- data
Points DataPoint[] - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset
Configuration string - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic Topic
- Object that describes the topic information for the specific dataset.
- name str
- Name of the dataset.
- data_
points Sequence[DataPoint] - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset_
configuration str - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic Topic
- Object that describes the topic information for the specific dataset.
- name String
- Name of the dataset.
- data
Points List<Property Map> - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset
Configuration String - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic Property Map
- Object that describes the topic information for the specific dataset.
DatasetResponse, DatasetResponseArgs
- Name string
- Name of the dataset.
- Data
Points List<Pulumi.Azure Native. Device Registry. Inputs. Data Point Response> - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- Dataset
Configuration string - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- Topic
Pulumi.
Azure Native. Device Registry. Inputs. Topic Response - Object that describes the topic information for the specific dataset.
- Name string
- Name of the dataset.
- Data
Points []DataPoint Response - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- Dataset
Configuration string - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- Topic
Topic
Response - Object that describes the topic information for the specific dataset.
- name String
- Name of the dataset.
- data
Points List<DataPoint Response> - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset
Configuration String - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic
Topic
Response - Object that describes the topic information for the specific dataset.
- name string
- Name of the dataset.
- data
Points DataPoint Response[] - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset
Configuration string - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic
Topic
Response - Object that describes the topic information for the specific dataset.
- name str
- Name of the dataset.
- data_
points Sequence[DataPoint Response] - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset_
configuration str - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic
Topic
Response - Object that describes the topic information for the specific dataset.
- name String
- Name of the dataset.
- data
Points List<Property Map> - Array of data points that are part of the dataset. Each data point can have per-data point configuration.
- dataset
Configuration String - Stringified JSON that contains connector-specific JSON string that describes configuration for the specific dataset.
- topic Property Map
- Object that describes the topic information for the specific dataset.
Event, EventArgs
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Name string
- The name of the event.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string | Pulumi.Azure Native. Device Registry. Event Observability Mode - An indication of how the event should be mapped to OpenTelemetry.
- Topic
Pulumi.
Azure Native. Device Registry. Inputs. Topic - Object that describes the topic information for the specific event.
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Name string
- The name of the event.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string | EventObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- Topic Topic
- Object that describes the topic information for the specific event.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name String
- The name of the event.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String | EventObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- topic Topic
- Object that describes the topic information for the specific event.
- event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name string
- The name of the event.
- event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode string | EventObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- topic Topic
- Object that describes the topic information for the specific event.
- event_
notifier str - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name str
- The name of the event.
- event_
configuration str - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability_
mode str | EventObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- topic Topic
- Object that describes the topic information for the specific event.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name String
- The name of the event.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String | "None" | "Log" - An indication of how the event should be mapped to OpenTelemetry.
- topic Property Map
- Object that describes the topic information for the specific event.
EventObservabilityMode, EventObservabilityModeArgs
- None
- NoneNo mapping to OpenTelemetry.
- Log
- LogMap as log to OpenTelemetry.
- Event
Observability Mode None - NoneNo mapping to OpenTelemetry.
- Event
Observability Mode Log - LogMap as log to OpenTelemetry.
- None
- NoneNo mapping to OpenTelemetry.
- Log
- LogMap as log to OpenTelemetry.
- None
- NoneNo mapping to OpenTelemetry.
- Log
- LogMap as log to OpenTelemetry.
- NONE
- NoneNo mapping to OpenTelemetry.
- LOG
- LogMap as log to OpenTelemetry.
- "None"
- NoneNo mapping to OpenTelemetry.
- "Log"
- LogMap as log to OpenTelemetry.
EventResponse, EventResponseArgs
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Name string
- The name of the event.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string - An indication of how the event should be mapped to OpenTelemetry.
- Topic
Pulumi.
Azure Native. Device Registry. Inputs. Topic Response - Object that describes the topic information for the specific event.
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Name string
- The name of the event.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Observability
Mode string - An indication of how the event should be mapped to OpenTelemetry.
- Topic
Topic
Response - Object that describes the topic information for the specific event.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name String
- The name of the event.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String - An indication of how the event should be mapped to OpenTelemetry.
- topic
Topic
Response - Object that describes the topic information for the specific event.
- event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name string
- The name of the event.
- event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode string - An indication of how the event should be mapped to OpenTelemetry.
- topic
Topic
Response - Object that describes the topic information for the specific event.
- event_
notifier str - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name str
- The name of the event.
- event_
configuration str - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability_
mode str - An indication of how the event should be mapped to OpenTelemetry.
- topic
Topic
Response - Object that describes the topic information for the specific event.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- name String
- The name of the event.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- observability
Mode String - An indication of how the event should be mapped to OpenTelemetry.
- topic Property Map
- Object that describes the topic information for the specific event.
ExtendedLocation, ExtendedLocationArgs
ExtendedLocationResponse, ExtendedLocationResponseArgs
MessageSchemaReferenceResponse, MessageSchemaReferenceResponseArgs
- Schema
Name string - The message schema name.
- Schema
Registry stringNamespace - The message schema registry namespace.
- Schema
Version string - The message schema version.
- Schema
Name string - The message schema name.
- Schema
Registry stringNamespace - The message schema registry namespace.
- Schema
Version string - The message schema version.
- schema
Name String - The message schema name.
- schema
Registry StringNamespace - The message schema registry namespace.
- schema
Version String - The message schema version.
- schema
Name string - The message schema name.
- schema
Registry stringNamespace - The message schema registry namespace.
- schema
Version string - The message schema version.
- schema_
name str - The message schema name.
- schema_
registry_ strnamespace - The message schema registry namespace.
- schema_
version str - The message schema version.
- schema
Name String - The message schema name.
- schema
Registry StringNamespace - The message schema registry namespace.
- schema
Version String - The message schema version.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Topic, TopicArgs
- Path string
- The topic path for messages published to an MQTT broker.
- Retain
string | Pulumi.
Azure Native. Device Registry. Topic Retain Type - When set to 'Keep', messages published to an MQTT broker will have the retain flag set. Default: 'Never'.
- Path string
- The topic path for messages published to an MQTT broker.
- Retain
string | Topic
Retain Type - When set to 'Keep', messages published to an MQTT broker will have the retain flag set. Default: 'Never'.
- path String
- The topic path for messages published to an MQTT broker.
- retain
String | Topic
Retain Type - When set to 'Keep', messages published to an MQTT broker will have the retain flag set. Default: 'Never'.
- path string
- The topic path for messages published to an MQTT broker.
- retain
string | Topic
Retain Type - When set to 'Keep', messages published to an MQTT broker will have the retain flag set. Default: 'Never'.
- path str
- The topic path for messages published to an MQTT broker.
- retain
str | Topic
Retain Type - When set to 'Keep', messages published to an MQTT broker will have the retain flag set. Default: 'Never'.
- path String
- The topic path for messages published to an MQTT broker.
- retain String | "Keep" | "Never"
- When set to 'Keep', messages published to an MQTT broker will have the retain flag set. Default: 'Never'.
TopicResponse, TopicResponseArgs
TopicRetainType, TopicRetainTypeArgs
- Keep
- KeepRetain the messages.
- Never
- NeverNever retain messages.
- Topic
Retain Type Keep - KeepRetain the messages.
- Topic
Retain Type Never - NeverNever retain messages.
- Keep
- KeepRetain the messages.
- Never
- NeverNever retain messages.
- Keep
- KeepRetain the messages.
- Never
- NeverNever retain messages.
- KEEP
- KeepRetain the messages.
- NEVER
- NeverNever retain messages.
- "Keep"
- KeepRetain the messages.
- "Never"
- NeverNever retain messages.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:deviceregistry:Asset my-asset /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0