Ocean ECS

Detach Instances

Detach instances from your Ocean cluster.

put/ocean/aws/ecs/cluster/{oceanClusterId}/detachInstances

Parameters

#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref
#/paths/~1ocean~1aws~1k8s~1cluster~1%7BoceanClusterId%7D/get/parameters/1 — unresolved $ref

Request body

instancesToDetachstring[] required

Array of instance identifiers to be detached.

shouldTerminateInstancesboolean

Determines whether the detached EC2 instances should be terminated or not.

shouldDecrementTargetCapacityboolean

Determines whether the Ocean cluster's target capacity should be decremented.

Example request

{
  "instancesToDetach": [
    "i-0003a99ffb566f039",
    "i-0567a99ffb566f765"
  ],
  "shouldTerminateInstances": true
}