fbpx
GEThttps://api.spotinst.io/loadBalancer/listener?accountId={ACCOUNT_ID}

Describe all the listeners and their full JSONs

URL Parameters

Parameter Type Description
ACCOUNT_ID String

Account ID from Spotinst console

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"
  },
  "kind": "spotinst:lb:listener",
  "items": [{
    "id": "ls-12345",
    "balancerId": "lb-12345",
    "protocol": "HTTP",
    "port":"80",
    "tlsConfig": null,
    "tags": [{
        "key": "Environment",
        "value": "Production"
    }]
  },
  {
    "id": "ls-67890",
    "balancerId": "lb-67890",
    "protocol": "HTTP",
    "port":"81",
    "tlsConfig": null,
    "tags": [{
        "key": "Environment",
        "value": "Production2"
     }]
  }
  ],
  "count": 2
}