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

Get the configurations for all Ocean cluster in the specified account.

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Response - 200

Headers
{
  "Authorization": "Bearer ${token}",
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
    "request": {
        "id": "e124b9e7-7de9-4247-9f36-e18358b0cc9a",
        "url": "/ocean/aws/ecs/cluster?accountId=act-7012345f",
        "method": "GET",
        "timestamp": "2019-06-17T11:36:08.689Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:ecs",
        "items": [
            {
                "id": "o-89693f32",
                "name": "ecs-ocean-orfrom",
                "clusterName": "orfromEnvironment1",
                "region": "us-west-2",
                "groupId": "oesg-6215c106",
                "capacity": {
                    "minimum": 0,
                    "maximum": 1000,
                    "target": 0
                },
                "strategy": {},
                "compute": {
                    "subnetIds": [
                        "subnet-79da021e"
                    ],
                    "launchSpecification": {
                        "securityGroupIds": [
                            "sg-0ded3a2980208c30c"
                        ]
                    }
                },
                "createdAt": "2019-06-10T07:22:03.000Z",
                "updatedAt": "2019-06-10T07:22:03.000Z"
            },
            {
                "id": "o-b0468de2",
                "name": "uri-1",
                "clusterName": "orfromEnvironment_Batch_852arr670a-aa73-3d5sssd-9576-147a26d43401",
                "autoScaler": {
                    "down": {}
                },
                "region": "us-west-2",
                "groupId": "oesg-e6fc1d84",
                "capacity": {
                    "minimum": 0,
                    "maximum": 0,
                    "target": 0
                },
                "strategy": {
                    "utilizeReservedInstances": true,
                    "fallbackToOd": false,
                    "spotPercentage": 70
                },
                "compute": {
                    "subnetIds": [
                        "subnet-79da021e"
                    ],
                    "instanceTypes": {
                        "blacklist": [
                            "c3.large"
                        ]
                    },
                    "launchSpecification": {
                        "securityGroupIds": [
                            "sg-0195f2ac3a6014a15"
                        ],
                        "iamInstanceProfile": {
                            "arn": "arn:aws:iam::842422002533:instance-profile/ecsInstanceRole"
                        },
                        "keyPair": "orfrom1",
                        "userData": "IyEvYmluL2Jhc2gKZWNobyBFQ1NfQ0xVU1RFUj1vcmZyb21FbnZpcm9ubWVudF9CYXRjaF84NTJhNjcwYS1hYTczLTNkNWQtOTU3Ni0xNDdhMjZkNDM0MDEgPj4gL2V0Yy9lY3MvZWNzLmNvbmZpZw=="
                    }
                },
                "createdAt": "2019-06-03T08:13:08.000Z",
                "updatedAt": "2019-06-10T15:06:13.000Z"
            }
        ],
        "count": 2
    }
}