List hubs
List all Hubs in the specified zone. By default, returned Hubs are ordered by creation date in ascending order, though this can be modified via the order_by field.
path Parameters
regionThe region you want to target
query Parameters
pagePage number to return, from the paginated results.
page_sizeNumber of Hubs to return within a page. Maximum value is 100.
order_bySort order of Hubs in the response.
project_idOnly list Hubs of this Project ID.
organization_idOnly list Hubs of this Organization ID.
nameHub name.
List hubs › Responses
total_countTotal number of Hubs.
A page of hubs.
Create a hub
Create a new Hub in the targeted region, specifying its configuration including name and product plan.
path Parameters
regionThe region you want to target
Create a hub › Request Body
nameHub name (up to 255 characters).
project_idProject/Organization ID to filter for, only Hubs from this Project/Organization will be returned.
product_planHub product plan.
disable_eventsDisable Hub events.
events_topic_prefixTopic prefix (default '$SCW/events') of Hub events.
BETA - not implemented yet.
Create a hub › Responses
idHub ID.
nameHub name.
statusCurrent status of the Hub.
product_planHub feature set.
enabledDefines whether the hub has been enabled.
device_countNumber of registered devices.
connected_device_countNumber of currently connected devices.
endpointHost to connect your devices to. 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).
disable_eventsDefines whether to disable Hub events.
events_topic_prefixHub events topic prefix.
regionRegion of the Hub.
created_atHub creation date. (RFC 3339 format)
updated_atHub last modification date. (RFC 3339 format)
project_idProject owning the resource.
organization_idOrganization owning the resource.
enable_device_auto_provisioningDefines whether to enable device auto provisioning. 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 certificate 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.
has_custom_caDefines whether the hub is using a custom certificate authority.
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.
BETA - not implemented yet.
Get a hub
Retrieve information about an existing IoT Hub, specified by its Hub ID. Its full details, including name, status and endpoint, are returned in the response object.
path Parameters
regionThe region you want to target
hub_idHub ID.
Get a hub › Responses
idHub ID.
nameHub name.
statusCurrent status of the Hub.
product_planHub feature set.
enabledDefines whether the hub has been enabled.
device_countNumber of registered devices.
connected_device_countNumber of currently connected devices.
endpointHost to connect your devices to. 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).
disable_eventsDefines whether to disable Hub events.
events_topic_prefixHub events topic prefix.
regionRegion of the Hub.
created_atHub creation date. (RFC 3339 format)
updated_atHub last modification date. (RFC 3339 format)
project_idProject owning the resource.
organization_idOrganization owning the resource.
enable_device_auto_provisioningDefines whether to enable device auto provisioning. 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 certificate 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.
has_custom_caDefines whether the hub is using a custom certificate authority.
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.
BETA - not implemented yet.
Delete a hub
Delete an existing IoT Hub, specified by its Hub ID. Deleting a Hub is permanent, and cannot be undone.
path Parameters
regionThe region you want to target
hub_idHub ID.
query Parameters
delete_devicesDefines whether to force the deletion of devices added to this Hub or reject the operation.
Delete a hub › Responses
Update a hub
Update the parameters of an existing IoT Hub, specified by its Hub ID.
path Parameters
regionThe region you want to target
hub_idID of the Hub you want to update.
Update a hub › Request Body
nameHub name (up to 255 characters).
product_planHub product plan.
disable_eventsDisable Hub events.
events_topic_prefixTopic prefix of Hub events.
enable_device_auto_provisioningEnable device auto provisioning.
BETA - not implemented yet.
Update a hub › Responses
idHub ID.
nameHub name.
statusCurrent status of the Hub.
product_planHub feature set.
enabledDefines whether the hub has been enabled.
device_countNumber of registered devices.
connected_device_countNumber of currently connected devices.
endpointHost to connect your devices to. 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).
disable_eventsDefines whether to disable Hub events.
events_topic_prefixHub events topic prefix.
regionRegion of the Hub.
created_atHub creation date. (RFC 3339 format)
updated_atHub last modification date. (RFC 3339 format)
project_idProject owning the resource.
organization_idOrganization owning the resource.
enable_device_auto_provisioningDefines whether to enable device auto provisioning. 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 certificate 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.
has_custom_caDefines whether the hub is using a custom certificate authority.
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.
BETA - not implemented yet.
Get the certificate authority of a hub
Set the certificate authority of a hub
Set a particular PEM-encoded certificate, specified by the Hub ID.
path Parameters
regionThe region you want to target
hub_idHub ID.
Set the certificate authority of a hub › Request Body
ca_cert_pemCA's PEM-encoded certificate.
challenge_cert_pemProof of possession of PEM-encoded certificate. Challenge is a PEM-encoded certificate that acts as proof of possession of the CA. It must be signed by the CA, and have a Common Name equal to the Hub ID.
Set the certificate authority of a hub › Responses
idHub ID.
nameHub name.
statusCurrent status of the Hub.
product_planHub feature set.
enabledDefines whether the hub has been enabled.
device_countNumber of registered devices.
connected_device_countNumber of currently connected devices.
endpointHost to connect your devices to. 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).
disable_eventsDefines whether to disable Hub events.
events_topic_prefixHub events topic prefix.
regionRegion of the Hub.
created_atHub creation date. (RFC 3339 format)
updated_atHub last modification date. (RFC 3339 format)
project_idProject owning the resource.
organization_idOrganization owning the resource.
enable_device_auto_provisioningDefines whether to enable device auto provisioning. 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 certificate 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.
has_custom_caDefines whether the hub is using a custom certificate authority.
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.
BETA - not implemented yet.
Disable a hub
Disable an existing IoT Hub, specified by its Hub ID.
path Parameters
regionThe region you want to target
hub_idHub ID.
Disable a hub › Responses
idHub ID.
nameHub name.
statusCurrent status of the Hub.
product_planHub feature set.
enabledDefines whether the hub has been enabled.
device_countNumber of registered devices.
connected_device_countNumber of currently connected devices.
endpointHost to connect your devices to. 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).
disable_eventsDefines whether to disable Hub events.
events_topic_prefixHub events topic prefix.
regionRegion of the Hub.
created_atHub creation date. (RFC 3339 format)
updated_atHub last modification date. (RFC 3339 format)
project_idProject owning the resource.
organization_idOrganization owning the resource.
enable_device_auto_provisioningDefines whether to enable device auto provisioning. 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 certificate 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.
has_custom_caDefines whether the hub is using a custom certificate authority.
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.
BETA - not implemented yet.
Enable a hub
Enable an existing IoT Hub, specified by its Hub ID.
path Parameters
regionThe region you want to target
hub_idHub ID.
Enable a hub › Responses
idHub ID.
nameHub name.
statusCurrent status of the Hub.
product_planHub feature set.
enabledDefines whether the hub has been enabled.
device_countNumber of registered devices.
connected_device_countNumber of currently connected devices.
endpointHost to connect your devices to. 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).
disable_eventsDefines whether to disable Hub events.
events_topic_prefixHub events topic prefix.
regionRegion of the Hub.
created_atHub creation date. (RFC 3339 format)
updated_atHub last modification date. (RFC 3339 format)
project_idProject owning the resource.
organization_idOrganization owning the resource.
enable_device_auto_provisioningDefines whether to enable device auto provisioning. 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 certificate 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.
has_custom_caDefines whether the hub is using a custom certificate authority.
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.
BETA - not implemented yet.
Get a hub's metrics
Get the metrics of an existing IoT Hub, specified by its Hub ID.
path Parameters
regionThe region you want to target
hub_idHub ID.
query Parameters
start_dateStart date used to compute the best scale for returned metrics. (RFC 3339 format)
Get a hub's metrics › Responses
Metrics for a Hub over the requested period.