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

URL Parameters

Parameter Type Description
OCEAN_LAUNCH_SPEC_ID * String

Ocean cluster launchSpec ID.

ACCOUNT_ID * String

The Spotinst accountId associated with your token.

Example: act-123abc
Response - 200

Body
Copied!
Downloaded!
{
    "request": {
        "id": "53688bc5-1007-47f5-8bf6-d37353a500a5",
        "url": "/ocean/aws/ecs/launchSpec/ols-9bd1be93",
        "method": "GET",
        "timestamp": "2019-06-15T10:52:35.212Z"
    },
    "response": {
        "status": {
            "code": 200,
            "message": "OK"
        },
        "kind": "spotinst:ocean:aws:ecs",
        "items": [
            {
                "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"
                    }
                ],
				"autoscale": {
                    "headrooms": [
                    {
                    "cpuPerUnit": 1024,
                    "memoryPerUnit": 512,
                    "numOfUnits": 2
                    }]
                },
                "blockDeviceMappings": [
            	   {
                   "deviceName": "/dev/xvda",
                   "ebs": {
                      "deleteOnTermination": false,
                      "encrypted": "false",
                      "iops": 1,
                      "kmsKeyId": "alias/aws/ebs",
                      "snapshotId": "snap-abcdefghi111110"
                      "dynamicVolumeSize": {
                         "baseSize": 10,
                         "resource": "CPU",
                         "sizePerResourceUnit": 1
            	         },
            	      "volumeType": "standard"
                      },
                    }
                ],
                "createdAt": "2019-06-15T10:48:38.000Z",
                "updatedAt": "2019-06-15T10:50:11.000Z"
            }
        ],
        "count": 1
    }
}