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

Describe a specific environment.

Parameter Type Description
ENVIRONMENT_ID * String

The environment ID you want to view.

Example: env-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": "1",
    "items": [{
        "id": "env-12345",
        "name": "testing",
        "applicationId": "app-5470a9fb",
        "preferences": {
           "locations": [
               "us-east"
           ],
           "providers": ["azure"]
        }
    }]
  }