Gets information about the licenses purchased. Using the method AvailableAddonLicense() of Aruba WsEndUser, you can get detailed information on licenses purchased by the user

Namespace: Aruba.Cloud.WsLicense
Assembly: Aruba.Cloud.WsLicense (in Aruba.Cloud.WsLicense.dll)

<OperationContract()> _ 
Function GetAvailableLicenses() As WsResult(Of AvailablePleskLicense[])
This language is not supported or no code example is available.
[OperationContract()] 
WsResult<AvailablePleskLicense[]> GetAvailableLicenses()
This language is not supported or no code example is available.
[OperationContract()] 
 
WsResult<array< AvailablePleskLicense^ >^>^ GetAvailableLicenses()
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Return Value

The method returns an object of class WsResult<AvailablePleskLicense[]> containing detailed information on licenses purchased with licenses Addon compatible. The method can also be called by Anonymus user. For further details on the information returned by the method see the class definition WsResult, AvailablePleskLicense, and AvailableAddonPleskLicense.
The following example describes a method, called GetAvailableLicense(), which uses a method GetAvailableLicenses() from Aruba WsEndUser, to obtain license information at affordable prices..
 
private AvailablePleskLicense[] GetAvailableLicenses() 

try 

// makes the call to the method GetAvailableLicense,  
// obtaining an object WsResult<AvailablePleskLicense[]> 
 
WsResultOfArrayOfAvailableLicense result = client.GetAvailableLicense(); 
 
if (!result.Success) 

throw new ApplicationException( 
String.Format("An error has occurred while invoking GetAvailableLicense(). {0}", result.ResultMessage)); 

 
return result.Value; 

catch (Exception ex) 

// raises the error 
throw new ApplicationException( 
String.Format("An error has occurred while getting available license information {0}", ex.Message));