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

List all aliases

URL Parameters

Parameter Type Description
ENVIRONMENT_ID * String

The environment ID

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" : "fna-123",
	  "environmentId" : "env-123",
 	  "host" : "google.com"
    } 
  ]
}