GEThttps://api.spotinst.io/ocean/k8s/cluster/{OCEAN_ID}/controllerHeartbeat?accountId={ACCOUNT_ID}

Get Ocean cluster’s controller heartbeat status.

The response would return the heartbeat status and last heartbeat timestamp.

URL Parameters

Parameter Type Description
OCEAN_ID * String

The Ocean cluster ID you want to query

Example: o-1234
ACCOUNT_ID * String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

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

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "714ffda4-3504-4a5b-a1de-36c93e71abba",
    "url": "ocean/k8s/cluster/o-1234/controllerHeartbeat?accountId=act-1234xyz",
    "method": "GET",
    "timestamp": "2019-11-24T16:33:00.746Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:ocean:k8s:cluster:controllerHeartbeat",
    "items": [{
          "status": "ACTIVE",
          "lastHeartbeat" :"2019-11-24T14:33:00.746Z"
     }],
    "count": 1
  }
}