Monitoring/Checks

From Hostway API Documentation
Jump to: navigation, search

Contents

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

This API call is deprecated!

Get list of active Monitoring checks

Result

JSON

{
    "list": [
        {
            "status": "ok",
            "lastCheck": 0,
            "enabled": true,
            "details": "http://{server-name}/accounts/{accountId}/dedicatedServers/{dedicatedServerId}/ipAddresses/{ipAddress}/monitoring/port/{checkId}"
        },
        {
            "status": "error",
            "lastCheck": 0,
            "enabled": true,
            "details": "http://{server-name}/accounts/{accountId}/dedicatedServers/{dedicatedServerId}/ipAddresses/{ipAddress}/monitoring/ping/{checkId}"
        },
        {
            "status": "unknown",
            "lastCheck": 0,
            "enabled": true,
            "details": "http://{server-name}/accounts/{accountId}/dedicatedServers/{dedicatedServerId}/ipAddresses/{ipAddress}/monitoring/cpu/{checkId}"
        }
    ], 
    "links": [
        {
            "href": "http://{server-name}/accounts/{accountId}/dedicatedServers/{dedicatedServerId}/ipAddresses/{ipAddress}/monitoring/checks/",
            "rel": "self"
        }
    ]
}


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/checks

- Response:

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

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

- Response:

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

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

- Response:

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