Click or drag to resize

IWsCommonSaveDevice Method

Using the method of Aruba WsCommon, you can save a device saveDeviceRequest

Namespace:  Aruba.Cloud.WsCommon
Assembly:  Aruba.Cloud.WsCommon (in Aruba.Cloud.WsCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SaveDevice(
	SaveDeviceRequest saveDeviceRequest
)

Parameters

saveDeviceRequest
Type: SaveDeviceRequest

Return Value

Type: WsResult
Examples
This is a c# call example:
private static void Test_WsCommon_SaveDevice()
{
using (var client = new WsCommon.WsCommonClient())
{
client.ClientCredentials.UserName.UserName = "ARU-0000";
client.ClientCredentials.UserName.Password = "0123456789";

var res = client.SaveDevice(new WsCommon.SaveDeviceRequest() { DeviceId = "21", OsType = "", OsVersion = "", Language = "", AppVer= "" });

if (res.Success)
{
Console.WriteLine("Success");
}
else
{
throw new Exception(res.ResultMessage);
}
}
Console.ReadLine();
}
This is an example of a response by SaveDevice:
SetReadNewsResponse: {
SetReadNewsResult: {
ExceptionInfo: [System.String],
ResultCode: 0,
ResultMessage: [System.String],
Success: true,
},
}
See Also