IWsEndUserGetTemplateLicenses Method |
Namespace: Aruba.Cloud.WsEndUser
[OperationContractAttribute] WsResult<PagedList<TemplateLicenseInfo>> GetTemplateLicenses( GetTemplateLicensesRequest req )
private object GetTemplateLicenses() { StringBuilder sb = new StringBuilder(); try { var result = client.GetTemplateLicenses(); if (result.Success) { return result.Value; } else { 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)); } }
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, }, }, }, }