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

Describe a specific listener

Parameter Type Description
LISTENER_ID * String

The listener id you want to get

Example: ls-12345
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": "8080",
      "tlsConfig": {
        "minVersion": "TLS10",
        "maxVersion": "TLS12",
        "sessionTicketsDisabled": true,
        "preferServerCipherSuites": true,
        "insecureSkipVerify": false,
        "cipherSuites": [
          "TLS_RSA_WITH_AES_256_CBC_SHA",
          "TLS_RSA_WITH_AES_128_CBC_SHA256"
        ],
        "certificateIds": []
      },
      "tags": [
        {
          "key": "Environment",
          "value": "Production"
        }
      ]
    }
  ],
  "count": 1
}