Monitoring/Checks History

From Hostway API Documentation
Revision as of 07:18, 13 May 2015 by Mitko.georgiev (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

GET /accounts/account_id/dedicatedServers/dedicated_server_id/ipAddresses/ip_address/monitoring/events

This API call is deprecated!

Get history checks/events/ list

Result

JSON

{
  "events" : [ {
    "status" : "OK",
    "description" : "HTTP",
    "timestamp" : 1349962341,
    "id" : 6499684,
    "type" : "TCP",
    "port" : 80,
    "name" : "HTTP"
  }, {
    "status" : "ERROR",
    "description" : "HTTP",
    "timestamp" : 1349962332,
    "id" : 6499683,
    "type" : "TCP",
    "port" : 80,
    "name" : "HTTP"
  }, {
    "status" : "ERROR",
    "description" : "PING",
    "timestamp" : 1349962325,
    "id" : 6499682,
    "type" : "PING",
    "port" : 0,
    "name" : "PING"
  }, {
    "status" : "OK",
    "description" : "PING",
    "timestamp" : 1349962317,
    "id" : 6499681,
    "type" : "PING",
    "port" : 0,
    "name" : "PING"
  }, {
    "status" : "OK",
    "description" : "HTTP",
    "timestamp" : 1349962308,
    "id" : 6499680,
    "type" : "TCP",
    "port" : 80,
    "name" : "HTTP"
  }, {
    "status" : "ERROR",
    "description" : "HTTP",
    "timestamp" : 1349962297,
    "id" : 6499679,
    "type" : "TCP",
    "port" : 80,
    "name" : "HTTP"
  } ]
}


Response Codes

Success
OK (200)
Failure
Unauthorized (401) : This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
No Permission (403)
Not Found (404) : The resource requested is not found. Returned when either of account_id, dedicated_server_id or ip_address parameters do not exist.

Examples(errors)

GET /accounts/fake_account_id/dedicatedServers/dedicated_server_id_123/ipAddresses/11.22.33.44/monitoring/events

- Response:

Not Found (404):
{"itemNotFound": {"message": "/accounts/fake_account_id/dedicatedServers/dedicated_server_id_123/ipAddresses/11.22.33.44/monitoring/events", "code": 404, "details": ""}}

GET /accounts/account_id_123/dedicatedServers/fake_dedicated_server_id/ipAddresses/11.22.33.44/monitoring/events

- Response:

Not Found (404):
{"itemNotFound": {"message": "/accounts/account_id_123/dedicatedServers/fake_dedicated_server_id/ipAddresses/11.22.33.44/monitoring/events", "code": 404, "details": ""}}

GET /accounts/account_id_123/dedicatedServers/dedicated_server_id_123/ipAddresses/99.99.99.99/monitoring/events

- Response:

Not Found (404):
{"itemNotFound": {"message": "/accounts/account_id_123/dedicatedServers/dedicated_server_id_123/ipAddresses/99.99.99.99/monitoring/events", "code": 404, "details": ""}}
Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox