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

Update one or more parameters in your listeners. Only the specified fields will be affected. For a full list of parameters you can update please checkout Listener/Create documentation

Parameter Type Description
LISTENER_ID * String

The listener id you want to update

Example: ls-12345
ACCOUNT_ID String

Account ID from Spotinst console

Example: act-12345
Request - Update Port

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "listener": {
    "port": "8080"
  }
}

Body Attributes


  • listener.port Integer
    The port on which the load balancer is listening.
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
    "status": {
        "code": 200,
        "message": "OK"
    }
}