fbpx
PUThttps://api.spotinst.io/loadBalancer/balancer/{BALANCER_ID}?accountId={ACCOUNT_ID}

Update one or more parameters in your load balancer. Use the balancer Json in the body to update the balancer. Only the specified fields will be affected

URL Parameters

Parameter Type Description
BALANCER_ID * String

The balancer id you want to update

Example: lb-12345
ACCOUNT_ID String

Account ID from Spotinst Console

Example: act-12345
Request

Headers
{
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "balancer": {
    "timeouts": {
      "draining": 360,
      "idle": 30
    }
  }
}

Body Attributes


  • balancer.timeout.draining Integer
    The time for the load balancer to keep connections alive before reporting the target as de-registered, in seconds (range: 1 - 3600).
  • balancer.timeout.idle Integer
    The idle timeout value, in seconds. (range: 1 - 3600).
Response - 200

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