latestOpenAPI 3.0.02026-08-2045003.8 MB

72813baf8d47

Ocean ECS

Import Cluster

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.

post/ocean/aws/ecs/cluster/{EcsClusterName}/import

Path parameters

EcsClusterNamestring required

ECS Cluster name

Parameters

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

Request body

regionstring required

The region that the ECS cluster is running at.

namestring

The name for the new Ocean cluster object. <br> If the name is not provided, the default will be Ocean_{EcsClusterName}

instanceIdstring

Indicate the container instance id that the configuration will be taken from. This is an optional field

Example request

{
  "region": "us-east-1",
  "name": "oceanName",
  "instanceId": "i-123456789abcdefgh"
}