6#include <UserEvent.idl>
50 [unknown_fallback(
"UNKNOWN")]
187 int addLinkUnit(in
int linkId, in
string host, in
string login, in
string password, in
string newPassword);
213 int addLinkUnit2(in
int linkId, in
string host, in
string login, in
string password, in
string newPassword, in
boolean disableStrongPasswordReq);
292 int addCascadeLinkUnit(in
int linkId, in
int nodeIndex, in
string login, in
string password, in
boolean positionDependent);
JSON-RPC Cascade Manager.
constant int ERR_HOST_IN_USE
The specified host is already in use.
constant int ERR_LINK_UNIT_REFUSED
Remote device refused to become a link unit.
constant int ERR_LINK_UNIT_UNREACHABLE
Could not connect to the link device.
vector< Role > getSupportedRoles()
Check which cascading roles this unit supports.
constant int ERR_INVALID_PARAM
A parameter was invalid.
int setPrimaryUnitSettings(in PrimaryUnitSettings primaryUnitSettings)
Set settings for the primary unit.
Status getStatus()
Retrieve the full cascading status for this unit.
constant int ERR_FIRMWARE_VERSION_MISMATCH
The firmware versions between primary and link unit do not match.
int addLinkUnit2(in int linkId, in string host, in string login, in string password, in string newPassword, in boolean disableStrongPasswordReq)
Put a new link unit under this primary unit's control.
int addLinkUnit(in int linkId, in string host, in string login, in string password, in string newPassword)
Put a new link unit under this primary unit's control.
constant int ERR_LINK_UNIT_NOT_SUPPORTED
Link unit does not support cascading.
constant int ERR_LINK_UNIT_COMM_FAILED
Communication with the link unit failed.
PrimaryUnitSettings getPrimaryUnitSettings()
Retrieve settings for the primary unit.
int addLinkPortLinkUnit()
Add a neighbor that was discovered on the link port as link unit.
constant int ERR_LINK_UNIT_ACCESS_DENIED
Login to link device failed.
int requestLink(in string token)
Request to make this unit a link unit and put it under the remote primary unit's control.
constant int ERR_LINK_ID_IN_USE
The specified link ID is already used.
LinkPortStatus getLinkPortStatus()
Retrieve the current Link Port status.
constant int NO_ERROR
Operation successful, no error.
vector< LinkUnitType > getSupportedLinkUnitTypes()
Check which type of link units this unit supports.
constant int ERR_UNSUPPORTED_ON_PRIMARY_UNIT
Operation not allowed for a primary unit.
constant int ERR_UNSUPPORTED_ON_LINK_UNIT
Operation not allowed for a link unit.
constant int ERR_UNIT_BUSY
The unit could not respond because it was busy.
Role
JSON-RPC Cascade Role.
@ LINK_UNIT
Link unit under primary unit control.
@ STANDALONE
Standalone unit, not in cascade.
@ PRIMARY_UNIT
Primary unit controlling other devices.
void finalizeLink(in string token)
Finalize the link with this link unit.
constant int ERR_PASSWORD_POLICY
The given password did not meet the requirements.
constant int ERR_NOT_SUPPORTED
Operation not supported on this device.
void unlink()
Release this link unit from the remote primary unit's control.
LinkUnitStatus
Link Unit Communication Status.
@ FIRMWARE_UPDATE
This link unit is performing a firmware update.
@ FIRMWARE_MISMATCH
This link unit's firmware version does not match that of the primary unit.
@ ACCESS_DENIED
The link unit denies access.
@ OK
The link unit operates normally.
@ PENDING
The link unit becomes active after the next reboot.
@ UNKNOWN
The status of the link unit is unknown.
@ UNREACHABLE
The link unit is unreachable.
constant int ERR_PASSWORD_CHANGE_REQUIRED
The unit requires a password change.
int addCascadeLinkUnit(in int linkId, in int nodeIndex, in string login, in string password, in boolean positionDependent)
Can be called on a network cascade primary unit to add expansion units of the network cascade as link...
@ NETWORK
High-level linking via JSON-RPC API.
@ SECURE_SERIAL
Linking via encrypted serial bus (ScalePoint)
int releaseLinkUnit(in int linkId)
Release a link unit from this primary unit's control.
int addSecureSerialLinkUnit(in int linkId, in string installKey)
Add a serial link unit (ScalePoint Base).
Link Port Status changed.
LinkPortStatus oldStatus
Old Link Port status.
LinkPortStatus newStatus
New Link Port status.
boolean isLinkingConfirmationNeeded
true, if confirmation for linking via Link Port is needed
boolean isSupported
true, if Link Port is supported on this device
string connectedNeighborAddr
link-local IPv6 address of the currently connected neighbor, or empty
boolean isLinkDetected
true, if a link on the Link Port was detected
Event: A new link unit has been added.
LinkUnitType type
Link unit type.
string host
Host name, IP address or bus address.
Event: A link unit has been released.
string host
Host name, IP address or bus address.
LinkUnitType type
Link unit type.
Event: A link unit's communication status has changed.
LinkUnitStatus oldStatus
Previous communication status.
string host
Host name, IP address or bus address.
LinkUnitStatus newStatus
New communication status.
LinkUnitType type
Link unit type.
LinkUnitType type
Link unit type.
LinkUnitStatus status
Communication status.
string fwVersion
Firmware version of the link unit.
string host
Link unit host name, IP address or bus address.
Settings for primary unit.
string caCertChain
CA certificate chain that signs the link unit TLS certs.
boolean allowOffTimeRangeCerts
allow expired and not yet valid TLS certs
Event: This unit's role in the cascade has changed.
string primaryUnit
Primary unit IP address (if new role is link unit)
Role oldRole
Previous role before the change.
Role newRole
New role after the change.
string primaryUnit
The primary unit IP address (if role is link unit)
map< int, LinkUnit > linkUnits
The list of link units (if role is primary unit)
Role role
This unit's role in the JSON-RPC cascade.
Common base for all events.