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

Request

  • Base URL
    https://api.spotinst.io
  • URL
    https://api.spotinst.io/ocean/aws/ecs/cluster/{EcsClusterName}/import
  • Auth
    HTTP bearer

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"
}

Changes

No recorded changes to this operation across all 12 revisions of this API.