GEThttps://api.spotinst.io/ocean/aws/k8s/launchSpec?oceanId={OCEAN_ID}&accountId={ACCOUNT_ID}

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spot accountId associated with your token.

Example: act-123abc
OCEAN_ID * String

Ocean cluster ID.

Response - 200

Body
Copied!
Downloaded!
{
  "request": {
    "id": "XXXXXXX-abce-XXXX-XXXX-XXX11111XXXX",
    "url": "/ocean/aws/k8s/launchSpec?accountId=XXXXXXXX",
    "method": "put",
    "timestamp": "2019-02-19T18:25:51.767Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:ocean:aws:k8s",
    "items": [
      {
        "id": "ols-123",
        "oceanId": "o-123",
        "blockDeviceMappings": [
          {
            "deviceName": "/dev/xvda",
            "ebs": {
              "deleteOnTermination": false,
              "encrypted": "false",
              "iops": 1,
              "kmsKeyId": "alias/aws/ebs",
              "snapshotId": "snap-abcdefghi111110",
              "volumeSize": 10,
              "volumeType": "standard"
            },
            "noDevice": "",
            "virtualName": ""
          }
        ],
        "labels": [
          {
            "key": "env",
            "value": "test"
          },
          {
            "key": "creator",
            "value": "test"
          }
        ],
        "taints": [
          {
            "key": "taintKey",
            "value": "taintValue",
            "effect": "NoSchedule"
          }
        ],
        "subnetIds": [
          "subnet-123",
          "subnet-456"
        ],
        "autoScale": {
          "headrooms": [
            {
              "cpuPerUnit": 1000,
              "memoryPerUnit": 2048,
              "gpuPerUnit": 0,
              "numOfUnits": 3
            }
          ]
        },
        "createdAt": "2019-02-19T18:25:51.752Z",
        "updatedAt": "2019-02-19T18:25:51.752Z"
      }
    ],
    "count": 1
  }
}