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

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

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "f6547c63-0dc4-47d9-8f51-eb4ccc67d6e4",
        "url": "/ocean/aws/ecs/launchSpec/?oceanId=o-89693f32",
        "method": "GET",
        "timestamp": "2019-06-15T10:53:33.170Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:ecs",
        "items": [
            {
                "id": "ols-2da71323",
                "oceanId": "o-89693f32",
                "name": "launchS3",
                "imageId": "img1",
                "userData": "blabla",
                "securityGroupIds": [
                    "sg1",
                    "sg2"
                ],
                "createdAt": "2019-06-13T14:22:07.000Z",
                "updatedAt": "2019-06-14T10:46:39.000Z"
            },
            {
                "id": "ols-9bd1be93",
                "oceanId": "o-89693f32",
                "name": "mySpecLauncher",
                "imageId": "ecsOptimize",
                "userData": "dXNlcmJhc2g2NGVuY29kZWQ=",
                "securityGroupIds": [
                    "sg1",
                    "sg2",
                    "sg3"
                ],
                "iamInstanceProfile": {
                    "arn": "arn:aws:iam::842422002533:instance-profile"
                },
                "attributes": [
                    {
                        "key": "key1",
                        "value": "v1"
                    },
                    {
                        "key": "key2",
                        "value": "v2"
                    }
                ],
                "createdAt": "2019-06-15T10:48:38.000Z",
                "updatedAt": "2019-06-15T10:50:11.000Z"
            },
            {
                "id": "ols-e1d7c064",
                "oceanId": "o-89693f32",
                "name": "myLauncher",
                "imageId": "img2",
                "userData": "dXNlcmJhc2g2NGVuY29kZWQ=",
                "securityGroupIds": [
                    "group1",
                    "group3"
                ],
                "iamInstanceProfile": {
                    "arn": "arn:aws:iam::842422002533:instance-profile"
                },
                "attributes": [
                    {
                        "key": "keyer1",
                        "value": "v1"
                    },
                    {
                        "key": "k2"
                    }
                ],
                "createdAt": "2019-06-14T17:18:13.000Z",
                "updatedAt": "2019-06-14T17:18:13.000Z"
            }
        ],
        "count": 3
    }
}