Skip to content

IDeviceInfo

Interface in Oadm.Sdk.Devices · Oadm.Sdk.dll

Read-only view of a managed device, as exposed to plugins.

public interface IDeviceInfo

Guide: Devices and VAPIX

bool AddedByAllDevices { get; }

Default implementation

A user with all devices (or the system) added the device. SDK 0.4.0: only then may a plugin trust names the device was added with, e.g. its host name in a certificate (a user limited to a device group could control the DNS at a site). False when not known (older hosts, the client).

string Address { get; }

The address OADM reaches the device at: an IP address or a DNS name, with a port when it is not the default.

IReadOnlyList<DeviceApi> Apis { get; }

VAPIX APIs and versions from the last full refresh; empty until known. See DeviceApiExtensions.

string? Architecture { get; }

Default implementation

The CPU architecture (“aarch64”); null when not known. SDK 0.7.0, filled by the server.

DeviceCategory Category { get; }

Kind of Axis device, mapped from basicdeviceinfo ProdType. Unknown until read.

DateTime? CertNotAfterUtc { get; }

Default implementation

End of validity (UTC) of the device HTTPS certificate; null for HTTP-only devices or when not checked yet.

string? CertTrustName { get; }

Default implementation

Chain trust of the HTTPS certificate as shown in the device grid: “Trusted”, “SelfSigned”, “Untrusted” or “Expired”; null when unknown or HTTP only. Filled by the server.

bool? ConnectsOverHttps { get; }

Default implementation

How OADM connects to the device: true over HTTPS, false over HTTP (what it sends crosses the network unencrypted); null when not known. Filled on server and client.

string? CredentialUserName { get; }

Default implementation

User name of the credentials OADM stores for this device (never the password), null when none are stored or not known (client side). Plugins that manage users must never remove or demote it. Filled by the server for task execution, queries and CanRun.

bool? DhcpEnabled { get; }

Default implementation

The device gets its IPv4 address from DHCP (param Network.BootProto); null when not known. Filled by the server.

bool? Dot1xEnabled { get; }

Default implementation

IEEE 802.1X is enabled on the wired interface (param Network.Interface.I0.dot1x.Enabled); null when not known. Filled by the server.

string? FirmwareVersion { get; }

The AXIS OS version (“12.11.77”); null until the device was read.

bool HasLiveVideo { get; }

Default implementation

The device sends a live video stream: the devices with IDeviceInfo.HasVideo and security radars (their radar picture). Use it for live video only; a radar has no exposure, optics or snapshots of a scene. SDK 0.8.0.

bool HasVideo { get; }

The device produces video (camera, encoder, video intercom). Use it in CanRun, e.g. for snapshots.

string? HostName { get; }

The verified DNS name or the host name the device was added with; null when none is known.

bool? HttpsEnabled { get; }

Default implementation

HTTPS is enabled on the device (param HTTPS.Enabled); null when not known. Filled by the server.

Guid Id { get; }

OADM’s id of the device: the key of every call and of a plugin’s own data.

string? Model { get; }

The product number (“P3265-V”); null until the device was read.

string Serial { get; }

The serial number, which is the MAC address: upper case hex without separators (“B8A44F631339”).

Guid? SiteId { get; }

Default implementation

The site the device is reached through (a remote network with an OADM Site Node); null = the server’s own network. Plugins may refine CanRun with it. Filled on server and client.

string? SiteName { get; }

Default implementation

The name of IDeviceInfo.SiteId (“Building B”); null on the server’s own network.

string? Soc { get; }

Default implementation

The system on chip as the device reports it (“Axis Artpec-8”); null when not known. SDK 0.7.0, filled by the server.

DeviceStatus Status { get; }

The status from the last poll (every 60 s by default). Check it before sending anything: see DeviceMessages.Refusal.

IReadOnlyList<string> Tags { get; }

Default implementation

The device’s tags (names, sorted, case-insensitive distinct), e.g. “Building A”, “PTZ”; empty when none. Tags are set by the user in the Devices page (Tags dialog); colors are not part of the SDK. Filled on server and client.