---
title: "Detach Load Balancers"
method: PUT
path: "/ocean/aws/k8s/cluster/{oceanClusterId}/loadBalancer/detach"
tags: ["Ocean AWS"]
---

# Detach Load Balancers

`PUT /ocean/aws/k8s/cluster/{oceanClusterId}/loadBalancer/detach`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/ocean/aws/k8s/cluster/{oceanClusterId}/loadBalancer/detach`
- Auth: HTTP bearer

Remove load balancers from the existing load balancers on the Ocean Cluster.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` (unresolved $ref)
- `#/paths/~1ocean~1aws~1ecs~1cluster~1%7BoceanClusterId%7D/get/parameters/1` (unresolved $ref)

## Request body

- object
  - `loadBalancers` Items[], required: Load balancers to remove from the Ocean cluster. (unresolved $ref)

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
