v1
latestOpenAPI 3.0.02026-08-0645003.8 MBAccounts
List Accounts
Get a list of Spot accounts in your organization. When used without any parameters, the provided token must have Organization Admin permissions and the output will contain all the Organization's accounts. Note In case you want to list all the accounts associated with Organization you can use the below request URL without the cloudAccountId parameter, https://api.spotinst.io/setup/account
get/setup/account
Query parameters
cloudAccountIdstring
Will list only the Spot accounts connected to the specified account ID.
Response
Get Accounts Response
Example response
{
"request": {
"id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
"url": "/setup/account?cloudAccountId=123456789",
"method": "GET",
"timestamp": "2018-11-19T13:49:11.911Z"
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"kind": "spotinst:setup:account",
"items": [
{
"accountId": "act-57765123",
"organizationId": 606079861123,
"name": "test",
"providerExternalId": 123456789
},
{
"accountId": "act-57765123",
"organizationId": 606079861123,
"name": "prod",
"providerExternalId": 123456789
}
],
"count": 2
}
}