---
title: "Import Cluster"
method: POST
path: "/ocean/aws/ecs/cluster/{EcsClusterName}/import"
tags: ["Ocean ECS"]
---

# Import Cluster

`POST /ocean/aws/ecs/cluster/{EcsClusterName}/import`

Create Ocean cluster object from an existing ECS cluster with at least one container instance to be used as input for create cluster.<br> Import the configuration from the latest instance id launched with in the cluster (out of the first batch of 100 instances ECS returns).<br> **This route will not register the ECS cluster to Ocean.**

## Path parameters

- `EcsClusterName` string, required

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref

## Request body

- object
  - `region` string, required — The region that the ECS cluster is running at.
  - `name` string — The name for the new Ocean cluster object. <br> If the name is not provided, the default will be *Ocean_{EcsClusterName}*
  - `instanceId` string — Indicate the container instance id that the configuration will be taken from. This is an optional field

## 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)
