fbpx
GEThttps://api.spotinst.io/spectrum/metrics/action?accountId={ACCOUNT_ID}

List all the Spectrum actions present in your account.

URL Parameters

Parameter Type Description
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-12345
Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "aa644e2c-ca60-492f-bb86-8b8b8a168152",
    "url": "/spectrum/metrics/action?accountId=act-123456",
    "method": "GET",
    "timestamp": "2018-07-02T17:49:46.941Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:spectrum:action",
    "items": [
      {
        "id": "ac-123bf6faa4b1",
        "enabled": true,
        "name": "testEmailAction",
        "type": "EMAIL",
        "params": {
          "email": "test@spotinst.com"
        },
        "updatedAt": "2018-06-30T02:21:19.000Z",
        "createdAt": "2018-06-30T02:21:19.000Z"
      },
      {
        "id": "ac-f23ec35c78cd",
        "enabled": true,
        "name": "testEmailAction2",
        "type": "EMAIL",
        "params": {
          "email": "test2@spotinst.com"
        },
        "updatedAt": "2018-06-30T01:39:58.000Z",
        "createdAt": "2018-06-30T01:39:58.000Z"
      }
    ],
    "count": 2
  }
}