Description: Retrieve server statuses by server Guid
URL: http://{your-server-url}/api/v1/core/servers/{serverguid}/statuses
Method: GET
Token Required: True
content-type: application/json or content-type: application/xml
token: {token}
currentaccountid: {accountid - optional and default value is user's own account}
Portal Administrator, Account Administrator, Account Owner
Type: Nexus.AppSpace.Service.Contract.Model.Enums.Rights.Rights
Right | Require |
---|---|
Account_Owner | Yes |
Parameter | Type | Nullable | Description |
---|---|---|---|
statustypes | Nexus.AppSpace.Service.Contract.Model.Enums.Server.ServerType | True | Available value: smarthub, comma separated values, eg. statustypes=smarthub |
starttime | DateTime | True | return items with starttime >= value. format: dd/MM/yyyy HH:mm:ss, eg. starttime=10/03/2014 01:01:01 |
endtime | DateTime | True | return items with endtime <= value. format: dd/MM/yyyy HH:mm:ss, eg. endtime=10/05/2014 01:01:01 |
sort | string | True | sorting fields: id. Comma seperated values, unary negative to imply descending sort order, e.g. sort=-id |
page | int | True | page number |
rpp | int | True | records per page, default = 50, max = 500 |
guids | Guid[] | True | status guids, comma separated values, eg. guids=xxxx-xxxx-xxxx-xxxx,xxxx-xxxx-xxxx-xxxx |
Example: http://{your-server-url}/api/v1/core/servers/{serverguid}/statuses?sort=string&page=100&rpp=100
Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Server.ServerResponse
Parameter | Type | Comment |
---|---|---|
Response.ServerStatuses | Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Servers.ServerStatus[] | Server Object only return server's Guid and Name |
Response.CurrentPage | int | |
Response.TotalPages | int | |
Response.TotalCount | int | |
Response.Rpp | int |
Field | Name | Values |
---|---|---|
Type | Nexus.AppSpace.Service.Contract.Model.Enums.Server.ServerType | SmartHub = 0, Undefined = 1 |
<ServerResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.Server" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage> <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages"> <Error> <Code>String</Code> <Message>String</Message> <StackTrace>String</StackTrace> </Error> </Errors> <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status> <CurrentPage>123</CurrentPage> <Rpp>123</Rpp> <ServerStatuses xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.v1.Servers"> <a:ServerStatus> <a:EndTime>2014-06-17T16:58:36.872342Z</a:EndTime> <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid> <a:Id>123</a:Id> <a:Server> <a:AccountId>123</a:AccountId> <a:CreatedDate>2014-06-17T16:58:36.872342Z</a:CreatedDate> <a:Description>String</a:Description> <a:Guid>11111111-1111-1111-1111-111111111111</a:Guid> <a:IP>String</a:IP> <a:Id>123</a:Id> <a:LastUpdated>2014-06-17T16:58:36.872342Z</a:LastUpdated> <a:MetaData xmlns:b="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO"> <b:KeyValuePair> <b:Key>String</b:Key> <b:Value>String</b:Value> </b:KeyValuePair> </a:MetaData> <a:Name>String</a:Name> <a:Priority>123</a:Priority> <a:Provider>String</a:Provider> <a:Type>Undefined</a:Type> </a:Server> <a:StartTime>2014-06-17T16:58:36.872342Z</a:StartTime> <a:Status>Communication_Lost</a:Status> </a:ServerStatus> </ServerStatuses> <TotalCount>123</TotalCount> <TotalPages>123</TotalPages> </ServerResponse>
{ "DebugMessage":"String", "Errors":[ { "Code":"String", "Message":"String", "StackTrace":"String" } ], "Status":1, "CurrentPage":123, "Rpp":123, "ServerStatuses":[ { "EndTime":"\/Date(1403024316872)\/", "Guid":"11111111-1111-1111-1111-111111111111", "Id":123, "Server":{ "AccountId":123, "CreatedDate":"\/Date(1403024316872)\/", "Description":"String", "Guid":"11111111-1111-1111-1111-111111111111", "IP":"String", "Id":123, "LastUpdated":"\/Date(1403024316872)\/", "MetaData":[ { "Key":"String", "Value":"String" } ], "Name":"String", "Priority":123, "Provider":"String", "Type":1 }, "StartTime":"\/Date(1403024316872)\/", "Status":3 } ], "TotalCount":123, "TotalPages":123 }