# Configuration ## Méthodes ### Configuration.CreateAndDownloadBackup ADMIN Create a backup of the current configuration and generate a download entry for the dedicated transfer connection. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | | `downloadId` | `String` | | | `fileName` | `String` | | | `size` | `Int` | | --- ### Configuration.CreateBackup ADMIN Create a backup of the current configuration. It will be stored in the configured destination directory. Also the maxCout configuration will be considered. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteBackupFile ADMIN Delete an existing configuration backup file. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `fileName` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteMqttPolicy ADMIN Delete a MQTT policy from the broker. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `clientId` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteMqttServerConfiguration ADMIN Delete a MQTT Server interface of the server. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteTcpServerConfiguration ADMIN Delete a TCP interface of the server. Note: if you are deleting the configuration for the interface you are currently connected to, the connection will be dropped. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteTunnelProxyServerConfiguration ADMIN Delete a Tunnel Proxy Server interface of the server. Note: if you are deleting the configuration for the interface you are currently connected to, the connection will be dropped. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteWebServerConfiguration ADMIN Delete a WebServer interface of the server. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DeleteWebSocketServerConfiguration ADMIN Delete a WebSocket Server interface of the server. Note: if you are deleting the configuration for the interface you are currently connected to, the connection will be dropped. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.DownloadBackupFile ADMIN Generate a download entry for an existing configuration backup file. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `fileName` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | | `downloadId` | `String` | optionnel | | `fileName` | `String` | optionnel | | `size` | `Int` | optionnel | --- ### Configuration.GetAvailableLanguages PUBLIC Returns a list of locale codes available for the server. i.e. en_US, de_AT **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `languages` | `String`[] | | --- ### Configuration.GetBackupFiles ADMIN Get the list of configuration backup files from the configured destination directory. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `backupFiles` | [BackupFile](../types.md#backupfile)[] | | --- ### Configuration.GetConfigurations PUBLIC Get all configuration parameters of the server. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `backupConfigurations` | `{'autoBackupEnabled': 'Bool', 'autoBackupInterval': 'Int', 'destinationDirectory': 'String', 'maxCount': 'Uint'}` | | | `basicConfiguration` | `{'d:language': 'String', 'd:location': {'latitude': 'Double', 'longitude': 'Double', 'name': 'String'}, 'd:serverTime': 'Uint', 'd:timeZone': 'String', 'debugServerEnabled': 'Bool', 'serverName': 'String', 'serverUuid': 'Uuid'}` | | | `mqttServerConfigurations` | [ServerConfiguration](../types.md#serverconfiguration)[] | | | `tcpServerConfigurations` | [ServerConfiguration](../types.md#serverconfiguration)[] | | | `tunnelProxyServerConfigurations` | [TunnelProxyServerConfiguration](../types.md#tunnelproxyserverconfiguration)[] | | | `webServerConfigurations` | [WebServerConfiguration](../types.md#webserverconfiguration)[] | | | `webSocketServerConfigurations` | [ServerConfiguration](../types.md#serverconfiguration)[] | | --- ### Configuration.GetMqttPolicies ADMIN Get all MQTT broker policies. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `mqttPolicies` | [MqttPolicy](../types.md#mqttpolicy)[] | | --- ### Configuration.GetMqttServerConfigurations ADMIN Get all MQTT Server configurations. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `mqttServerConfigurations` | [ServerConfiguration](../types.md#serverconfiguration)[] | | --- ### Configuration.GetTimeZones PUBLIC Get the list of available timezones. **Paramètres :** _Aucun paramètre._ **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `timeZones` | `String`[] | | --- ### Configuration.RestoreBackupFile ADMIN Restore an existing configuration backup file. Clients should warn the user before calling this method because the current configuration data will be wiped, the server will restart immediately afterwards and it will come back up using the restored backup. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `fileName` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetBackupConfiguration ADMIN Set the backup configuration. The destination directory is the location where the archives will be saved, the maxCount is the number of backups which will be kept. If maxCount is 0, all backups will be kept. The autoBackupEnabled property controls periodic configuration backups and autoBackupInterval defines the interval in hours. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `autoBackupEnabled` | `Bool` | | | `autoBackupInterval` | `Int` | | | `destinationDirectory` | `String` | | | `maxCount` | `Uint` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetDebugServerEnabled ADMIN Enable or disable the debug server. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `enabled` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetLanguage ADMIN Sets the server language to the given language. See also: "GetAvailableLanguages" **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `language` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetLocation ADMIN Sets the server location. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `location` | `{'latitude': 'Double', 'longitude': 'Double', 'name': 'String'}` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetMqttPolicy ADMIN Configure a MQTT broker policy. If the ID is an existing one, the existing policy will be modified, otherwise a new one will be added. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `policy` | [MqttPolicy](../types.md#mqttpolicy) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetMqttServerConfiguration ADMIN Configure a MQTT Server interface on the MQTT broker. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Setting authenticationEnabled to true will require MQTT clients to use credentials set in the MQTT broker policies. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `configuration` | [ServerConfiguration](../types.md#serverconfiguration) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetServerName ADMIN Set the name of the server. Default is nymea. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `serverName` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetTcpServerConfiguration ADMIN Configure a TCP interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Note: if you are changing the configuration for the interface you are currently connected to, the connection will be dropped. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `configuration` | [ServerConfiguration](../types.md#serverconfiguration) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetTimeZone ADMIN Set the time zone of the server. See also: "GetTimeZones" **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `timeZone` | `String` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetTunnelProxyServerConfiguration ADMIN Configure a Tunnel Proxy Server interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Note: if you are changing the configuration for the interface you are currently connected to, the connection will be dropped. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `configuration` | [TunnelProxyServerConfiguration](../types.md#tunnelproxyserverconfiguration) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetWebServerConfiguration ADMIN Configure a WebServer interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `configuration` | [WebServerConfiguration](../types.md#webserverconfiguration) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.SetWebSocketServerConfiguration ADMIN Configure a WebSocket Server interface of the server. If the ID is an existing one, the existing config will be modified, otherwise a new one will be added. Note: if you are changing the configuration for the interface you are currently connected to, the connection will be dropped. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `configuration` | [ServerConfiguration](../types.md#serverconfiguration) | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | --- ### Configuration.UploadAndRestoreBackup ADMIN Create an upload session for a configuration backup archive. The uploaded file will be stored temporarily under /tmp, the current configuration will be wiped after the upload finishes and the server will restart immediately using the restored backup. Clients should warn the user before calling this method because all current configuration data will be lost. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `fileName` | `String` | | | `size` | `Int` | | **Retour :** | Champ | Type | Notes | | --- | --- | --- | | `configurationError` | [ConfigurationError](../types.md#configurationerror) | | | `fileName` | `String` | optionnel | | `size` | `Int` | optionnel | | `transferId` | `String` | optionnel | | `transferToken` | `String` | optionnel | --- ## Notifications ### Configuration.BackupConfigurationChanged Emitted whenever the backup configuration changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `autoBackupEnabled` | `Bool` | | | `autoBackupInterval` | `Int` | | | `destinationDirectory` | `String` | | | `maxCount` | `Uint` | | --- ### Configuration.BackupFilesChanged Emitted whenever the list of backup files changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `backupFiles` | [BackupFile](../types.md#backupfile)[] | | --- ### Configuration.BasicConfigurationChanged Emitted whenever the basic configuration of this server changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `basicConfiguration` | `{'d:language': 'String', 'd:location': {'latitude': 'Double', 'longitude': 'Double', 'name': 'String'}, 'd:serverTime': 'Uint', 'd:timeZone': 'String', 'debugServerEnabled': 'Bool', 'serverName': 'String', 'serverUuid': 'Uuid'}` | | --- ### Configuration.MqttPolicyChanged Emitted whenever a MQTT broker policy is changed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `policy` | [MqttPolicy](../types.md#mqttpolicy) | | --- ### Configuration.MqttPolicyRemoved Emitted whenever a MQTT broker policy is removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `clientId` | `String` | | --- ### Configuration.MqttServerConfigurationChanged Emitted whenever the MQTT broker configuration is changed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `mqttServerConfiguration` | [ServerConfiguration](../types.md#serverconfiguration) | | --- ### Configuration.MqttServerConfigurationRemoved Emitted whenever a MQTT server configuration is removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | --- ### Configuration.TcpServerConfigurationChanged Emitted whenever the TCP server configuration changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `tcpServerConfiguration` | [ServerConfiguration](../types.md#serverconfiguration) | | --- ### Configuration.TcpServerConfigurationRemoved Emitted whenever a TCP server configuration is removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | --- ### Configuration.TunnelProxyServerConfigurationChanged Emitted whenever the tunnel proxy server configuration changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `tunnelProxyServerConfiguration` | [TunnelProxyServerConfiguration](../types.md#tunnelproxyserverconfiguration) | | --- ### Configuration.TunnelProxyServerConfigurationRemoved Emitted whenever a tunnel proxy server configuration is removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | --- ### Configuration.WebServerConfigurationChanged Emitted whenever the web server configuration changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `webServerConfiguration` | [WebServerConfiguration](../types.md#webserverconfiguration) | | --- ### Configuration.WebServerConfigurationRemoved Emitted whenever a Web server configuration is removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | --- ### Configuration.WebSocketServerConfigurationChanged Emitted whenever the web socket server configuration changes. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `webSocketServerConfiguration` | [ServerConfiguration](../types.md#serverconfiguration) | | --- ### Configuration.WebSocketServerConfigurationRemoved Emitted whenever a WebSocket server configuration is removed. **Paramètres :** | Champ | Type | Notes | | --- | --- | --- | | `id` | `String` | | ---