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

# Attach Load Balancers

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

Add new load balancers to 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` object[], required — Load balancers to add to the Ocean cluster.
    - `type` 'CLASSIC' | 'TARGET_GROUP', required — Type of load balancer to use.
    - `name` string — If the type is "CLASSIC", then a name is required. Otherwise, not allowed.
    - `arn` string — If the type is "TARGET_GROUP", then an ARN is required. Otherwise, not allowed.

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
