[SDK reference](../../index.md) / [Models](../index.md) / [Iot](index.md)

# DeviceRegistry

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Iot`  

A device registry: the tenant boundary of an MQTT namespace (W60; ADR-0810). Devices connect with mutual TLS only; the certificateCN `{registryUid}:{deviceId}` is the MQTT username, and pattern ACLs (`dev/%u/up/#` write, `dev/%u/down/#` read) isolate tenants.Prototype: built only with a paying design partner (ADR-0810).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Iot.DeviceRegistry_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `Blocked` | `bool?` | `blocked` | True while the wallet cap blocks the registry. |
| `BlockedReasonCode` | `int?` | `blockedReasonCode` | The MQTT 5 reason code new connections get while the registry is blocked: 151 (0x97, Quota exceeded). |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `Description` | `string?` | `description` | Human-readable description. |
| `DeviceCount` | `long?` | `deviceCount` | The devices of the registry (not deleted). |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Endpoint` | `string?` | `endpoint` | The MQTT over WebSockets URL (through the HTTP edge) devices connect to, set when the registry is READY. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Labels` | `Models.Iot.DeviceRegistry_labels?` | `labels` | At most 64. |
| `Location` | `string?` | `location` | Location ID where the registry is homed. |
| `MaxMessageRatePerSecond` | `int?` | `maxMessageRatePerSecond` | The most messages per second one device may publish (1..1000, default 10). Above it the message is refused with MQTT 5 reason code 0x96. |
| `MaxPayloadBytes` | `int?` | `maxPayloadBytes` | The largest payload of one message in bytes (256..65536, default 16384). Above it the message is refused with MQTT 5 reason code 0x95. |
| `MessageCount` | `long?` | `messageCount` | Messages accepted from the registry's devices. |
| `MeteredUnits` | `long?` | `meteredUnits` | 4 KB metering units billed so far (a message of 1..4096 bytes is one unit, 4097..8192 two, and so on). |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `RefusedByReasonCode` | `Models.Iot.DeviceRegistry_refusedByReasonCode?` | `refusedByReasonCode` | Messages refused, counted by the MQTT 5 reason code they got (`149` 0x95 payload too large, `150` 0x96 rate too high, `151` 0x97 quota exceeded, `135` 0x87 not authorized). |
| `State` | `Models.Iot.DeviceRegistryState?` | `state` | Device registry lifecycle states (W60; ADR-0810 section 3, ADR-0105). |
| `TopicPrefix` | `string?` | `topicPrefix` | The MQTT topic prefix: always `dev` (`dev/{deviceId}/up/#`, `dev/{deviceId}/down/#`). |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
