---
title: "Import ASG"
method: POST
path: "/aws/ec2/group/autoScalingGroup/import"
tags: ["Elastigroup AWS"]
---

# Import ASG

`POST /aws/ec2/group/autoScalingGroup/import`

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

## Query parameters

- `autoScalingGroupName` string, required
- `region` string, required
- `accountId` string
- `dryRun` boolean

## Request body

- object
  - `group` object
    - `product` string — Operation system type. Possible values: Linux/UNIX | SUSE | Linux Windows | Linux/UNIX (Amazon VPC) | SUSE Linux (Amazon VPC) | Windows (Amazon VPC)
    - `spotInstanceTypes` string[] — An Array holding the types of instances to be used in the Elastigroup
    - `name` string — The name of the Elastigroup to be created
    - `availabilityVsCost` 'costOriented' | 'availabilityOriented' | 'balanced' | 'cheapest' | 'equalAzDistribution' — How Elastigroup determines which instances to add and replace. (please read this article before using [Equal AZ Instance Distribution](https://docs.flexera.com/spot/elastigroup-for-aws/concepts/general-concepts/equal-az-distribution))

## Response `200`

Import ASG Response

- object
  - `request` object — Original request properties
    - `id` string — Unique ID associated with this request
    - `url` string — The URL that was used for the request
    - `method` string — The HTTP **METHOD** used for the request
    - `timestamp` string — When the request was received by Spot
  - `response` object — Response package that includes, status, type and any relevant data.
    - `status` object
      - `code` integer — HTTP status code assigned to this response
      - `message` string — HTTP status message for the respective status code
    - `kind` string — The data type of each item in the response
    - `items` object[] — Array of data objects
      - `id` string
      - `name` string
      - `description` string
      - `capacity` object
        - `target` integer
        - `minimum` integer
        - `maximum` integer
        - `unit` integer
      - `strategy` object
        - `risk` integer
        - `drainingTimeout` integer
      - `compute` object
        - `instanceTypes` object
          - `ondemand` string
          - `spot` string
        - `availabilityZones` object[]
          - `name` string
          - `subnetIds` string
        - `product` string
        - `launchSpecification` object
          - `loadBalancersConfig` object
            - `loadBalancers` object
              - …
          - `healthCheckType` string
          - `healthCheckGracePeriod` integer
          - `securityGroupIds` string
          - `monitoring` boolean
          - `imageId` string
          - `ebsOptimized` boolean
          - `blockDeviceMappings` object[]
            - `deviceName` string
            - `ebs` object
              - …
      - `scaling` object
      - `createdAt` string
      - `updatedAt` string
    - `count` integer — Size of the data object array

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
