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

Describe a specific Action

URL Parameters

Parameter Type Description
ACTION_ID String

The Action Id of metric you want to describe

Example: ac-123456
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": "897874fc-09ff-46c8-8252-7811f9313cd1",
        "url": "/spectrum/metrics/action/ac-899bf6faa4b1?accountId=act-123456",
        "method": "GET",
        "timestamp": "2018-07-02T19:40:13.295Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:spectrum:action",
        "items": [
            {
                "id": "ac-899bf6faa4b1",
                "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"
            }
        ],
        "count": 1
    }
}