interface Hub {
    connectedDeviceCount: number;
    createdAt?: Date;
    deviceCount: number;
    disableEvents: boolean;
    enableDeviceAutoProvisioning: boolean;
    enabled: boolean;
    endpoint: string;
    eventsTopicPrefix: string;
    hasCustomCa: boolean;
    id: string;
    name: string;
    organizationId: string;
    productPlan: HubProductPlan;
    projectId: string;
    region: Region;
    status: HubStatus;
    twinsGraphiteConfig?: HubTwinsGraphiteConfig;
    updatedAt?: Date;
}

Properties

connectedDeviceCount: number

Number of currently connected devices.

createdAt?: Date

Hub creation date.

deviceCount: number

Number of registered devices.

disableEvents: boolean

Defines whether to disable Hub events.

enableDeviceAutoProvisioning: boolean

When an unknown device connects to your hub using a valid certificate chain, it will be automatically provisioned inside your Hub. The Hub uses the common name of the device certifcate to find out if a device with the same name already exists. This setting can only be enabled on a hub with a custom certificate authority.

enabled: boolean

Defines whether the hub has been enabled.

endpoint: string

Devices should be connected to this host. Port may be 1883 (MQTT), 8883 (MQTT over TLS), 80 (MQTT over Websocket) or 443 (MQTT over Websocket over TLS).

eventsTopicPrefix: string

Hub events topic prefix.

hasCustomCa: boolean

Flag is automatically set to false after Hub creation, as Hub certificates are managed by Scaleway. Once a custom certificate authority is set, the flag will be set to true.

id: string

Hub ID.

name: string

Hub name.

organizationId: string

Organization owning the resource.

productPlan: HubProductPlan

Hub feature set.

projectId: string

Project owning the resource.

region: Region

Region of the Hub.

status: HubStatus

Current status of the Hub.

twinsGraphiteConfig?: HubTwinsGraphiteConfig

BETA - not implemented yet.

One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be set.

updatedAt?: Date

Hub last modification date.