fbpx
GEThttps://api.spotinst.io/functions/environment?applicationId={APPLICATION_ID}&accountId={ACCOUNT_ID}

Describe all the environments and their full JSONs.

Parameter Type Description
APPLICATION_ID * String

Application ID.

Example: app-12345
ACCOUNT_ID String

The account ID.

Example: act-12345
Request

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

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "count": "2",
  "items": [{
    "id": "env-12345",
    "name": "testing",
    "applicationId": "app-12345",
    "locations": [
        "us-east"
    ],
    "providers": ["azure"]
    },
    {
      "id": "env-98765",
      "name": "production",
      "applicationId": "app-12345",
      "locations": [
          "us-east"
      ],
      "providers": ["azure"]
    }
  ]  
}