Gets a list of available ISO images. By the method GetIsos () of Aruba WsEndUser,
you can get a list of objects of class Iso representing the ISO images available
for the account specified at the time of authentication.
Namespace:
Aruba.Cloud.WsEndUser
Assembly:
Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
WsResult<IsoDetails[]> GetIsos()
<OperationContractAttribute>
Function GetIsos As WsResult(Of IsoDetails())
[OperationContractAttribute]
WsResult<array<IsoDetails^>^>^ GetIsos()
[<OperationContractAttribute>]
abstract GetIsos : unit -> WsResult<IsoDetails[]>
function GetIsos() : WsResult<IsoDetails[]>
Return Value
Type:
WsResultIsoDetails
The method returns an object WsResult<IsoDetails[]> containing the image information associated with the account.
Examples
In the following example describes a method, called TestGetIsos (), which via a method call GetIsos()
Aruba's WsEndUser, get a list of strings representing the reason why some ISO images virtual were invalid.
private static List<String> TestGetIsos(WsEndUserClient client)
{
List<String> listOfInvalidityReason = new List<String>();
try
{
WsResultOfArrayOfIsoDetails result = client.GetIsos();
if (result.Success)
{
IEnumerable<IsoDetails> listOfInvalidIso = result.Value.Where(p => p.InvalidityCode != 0);
foreach (IsoDetails iso in listOfInvalidIso)
listOfInvalidityReason.Add(iso.InvalidityReason);
}
}
catch (Exception ex)
{
throw new ApplicationException(
String.Format("An error has occurred while gathering virtual iso details. {0}", ex.Message));
}
return listOfInvalidityReason;
}
See Also