fbpx
GEThttps://api.spotinst.io/healthCheck/{HEALTHCHECK_ID}?accountId={ACCOUNT_ID}

List the information of a particular HCS

URL Parameters

Parameter Type Description
HEALTHCHECK_ID * String

The HCS you want to get information for

Example: hcs-123
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{
    "Authorization": "Bearer ${token}",
    "Content-Type": "application/json"
}
Response - 200

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "fde39ec9-4bae-43cb-9ada-5d26b74231a0",
    "url": "/healthCheck/hcs-123546",
    "method": "GET",
    "timestamp": "2016-05-17T10:31:49.691Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:healthCheck",
    "items": [
      {
        "id": "hcs-123546",
        "resourceId": "sig-12345",
        "name": "Service-1-healthCheck",
        "proxyAddress": "51.22.125.47",
        "check": {
          "protocol": "http",
          "port": 80,
          "endpoint": "index.html",
          "unhealthyThreshold": 2,
          "healthyThreshold": 2,
          "interval": 30,
          "timeout": 60
        }
      }
    ],
    "count": 1
  }
}