GEThttps://api.spotinst.io/events/notification/accountPolicy?accountId={ACCOUNT_ID}

Get the account notification policy

Parameter Type Description
ACCOUNT_ID * String

Your Spotinst accountId associated with your token

Example: act-123abc
Request

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

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "accountPolicy": {
    "emailPolicy": {
      "statements": [
        {
          "category": "Elastigroup Errors",
          "subCategory": "Launch instances failures",
          "isEnabled": true,
          "applyOnFutureResources": false,
          "allowedResources": [
            {
              "id": "sig-1234"
            }
          ],
          "deniedResources": [
            {
              "id": "sig-5678"
            },
            {
              "id": "sig-9999"
            }
          ]
        },
        {
          "category": "Elastigroup Errors",
          "subCategory": "Invalid Target",
          "isEnabled": true,
          "applyOnFutureResources": true,
          "allowedResources": [
            {
              "id": "sig-5678"
            }
          ],
          "deniedResources": [
            {
              "id": "sig-1234"
            },
            {
              "id": "sig-9999"
            }
          ]
        }
      ]
    },
    "slackPolicy": {
      "statements": [
        {
          "category": "Elastigroup Errors",
          "subCategory": "Launch instances failures",
          "isEnabled": false,
          "applyOnFutureResources": false,
          "allowedResources": [],
          "deniedResources": []
        }
      ]
    }
  }
}