Astarte Interfaces
io.edgehog.devicemanager.BaseImage v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/fingerprint
withstring
type. OS bundle release identification code/name
withstring
type. Name of the bundle/version
withstring
type. Version of the bundle/buildId
withstring
type. Human readable build identifier. Examples are[date][time]
or[date]-[time]-[git-commit]
/fingerprint
OS bundle release identification code
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/name
Name of the bundle
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/version
Version of the bundle
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/buildId
Human readable build identifier. Examples are [date][time]
or [date]-[time]-[git-commit]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
io.edgehog.devicemanager.BatteryStatus v0.1
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/%{battery_slot}/levelPercentage
withdouble
type. Battery level estimated percentage [0.0%-100.0%]/%{battery_slot}/levelAbsoluteError
withdouble
type. Battery level measurement absolute error [0.0-100.0]/%{battery_slot}/status
withstring
type. Battery status string, any of: Charging, Discharging, Idle, EitherIdleOrCharging, Failure, Removed, Unknown
/%{battery_slot}/levelPercentage
Battery level estimated percentage [0.0%-100.0%]
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and battery_slot
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{battery_slot}/levelAbsoluteError
Battery level measurement absolute error [0.0-100.0]
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and battery_slot
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{battery_slot}/status
Battery status string, any of: Charging, Discharging, Idle, EitherIdleOrCharging, Failure, Removed, Unknown
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and battery_slot
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.CellularConnectionProperties v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{id}/apn
withstring
type. Operator apn address./%{id}/imei
withstring
type. The modem IMEI code of the device./%{id}/imsi
withstring
type. The SIM IMSI code of the device.
/%{id}/apn
Operator apn address.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
/%{id}/imei
The modem IMEI code of the device.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
/%{id}/imsi
The SIM IMSI code of the device.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.CellularConnectionStatus v0.1
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/%{id}/carrier
withstring
type. Connectivity carrier operator name./%{id}/cellId
withlonginteger
type. The Cell ID in hexadecimal format, either 16 bit for 2G or 28 bit for 3G or 4G./%{id}/mobileCountryCode
withinteger
type. The mobile country code (MCC) for the device's home network. Valid range: 0–999./%{id}/mobileNetworkCode
withinteger
type. The Mobile Network Code for the device's home network. This is the MNC for GSM, WCDMA, LTE and NR. CDMA uses the System ID (SID). Valid range for MNC: 0–999. Valid range for SID: 0–32767./%{id}/localAreaCode
withinteger
type. Two byte location area code in hexadecimal format./%{id}/registrationStatus
withstring
type. GSM/LTE registration status. Possible values: [NotRegistered, Registered, SearchingOperator, RegistrationDenied, Unknown, RegisteredRoaming]/%{id}/rssi
withdouble
type. Signal strenght of the device in dBm./%{id}/technology
withstring
type. Access Technology. Possible values [GSM, GSMCompact, UTRAN, GSMwEGPRS, UTRANwHSDPA, UTRANwHSUPA, UTRANwHSDPAandHSUPA, EUTRAN]
/%{id}/carrier
Connectivity carrier operator name.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/cellId
The Cell ID in hexadecimal format, either 16 bit for 2G or 28 bit for 3G or 4G.
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/mobileCountryCode
The mobile country code (MCC) for the device's home network. Valid range: 0–999.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/mobileNetworkCode
The Mobile Network Code for the device's home network. This is the MNC for GSM, WCDMA, LTE and NR. CDMA uses the System ID (SID). Valid range for MNC: 0–999. Valid range for SID: 0–32767.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/localAreaCode
Two byte location area code in hexadecimal format.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/registrationStatus
GSM/LTE registration status. Possible values: [NotRegistered, Registered, SearchingOperator, RegistrationDenied, Unknown, RegisteredRoaming]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/rssi
Signal strenght of the device in dBm.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/technology
Access Technology. Possible values [GSM, GSMCompact, UTRAN, GSMwEGPRS, UTRANwHSDPA, UTRANwHSUPA, UTRANwHSDPAandHSUPA, EUTRAN]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.Commands v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an individual
aggregation.
Each mapping is treated as an independent value and is managed individually.
Mappings
The interface has the following mappings:
/request
withstring
type. Command request. Possible values ['Reboot']
/request
Command request. Possible values ['Reboot']
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it.
io.edgehog.devicemanager.ForwarderSessionRequest v0.1
Configuration to open a session with the Edgehog Forwarder from a device to a certain host.
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/request/session_token
withstring
type. The session token thanks to which the device can authenticates itself through Edgehog./request/port
withinteger
type. The host port the device must connect to./request/host
withstring
type. The IP address or host name the device must connect to./request/secure
withboolean
type. Indicates whether the connection should use TLS, i.e. 'ws' or 'wss' scheme.
/request/session_token
The session token thanks to which the device can authenticates itself through Edgehog.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/request/port
The host port the device must connect to.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/request/host
The IP address or host name the device must connect to.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/request/secure
Indicates whether the connection should use TLS, i.e. 'ws' or 'wss' scheme.
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.ForwarderSessionState v0.1
Information provided by the device about the status of a forwarder session.
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{session_token}/status
withstring
type. Indicates if the device is connecting, or connected to a forwarder session.
/%{session_token}/status
Indicates if the device is connecting, or connected to a forwarder session.
An enum with the following possible values: Connecting | Connected.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and session_token
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.Geolocation v0.1
Generic Geolocation sampled data.
Geolocation allows geolocation sensors to stream location data, such as GPS data. Values availability depends on what sensors are present on devices and what measurement systems are in use. The id represents a unique identifier for an individual sensor.
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/%{id}/latitude
withdouble
type. Sampled latitude value./%{id}/longitude
withdouble
type. Sampled longitude value./%{id}/altitude
withdouble
type. Sampled altitude value./%{id}/accuracy
withdouble
type. Sampled accuracy of the latitude and longitude properties./%{id}/altitudeAccuracy
withdouble
type. Sampled accuracy of the altitude property./%{id}/heading
withdouble
type. Sampled value representing the direction towards which the device is facing./%{id}/speed
withdouble
type. Sampled value representing the velocity of the device.
/%{id}/latitude
Sampled latitude value.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/longitude
Sampled longitude value.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/altitude
Sampled altitude value.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/accuracy
Sampled accuracy of the latitude and longitude properties.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/altitudeAccuracy
Sampled accuracy of the altitude property.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/heading
Sampled value representing the direction towards which the device is facing.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{id}/speed
Sampled value representing the velocity of the device.
This endpoint accepts values of type double
: a double-precision floating-point number as specified by binary64, by the IEEE 754 standard.
The endpoint is parametric and id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.HardwareInfo v0.1
General hardware capabilities
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/cpu/architecture
withstring
type. CPU Architecture/cpu/model
withstring
type. CPU Model Code/cpu/modelName
withstring
type. CPU Model Display Name/cpu/vendor
withstring
type. CPU Vendor/mem/totalBytes
withlonginteger
type. Total RAM quantity (Bytes)
/cpu/architecture
CPU Architecture
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/cpu/model
CPU Model Code
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/cpu/modelName
CPU Model Display Name
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/cpu/vendor
CPU Vendor
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/mem/totalBytes
Total RAM quantity (Bytes)
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The value of the property cannot be unset.
io.edgehog.devicemanager.LedBehavior v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an individual
aggregation.
Each mapping is treated as an independent value and is managed individually.
Mappings
The interface has the following mappings:
/%{led_id}/behavior
withstring
type. Enum describing the behavior of the given led. Possible values: [Blink60Seconds | DoubleBlink60Seconds | SlowBlink60Seconds]
/%{led_id}/behavior
Enum describing the behavior of the given led. Possible values: [Blink60Seconds | DoubleBlink60Seconds | SlowBlink60Seconds]
Blink60Seconds: Blinking DoubleBlink60Seconds: Double blinking SlowBlink60Seconds: Slow blinking
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and led_id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.NetworkInterfaceProperties v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{iface_name}/macAddress
withstring
type. Normalized physical address. Example value is "00:aa:bb:cc:dd:ee" (always lower case)/%{iface_name}/technologyType
withstring
type. Connection technology. Possible values: [Ethernet, Bluetooth, Cellular, WiFi]
/%{iface_name}/macAddress
Normalized physical address. Example value is "00:aa:bb:cc:dd:ee" (always lower case)
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and iface_name
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
/%{iface_name}/technologyType
Connection technology. Possible values: [Ethernet, Bluetooth, Cellular, WiFi]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and iface_name
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.OSInfo v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/osName
withstring
type. Name of the Operating System/osVersion
withstring
type. Version of the Operating System
/osName
Name of the Operating System
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/osVersion
Version of the Operating System
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
io.edgehog.devicemanager.OTAEvent v0.1
OTA Events sampled data.
Allows to stream OTA Events data, including OTA Update status, its progress, code and internal message.
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/event/requestUUID
withstring
type. OTA Request identifier./event/status
withstring
type. OTA Update status./event/statusProgress
withinteger
type. Current OTA Update status progress percentage [0%-100%]./event/statusCode
withstring
type. Status code expands OTA Update status with additional information./event/message
withstring
type. Contains internal message for status code or empty string otherwise.
/event/requestUUID
OTA Request identifier.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/event/status
OTA Update status.
Value is one of the following strings:
Acknowledged
: the device received an OTA Request.Downloading
: an update is in the process of downloading.Deploying
: an update is in the process of deploying.Deployed
: an update deployed on the device.Rebooting
: the device is in the process of rebooting.Success
: an update succeeded. This is a final status of OTA Update.Error
: an error happened during the update. Also this status can be used to notify about handled errors.Failure
: an update failed. This is a final status of OTA Update.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/event/statusProgress
Current OTA Update status progress percentage [0%-100%].
Every OTA Update status has own progress that starts from 0 and ends at 100, for example (pairs of "status, progress"
): "Downloading, 0"
, "Downloading, 50"
, "Downloading, 100"
, "Deploying, 10"
, etc.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/event/statusCode
Status code expands OTA Update status with additional information.
Some common status codes are:
InvalidRequest
: an update request contains incorrect data.UpdateAlreadyInProgress
: another update is currently in progress.NetworkError
: a network error happened during the update.IOError
: a filesystem error happened during the update.InternalError
: an internal error happened during the update.InvalidBaseImage
: an update failed to apply due to an invalid base image.SystemRollback
: a system rollback has occurred.Canceled
: an update was canceled.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/event/message
Contains internal message for status code or empty string otherwise.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when it has been received exactly once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.OTARequest v1.0
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/request/operation
withstring
type. OTA Request operation/request/url
withstring
type. File URL/request/uuid
withstring
type. Request identifier
/request/operation
OTA Request operation
Value is one of the following strings:
Update
: push an OTA update operation.Cancel
: cancel an OTA update if it can still be cancelled.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/request/url
File URL
If the operation is Update, this will contain the URL that can be used to download the Update. If the operation is Cancel, this will be an empty string. Note that the URL will be valid only until the OTA update is active (i.e. it didn't reach a Failure or Success state), after that it's possible that the URL can become invalid.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/request/uuid
Request identifier
A UUID that uniquely identifies the OTA request. It must be stored when receiving an Update operation so that it can be matched against in case a Cancel operation is received.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.RuntimeInfo v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/name
withstring
type. Name of the Edgehog runtime. Example value:edgehog-esp32-device
/url
withstring
type. URL that uniquely identifies the Edgehog Edgehog runtime implementation. Example value:https://github.com/edgehog-device-manager/edgehog-esp32-device
./version
withstring
type. Version of the Edgehog runtime. Example value:0.5
/environment
withstring
type. Environment of the Edgehog runtime. Example value:esp-idf VERSION
,Rust 1.58
orJava 8
/name
Name of the Edgehog runtime. Example value: edgehog-esp32-device
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/url
URL that uniquely identifies the Edgehog Edgehog runtime implementation. Example value: https://github.com/edgehog-device-manager/edgehog-esp32-device
.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/version
Version of the Edgehog runtime. Example value: 0.5
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/environment
Environment of the Edgehog runtime. Example value: esp-idf VERSION
, Rust 1.58
or Java 8
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
io.edgehog.devicemanager.StorageUsage v0.1
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/%{label}/totalBytes
withlonginteger
type. Total storage size in bytes/%{label}/freeBytes
withlonginteger
type. Available storage bytes
/%{label}/totalBytes
Total storage size in bytes
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint is parametric and label
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/%{label}/freeBytes
Available storage bytes
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint is parametric and label
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.SystemInfo v0.1
Information about the system
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/serialNumber
withstring
type. The serial number of the system/partNumber
withstring
type. The part number of the system
/serialNumber
The serial number of the system
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
/partNumber
The part number of the system
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The value of the property cannot be unset.
io.edgehog.devicemanager.SystemStatus v0.1
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/systemStatus/availMemoryBytes
withlonginteger
type. Available memory (Bytes)/systemStatus/bootId
withstring
type. UUID representing the Boot Id/systemStatus/taskCount
withinteger
type. Number of running tasks or processes/systemStatus/uptimeMillis
withlonginteger
type. Get time in milliseconds since boot
/systemStatus/availMemoryBytes
Available memory (Bytes)
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/systemStatus/bootId
UUID representing the Boot Id
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/systemStatus/taskCount
Number of running tasks or processes
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/systemStatus/uptimeMillis
Get time in milliseconds since boot
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.WiFiScanResults v0.2
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/ap/channel
withinteger
type. The channel over which the client is communicating with the access point./ap/connected
withboolean
type. Identifies if the device is connected to this Access Point/ap/essid
withstring
type. Extended Service Set Identification of the current AP, empty string if the AP is hidden./ap/macAddress
withstring
type. Lower case mac address string formatted likede:ad:be:ff:11:22
./ap/rssi
withinteger
type. The current signal strength measured in dBm.
/ap/channel
The channel over which the client is communicating with the access point.
The channel represents one of the ranges into which the reference frequency is divided and it's identified by an integer number in the range 1 - 165, depending on the frequency itself and the region.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/ap/connected
Identifies if the device is connected to this Access Point
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/ap/essid
Extended Service Set Identification of the current AP, empty string if the AP is hidden.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/ap/macAddress
Lower case mac address string formatted like de:ad:be:ff:11:22
.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
/ap/rssi
The current signal strength measured in dBm.
This endpoint accepts values of type integer
: a signed 32 bit integer.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Astarte expects a valid timestamp to be attached each time data is produced. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 5184000 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.AvailableContainers v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{container_id}/status
withstring
type. Container status
/%{container_id}/status
Container status
Possible values [Received, Created, Running, Stopped]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and container_id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.apps.AvailableDeployments v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{deployment_id}/status
withstring
type. Status of the deployment
/%{deployment_id}/status
Status of the deployment
Possible values: [Stopped, Started]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and deployment_id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.apps.AvailableImages v0.1
Properties available for a specific Docker image on the device
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{image_id}/pulled
withboolean
type. Pulled image
/%{image_id}/pulled
Pulled image
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint is parametric and image_id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.apps.AvailableNetworks v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{network_id}/created
withboolean
type. Network was created
/%{network_id}/created
Network was created
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint is parametric and network_id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.apps.AvailableVolumes v0.1
About
This interface is of type properties
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/%{volume_id}/created
withboolean
type. Volume created
/%{volume_id}/created
Volume created
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint is parametric and volume_id
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
io.edgehog.devicemanager.apps.CreateContainerRequest v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/container/id
withstring
type. Create Container Request id/container/imageId
withstring
type. Container image id/container/networkIds
withstringarray
type. Container network ids/container/volumeIds
withstringarray
type. Container volume ids/container/image
withstring
type. Container image/container/hostname
withstring
type. Container hostname/container/restartPolicy
withstring
type. Container restart policy/container/env
withstringarray
type. Container environment/container/binds
withstringarray
type. Container binds/container/networkMode
withstring
type. Network mode used for this container./container/portBindings
withstringarray
type. Container port bindings/container/privileged
withboolean
type. Run privileged
/container/id
Create Container Request id
Unique id for the container.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/imageId
Container image id
The id of the image to use when creating the container.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/networkIds
Container network ids
The ids of the network to connect with the container.
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/volumeIds
Container volume ids
The ids of the volumes to mount on the container.
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/image
Container image
TODO: this will be remove (by only sending the image_id), when it will be supported on the device.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/hostname
Container hostname
The hostname to use for the container, as a valid RFC 1123 hostname.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/restartPolicy
Container restart policy
The behavior to apply when the container exits. Possible values are: ['', 'no', 'always' 'unless-stopped', 'on-failure']
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/env
Container environment
Array of KEY=value environment variables
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/binds
Container binds
A list of volume bindings for this container. Each volume binding is a string in one of these forms: host-src:container-dest[:options], or volume-name:container-dest[:options]. The container-dest must be an absolute path.
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/networkMode
Network mode used for this container.
Supported standard values are: bridge, host, none, and container:<name|id>. Any other value is taken as a custom network's name to which this container should connect to. If you are using a different container engine than docker, there could be other values.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/portBindings
Container port bindings
Array of ip:[host_port:]container_port[/protocol] | [hostPort:]containerPort[/protocol]. Protocol is TCP by default
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/container/privileged
Run privileged
Runs the exec process with extended privileges.
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.CreateDeploymentRequest v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/deployment/id
withstring
type. Create Deployment Request id/deployment/containers
withstringarray
type. Deployment containers
/deployment/id
Create Deployment Request id
Unique id for the deployment.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/deployment/containers
Deployment containers
Containers used by the deployment.
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.CreateImageRequest v0.1
Request to pull and create a container image.
The ttl of this datastream is short to keep the sensitive fields private.
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/image/id
withstring
type. Create Image Request id/image/reference
withstring
type. Image reference to be pulled/image/registryAuth
withstring
type. Image registry authentication header
/image/id
Create Image Request id
Unique id for the container image.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 600 seconds before it is erased from the database.
/image/reference
Image reference to be pulled
Name of the image to pull. It should be in the form [regitry-host[:port]/][image-repo/]image-name[:(tag|digest)]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 600 seconds before it is erased from the database.
/image/registryAuth
Image registry authentication header
Optional base64url-encoded JSON for the auth configuration to the registry. An empty string means the image is public and doesn't require authentication. See https://docs.docker.com/reference/api/engine/version/v1.43/#section/Authentication for more information.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 600 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.CreateNetworkRequest v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/network/id
withstring
type. Create Network Request id/network/driver
withstring
type. Network driver/network/internal
withboolean
type. Internal network/network/enableIpv6
withboolean
type. Enable IPv6/network/options
withstringarray
type. Network driver options
/network/id
Create Network Request id
Unique id for the container network.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/network/driver
Network driver
Name of the network driver plugin to use.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/network/internal
Internal network
Restrict external access to the network.
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/network/enableIpv6
Enable IPv6
Enable IPv6 on the network.
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/network/options
Network driver options
An array of key=value options to set for the driver.
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.CreateVolumeRequest v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/volume/id
withstring
type. Create Volume Request id/volume/driver
withstring
type. Volume driver name/volume/options
withstringarray
type. Volume driver options
/volume/id
Create Volume Request id
Unique id for the volume.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/volume/driver
Volume driver name
Name of the volume driver to use.
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/volume/options
Volume driver options
An array of key=value options to set for the driver.
This endpoint accepts values of type stringarray
: a list of values, represented as a JSON Array. Arrays can have up to 1024 items and each item must respect the limits of its scalar type.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when it has been received at least once by the recipient. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.DeploymentCommand v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an individual
aggregation.
Each mapping is treated as an independent value and is managed individually.
Mappings
The interface has the following mappings:
/%{deployment_id}/command
withstring
type. Deployment command
/%{deployment_id}/command
Deployment command
Possible values [Start, Stop, Delete]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and deployment_id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.DeploymentEvent v0.1
About
This interface is of type datastream
and is owned by the device
, meaning that it is the device which initiates the data flow.
Thanks to this type of interface, the device can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/%{deployment_id}/status
withstring
type. Deployment status/%{deployment_id}/message
withstring
type. Optional message for the event
/%{deployment_id}/status
Deployment status
Possible values: [Starting, Stopping, Updating, Deleting, Error]
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and deployment_id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/%{deployment_id}/message
Optional message for the event
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint is parametric and deployment_id
can be replaced with any valid string to send data on specialized paths.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.apps.DeploymentUpdate v0.1
About
This interface is of type datastream
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can send a mutable, ordered stream of data, with no concept of persistent state or synchronization.
Data gets sent with an object
aggregation.
Astarte expects the owner to send all of the interface's mappings at the same time, packed in a single message.
Mappings
The interface has the following mappings:
/deployment/from
withstring
type. Id of the deployment to update from/deployment/to
withstring
type. Id of the deployment to update to
/deployment/from
Id of the deployment to update from
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
/deployment/to
Id of the deployment to update to
This endpoint accepts values of type string
: an UTF-8 string, at most 65536 bytes long.
The endpoint has a specific configuration for how data is stored, transferred and indexed. Data is considered delivered when the transport successfully sends the data regardless of the outcome. Data is discarded if the transport is temporarily uncapable of delivering it. Delivered data is kept for 31556952 seconds before it is erased from the database.
io.edgehog.devicemanager.config.Telemetry v0.1
About
This interface is of type properties
and is owned by the server
, meaning that it is the server which initiates the data flow.
Thanks to this type of interface, the server can set a persistent, stateful, synchronized state with no concept of history or timestamping.
Mappings
The interface has the following mappings:
/request/%{interface_name}/enable
withboolean
type. Enable/Disable telemetry update. Unset returns to the previous state configured in the device./request/%{interface_name}/periodSeconds
withlonginteger
type. Set interval of period seconds between the end of the previous update and the start of the next one. Unset returns to the previous state configured in the device.
/request/%{interface_name}/enable
Enable/Disable telemetry update. Unset returns to the previous state configured in the device.
This endpoint accepts values of type boolean
: either true or false, adhering to JSON boolean type.
The endpoint is parametric and interface_name
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.
/request/%{interface_name}/periodSeconds
Set interval of period seconds between the end of the previous update and the start of the next one. Unset returns to the previous state configured in the device.
This endpoint accepts values of type longinteger
: a signed 64 bit integer (please note that longinteger is represented as a string by default in JSON-based APIs.).
The endpoint is parametric and interface_name
can be replaced with any valid string to send data on specialized paths.
The value of the property can be unset.