GEThttps://api.spotinst.io/ocean/aws/ecs/cluster/{OCEAN_ID}/fargateMigration/serviceDiscovery?accountId={ACCOUNT_ID}

Get existing Fargate services in the ECS cluster.

URL Parameters

Parameter Type Description
OCEAN_ID * String

Ocean ECS cluster ID

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Request

Headers
Copied!
Downloaded!
{
  "Authorization": "Bearer ${token}",
  "Content-Type": "application/json"
}
Response - 200

Headers
Copied!
Downloaded!
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  },
  "kind": "spotinst:ocean:aws:ecs:fargateMigration:serviceDiscovery",
  "items": [
    {
      "ecsClusterName": "EcsTestCluster",
      "ecsClusterRegion": "us-east-2",
      "serviceNames": [
        "test_with_1",
        "test_without"
      ]
    }
  ],
  "count": 1
}