IServerLicences

class IServerLicences

Bases: ImpactCOMWrapperBase, Iterable

Description:

A collection of IServerLicence objects representing the licences installed on a Licence Server.

Remarks:

Introduced in Impact 7.0.0.10.

Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance

property address

Gets Address.

Description:

Gets the address of the Licence Server.

Remarks:

When multiple Licence Servers are configured use this property to determine the active Licence Server address used to communicate.

Returns:

The value of Address.

Return type:

address (str)

property count

Gets Count.

Description:

The number of items in this collection.

Returns:

The value of Count.

Return type:

count (int)

property port

Gets Port.

Description:

Gets the port number of the Licence Server.

Remarks:

When multiple Licence Servers are configured use this property to determine the active Licence Server port number used to communicate.

Returns:

The value of Port.

Return type:

port (int)

item(index)
Description:

Gets an IServerLicence object with a specified index, or Guid, or unique licence number.

Parameters:

index (any) – When Index is an integer between 1 and 999 the IServerLicence object by array index is returned. When Index is a string the IServerLicence with a matching Guid is returned. Guids should be specified in the format “{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}”. When Index is an integer between 10000001 and 999999999 the IServerLicence with a matching ID is returned. The Index should be a number representing the unique 5/6-digit Licence Server dongle id + unique 3-digit licence id. Specifies the name or index of the IServerLicence object to get.

Examples