Click or drag to resize

IWsEndUserGetTemplateLicenses Method

The method returns a list of active user-created custom templates. The case of a user with the Administrator role provides in output the status information for listing in TemplateSellingStatus

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult<PagedList<TemplateLicenseInfo>> GetTemplateLicenses(
	GetTemplateLicensesRequest req


Type: GetTemplateLicensesRequest

Return Value

Type: WsResultPagedListTemplateLicenseInfo
The following code shows how to call the method GetTemplateLicenses in C# language
private object GetTemplateLicenses()
  StringBuilder sb = new StringBuilder();

    var result = client.GetTemplateLicenses();

    if (result.Success)
        return result.Value;
      throw new ApplicationException(
String.Format("An error has occurred while invoking GetTemplateLicenses(). This is the inner exception: {0}", result.ResultMessage));
  catch (Exception ex)
    throw new ApplicationException(String.Format(
"An error has occurred while getting the list of available templateLicenses {0}", ex.Message));
The following code is a response example:
GetTemplateLicensesResponse: {
   GetTemplateLicensesResult: {
      ExceptionInfo: [System.String],
      ResultCode: 0,
      ResultMessage: [System.String],
      Success: true,
      Value: {
         TemplateLicenseInfo: {
            Description: LICENZA 5 CAL PRO VMW,
            IsPersistent: true,
            LicenseMode: Fixed,
            LicenseModeID: 0,
            MinValue: 1,
            ProductID: 618,
            TemplateLicenseID: 1,
            Unit: 1,
         TemplateLicenseInfo: {
            Description: Windows Server 2018,
            IsPersistent: false,
            LicenseMode: PerCPU,
            LicenseModeID: 0,
            MinValue: 1,
            ProductID: 621,
            TemplateLicenseID: 4,
            Unit: 2,
See Also