fbpx
GEThttps://api.spotinst.io/setup/account?awsAccountId={AWS_ACCOUNT_ID}

Get a list of Spotinst accounts in your organization based on the connected AWS account id.

Parameter Type Description
awsAccountId String

List the Spotinst accounts connected to a specified AWS account Id.

Request

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

Headers
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "e2923755-80ec-4751-be1a-3b4b4400d1d1",
    "url": "/setup/account",
    "method": "GET",
    "timestamp": "2017-11-15T08:03:54.322Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:setup:account",
    "items": [
      {
        "accountId": "act-0b18f123",
        "organizationId": "606079861123",
        "name": "test",
        "createdAt": "2017-06-04T16:32:58.000Z"
      },
      {
        "accountId": "act-57765123",
        "organizationId": "606079861123",
        "name": "prod",
        "createdAt": "2017-04-16T09:58:24.000Z"
      }
    ],
    "count": 2
  }
}