6#include <UserEvent.idl>
14 constant
int NO_ERROR = 0;
15 constant
int ERR_INVALID_PARAM = 1;
16 constant
int ERR_UNSUPPORTED_ON_PRIMARY_UNIT = 2;
17 constant
int ERR_UNSUPPORTED_ON_LINK_UNIT = 3;
18 constant
int ERR_LINK_ID_IN_USE = 4;
19 constant
int ERR_HOST_IN_USE = 5;
20 constant
int ERR_LINK_UNIT_UNREACHABLE = 6;
21 constant
int ERR_LINK_UNIT_ACCESS_DENIED = 7;
22 constant
int ERR_LINK_UNIT_REFUSED = 8;
23 constant
int ERR_UNIT_BUSY = 9;
24 constant
int ERR_NOT_SUPPORTED = 10;
25 constant
int ERR_PASSWORD_CHANGE_REQUIRED = 11;
26 constant
int ERR_PASSWORD_POLICY = 12;
27 constant
int ERR_LINK_UNIT_COMM_FAILED = 13;
28 constant
int ERR_LINK_UNIT_NOT_SUPPORTED = 14;
29 constant
int ERR_FIRMWARE_VERSION_MISMATCH = 15;
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.
vector< Role > getSupportedRoles()
Check which cascading roles this unit supports.
int setPrimaryUnitSettings(in PrimaryUnitSettings primaryUnitSettings)
Set settings for the primary unit.
Status getStatus()
Retrieve the full cascading status for this unit.
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.
PrimaryUnitSettings getPrimaryUnitSettings()
Retrieve settings for the primary unit.
int addLinkPortLinkUnit()
Add a neighbor that was discovered on the link port as link unit.
int requestLink(in string token)
Request to make this unit a link unit and put it under the remote primary unit's control.
LinkPortStatus getLinkPortStatus()
Retrieve the current Link Port status.
vector< LinkUnitType > getSupportedLinkUnitTypes()
Check which type of link units this unit supports.
Role
JSON-RPC Cascade Role.
@ 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.
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.
@ UNKNOWN
The status of the link unit is unknown.
@ UNREACHABLE
The link unit is unreachable.
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.
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.