Class Device
- Assembly
- Azure.Iot.Operations.Services.dll
Represents a Device resource, modeled after the devices.namespaces.deviceregistry.microsoft.com CRD in Kubernetes.
public class Device
- Inheritance
-
Device
- Inherited Members
Properties
Attributes
A set of key-value pairs that contain custom attributes set by the customer.
[JsonPropertyName("attributes")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Dictionary<string, string>? Attributes { get; set; }
Property Value
DiscoveredDeviceRef
Reference to a device. Populated only if the device had been created from discovery flow. Discovered device name must be provided.
[JsonPropertyName("discoveredDeviceRef")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? DiscoveredDeviceRef { get; set; }
Property Value
Enabled
Indicates if the resource and identity are enabled or not. A disabled device cannot authenticate with Microsoft Entra ID.
[JsonPropertyName("enabled")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Enabled { get; set; }
Property Value
- bool?
Endpoints
Connection endpoint url a device can use to connect to a service.
[JsonPropertyName("endpoints")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public DeviceEndpointsSchema? Endpoints { get; set; }
Property Value
ExternalDeviceId
The Device ID provided by the customer.
[JsonPropertyName("externalDeviceId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ExternalDeviceId { get; set; }
Property Value
LastTransitionTime
A timestamp (in UTC) that is updated each time the resource is modified.
[JsonPropertyName("lastTransitionTime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public DateTime? LastTransitionTime { get; set; }
Property Value
Manufacturer
Device manufacturer.
[JsonPropertyName("manufacturer")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Manufacturer { get; set; }
Property Value
Model
Device model.
[JsonPropertyName("model")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Model { get; set; }
Property Value
OperatingSystem
Device operating system.
[JsonPropertyName("operatingSystem")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? OperatingSystem { get; set; }
Property Value
OperatingSystemVersion
Device operating system version.
[JsonPropertyName("operatingSystemVersion")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? OperatingSystemVersion { get; set; }
Property Value
Uuid
Gets a unique identifier for this resource.
[JsonPropertyName("uuid")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Uuid { get; set; }
Property Value
Version
An integer that is incremented each time the resource is modified.
[JsonPropertyName("version")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ulong? Version { get; set; }