v1

latestOpenAPI 3.0.02026-08-0645003.8 MB
Elastigroup AWS

Import ASG

Create a new Elastigroup – this Elastigroup will have the same configuration of the imported Autoscaling group

post/aws/ec2/group/autoScalingGroup/import

Query parameters

autoScalingGroupNamestring required

The ASG name

regionstring required

The AWS region for the ASG

accountIdstring

Your account ID in Spot

dryRunboolean

When dryRun is set to true, the API call will return the Elastigroup configuration without actually performing any action

Request body

Example request

{
  "group": {
    "product": "Linux/UNIX",
    "spotInstanceTypes": [
      "c3.large",
      "m4.large"
    ],
    "name": "My Group"
  }
}

Response

Import ASG Response

Example response

{
  "request": {
    "id": "ff3e1e5b-91b8-42fa-8267-b988efc7f662",
    "url": "/aws/ec2/group/autoScalingGroup/import?region=us-west-2&TESTING_ASG",
    "method": "POST",
    "timestamp": "2015-06-29T13:01:55.060Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "kind": "spotinst:aws:ec2:group",
    "items": [
      {
        "id": "sig-e2927aac",
        "name": "TESTING_ASG",
        "description": "Imported from auto scaling group TESTING_ASG",
        "capacity": {
          "target": 1,
          "maximum": 5
        },
        "strategy": {
          "risk": 100
        },
        "compute": {
          "instanceTypes": {
            "ondemand": "m3.medium"
          },
          "availabilityZones": [
            {
              "name": "us-west-2b",
              "subnetIds": "subnet-2e967065"
            }
          ],
          "product": "Linux/UNIX",
          "launchSpecification": {
            "loadBalancersConfig": {
              "loadBalancers": {
                "name": "TESTING_ASG",
                "type": "CLASSIC"
              }
            },
            "healthCheckType": "EC2",
            "healthCheckGracePeriod": 600,
            "imageId": "ami-485eef30",
            "ebsOptimized": true,
            "blockDeviceMappings": [
              {
                "deviceName": "/dev/sda1",
                "ebs": {
                  "deleteOnTermination": true,
                  "volumeSize": 30,
                  "volumeType": "gp2"
                }
              }
            ]
          }
        },
        "createdAt": "2020-10-01T05:23:59.302Z",
        "updatedAt": "2020-10-01T05:23:59.302Z"
      }
    ],
    "count": 1
  }
}