fbpx
GEThttps://api.spotinst.io/ocean/aws/ecs/cluster/import?groupId={GROUP_ID}&accountId={ACCOUNT_ID}

Upgrade an Elastigroup with ECS integration into Ocean for ECS cluster.

URL Parameters

ParameterTypeDescription
GROUP_ID * String

The Elastigroup ID to upgrade.

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
"kind": "spotinst:ocean:aws:ecs",
        "items": [
            {
                "id": "o-66010a12",
                "name": "Ocean::test-ecs-batch-1",
                "clusterName": "testEnvironment_Batch_852a670a-aa73-3d5d-9576-147a26d43401",
                "autoScaler": {
                    "isEnabled": true,
                    "isAutoConfig": true
                },
                "region": "us-west-2",
                "groupId": "sig-b6bb68fb",
                "strategy": {
                    "fallbackToOd": true,
                    "spotPercentage": 100,
                    "drainingTimeout": 120
                },
                "compute": {
                    "subnetIds": [
                        "subnet-79da021e",
                        "subnet-1ba25052",
                        "subnet-03b7ed5b"
                    ],
                    "instanceTypes": {
                        "whitelist": [
                            "c4.large",
                            "m5.large",
                            "m4.large",
                            "c3.large",
                            "c3.xlarge",
                            "c4.xlarge",
                            "m5.xlarge"
                        ]
                    },
                    "launchSpecification": {
                        "securityGroupIds": [
                            "sg-0195f2ac3a6014a15"
                        ],
                        "iamInstanceProfile": {
                            "arn": "arn:aws:iam::842422002533:instance-profile/ecsInstanceRole"
                        },
                        "keyPair": "keypair1",
                        "imageId": "ami-0c1f4871ebaae6d86",
                        "userData": "IyEvYmluL2Jhc2gKZWNobyBFQ1NfQ0xVU1RFUj1vcmZyb21FbnZpcm9ubWVudF9CYXRjaF84NTJhNjcwYS1hYTczLTNkNWQtOTU3Ni0xNDdhMjZkNDM0MDEgPj4gL2V0Yy9lY3MvZWNzLmNvbmZpZw==",
                        "tags": [
                            {
                                "tagKey": "Creator",
                                "tagValue": "orfrom"
                            },
                            {
                                "tagKey": "Protected",
                                "tagValue": "weekend"
                            }
                        ],
                        "monitoring": false,
                        "ebsOptimized": false
                    }
                },
                "createdAt": "2019-07-15T09:53:56.863Z",
                "updatedAt": "2019-07-15T09:53:56.863Z"
            }
        ]
}