POSThttps://api.spotinst.io/ocean/aws/k8s/cluster/autoScalingGroup/import?accountId={ACCOUNT_ID}

Create an Ocean configuration according to an AWS autoscaling group (ASG) configuration.

URL Parameters

Parameter Type Description
autoScalingGroupName * String

The autoscaling group name.

region * String

Region name of the ASG.

Example: us-east-1
ACCOUNT_ID * String

The Spot accountId associated with your token.

Example: act-123abc
Response - 200

Body
Copied!
Downloaded!
{
        "name": "TestASG1",
        "controllerClusterId": "ocean-ed609402-8557-4d18-818a-e549333cc11e",
        "region": "us-west-2",
        "capacity": {
          "minimum": 0,
          "maximum": 1000,
          "target": 1
        },
        "compute": {
          "subnetIds": [
            "subnet-00cab2dd9f40a9883",
            "subnet-0df9d512c7cbbd9e1"
          ],
          "launchSpecification": {
            "securityGroupIds": [
              "sg-03ccf232a2bf0f4ea"
            ],
            "keyPair": "testteamkp",
            "imageId": "ami-0ce21b51cb31a54b8",
            "tags": [
              {
                "tagKey": "AmazonECSManaged",
                "tagValue": ""
              }
            ],
            "associatePublicIpAddress": false
          }
        }
      }