Click or drag to resize

IJsonPostWsEndUserGetIsos Method

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]
[WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
Stream GetIsos(
	JsonRequest request
)

Parameters

request
Type: Aruba.Cloud.WsEndUser.JsonJsonRequest

Return Value

Type: Stream
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