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

Get a list of all HCS

Parameter Type Description
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": "b2e2f713-4405-4d2c-a915-2a4fec147c87",
    "url": "/healthCheck",
    "method": "GET",
    "timestamp": "2017-08-30T07:35:19.074Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:healthCheck",
    "items": [
      {
        "id": "hcs-1234567",
        "resourceId": "sig-1234567",
        "name": "PROD_HCS",
        "proxyAddress": "http://12.345.678.90",
        "proxyPort": 80,
        "check": {
          "protocol": "http",
          "port": 80,
          "endpoint": "index.html",
          "unhealthyThreshold": 2,
          "healthyThreshold": 10,
          "interval": 30,
          "timeout": 5
        }
      },
      {
        "id": "hcs-7654321",
        "resourceId": "sig-87654321",
        "name": "DEV_HCS",
        "proxyAddress": "http://09.876.543.21",
        "check": {
          "protocol": "http",
          "port": 80,
          "endpoint": "index.html",
          "unhealthyThreshold": 2,
          "healthyThreshold": 10,
          "interval": 30,
          "timeout": 5
        }
      }
    ],
    "count": 2
  }
}