fbpx
GEThttps://api.spotinst.io/events/subscription/{SUBSCRIPTION_ID}?accountId={ACCOUNT_ID}

List a specific notification and its information

Parameter Type Description
SUBSCRIPTION_ID * String

The subscription you want to update

Example: sis-123456
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

Headers
{ 
  "Authorization": "Bearer ${token}"
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "7d54311a-f011-448e-998b-31b75f274428",
    "url": "/events/subscription/sis-123456",
    "method": "GET",
    "timestamp": "2015-08-04T12:31:26.567Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:subscription",
    "items": [
      {
        "id": "sis-123456",
        "resourceId": "sig-5cf38a24",
        "protocol": "http",
        "endpoint": "http://localhost:5000",
        "eventType": "AWS_EC2_INSTANCE_TERMINIATED",
        "updatedAt": "2015-08-04T12:31:26.000Z",
        "createdAt": "2015-08-04T12:31:26.000Z"
      }
    ],
    "count": 1
  }
}