GET /v1/health-statuses

Response

HTTP/1.1 200 OK
[ {
  "_self" : "https://seiso.example.com/v1/health-statuses/healthy",
  "key" : "healthy",
  "name" : "Healthy",
  "statusType" : {
    "_self" : "https://seiso.example.com/v1/status-types/success",
    "key" : "success",
    "name" : "Success"
  }
}, {
  "_self" : "https://seiso.example.com/v1/health-statuses/patch-needed",
  "key" : "patch-needed",
  "name" : "Patch Needed",
  "statusType" : {
    "_self" : "https://seiso.example.com/v1/status-types/info",
    "key" : "info",
    "name" : "Info"
  }
},

...

]

GET /v1/health-statuses/:key

Response

HTTP/1.1 200 OK
{
  "_self" : "https://seiso.example.com/v1/health-statuses/patch-needed",
  "key" : "patch-needed",
  "name" : "Patch Needed",
  "statusType" : {
    "_self" : "https://seiso.example.com/v1/status-types/info",
    "key" : "info",
    "name" : "Info"
  }
}

PUT /v1/health-statuses/:key

Request

{
  "key" : "patch-needed",
  "name" : "Patch Needed",
  "statusType" : {
    "key" : "warning"
  }
}

Response

For creates:

HTTP/1.1 201 Created

For updates:

HTTP/1.1 204 No Content

DELETE /v1/health-statuses/:key

Response

HTTP/1.1 204 No Content