GET /v1/rotation-statuses

Response

HTTP/1.1 200 OK
[ {
  "_self" : "https://seiso.example.com/v1/rotation-statuses/enabled",
  "key" : "enabled",
  "name" : "Enabled",
  "statusType" : {
    "_self" : "https://seiso.example.com/v1/status-types/success",
    "key" : "success",
    "name" : "Success"
  }
}, {
  "_self" : "https://seiso.example.com/v1/rotation-statuses/disabled",
  "key" : "disabled",
  "name" : "Disabled",
  "statusType" : {
    "_self" : "https://seiso.example.com/v1/status-types/warning",
    "key" : "warning",
    "name" : "Warning"
  }
},

...

]

GET /v1/rotation-statuses/:key

Response

HTTP/1.1 200 OK
{
  "_self" : "https://seiso.example.com/v1/rotation-statuses/enabled",
  "key" : "enabled",
  "name" : "Enabled",
  "statusType" : {
    "_self" : "https://seiso.example.com/v1/status-types/success",
    "key" : "success",
    "name" : "Success"
  }
}

PUT /v1/rotation-statuses/:key

Request

{
  "key" : "enabled",
  "name" : "Enabled",
  "statusType" : {
    "key" : "success"
  }
}

Response

For creates:

HTTP/1.1 201 Created

For updates:

HTTP/1.1 204 No Content

DELETE /v1/rotation-statuses/:key

Response

HTTP/1.1 204 No Content