Click or drag to resize

IWsCommonGetNews Method

Using the method GetNews of Aruba WsCommon, you can get detailed information about news regarding the user. For example, if a server was created or shut down correctly.

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<NewsExtended[]> GetNews(
	GetNewsRequest getNewsRequest
)

Parameters

getNewsRequest
Type: GetNewsRequest

Return Value

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

var res = client.GetNews(new WsCommon.GetNewsRequest() { Language = "it" }).Value;

foreach (var x in res)
{
Console.WriteLine("NewsID: {0} - Priority: {1} - MessageText: {2}", x.NewsID, x.Priority, x.MessageText);
}
}
Console.ReadLine();
}
This is an example of a response by GetNews:
GetNewsResponse: {
GetNewsResult: {
ExceptionInfo: [System.String],
ResultCode: 0,
ResultMessage: [System.String],
Success: true,
Value: {
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server SMART - TEST è stato creato con successo.(IP: 10.254.1.155),
NewsID: 73385,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 10: 04.64,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server PRO - TEST è stato creato con successo(IP: 10.254.4.16),
NewsID: 73386,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 26: 53.197,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server SMART - TEST è stato arrestato con successo.,
NewsID: 73387,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 33: 11.93,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server TEST - PERSONAL - LICENS è stato rimosso con successo,
NewsID: 73388,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 35: 48.497,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server PRO - TEST è stato arrestato con successo,
NewsID: 73389,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 36: 09.437,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server TEST - LICENZE è stato arrestato con successo.,
NewsID: 73390,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 36: 25.483,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server TEST - LICENZE è stato rimosso con successo.,
NewsID: 73391,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 37: 14.44,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il reset della configurazione di reverse dns per l 'ip 10.254.1.189 è completato correttamente,
NewsID: 73392,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T11:37:42.003,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server TEST-LICENZE-BIS è stato rimosso con successo.,
NewsID: 73393,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T11:38:07.457,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il reset della configurazione di reverse dns per l' ip 10.254.2.242 è completato correttamente,
NewsID: 73394,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 38: 32.393,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server pro - disk è stato creato con successo(IP: 10.254.4.143),
NewsID: 73395,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 42: 26.183,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server SMART - TEST è stato rimosso con successo.,
NewsID: 73396,
Priority: High,
Sender: SystemEvent,
StartDate: 2019 - 02 - 05T11: 42: 29.217,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il reset della configurazione di reverse dns per l 'ip 10.254.1.155 è completato correttamente,
NewsID: 73397,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T11:42:54.607,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server PRO-TEST è stato rimosso con successo,
NewsID: 73398,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T11:43:48.047,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server pro-disk è stato arrestato con successo,
NewsID: 73399,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T11:50:56.033,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Esportazione HD0 (pro-disk) effettuata con successo,
NewsID: 73400,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T11:56:33.42,
NewsScope: Operation,
},
NewsExtended: {
Category: Success,
MessageText: Il Virtual Server test-smart è stato creato con successo. (IP: 10.254.1.103),
NewsID: 73401,
Priority: High,
Sender: SystemEvent,
StartDate: 2019-02-05T12:36:43.7,
NewsScope: Operation,
},
NewsExtended: {
Category: Alert,
MessageText: Test inserimento news da API,
NewsID: 30,
Priority: Medium,
Sender: Operator,
StartDate: 2019-01-31T00:00:00,
NewsScope: Operation,
},
NewsExtended: {
Category: Info,
MessageText: Test inserimento news da API solo per ARU,
NewsID: 31,
Priority: Medium,
Sender: Operator,
StartDate: 2019-01-31T00:00:00,
NewsScope: Operation,
},
},
},
}
See Also