---
title: "Import ASG To Ocean Cluster"
method: POST
path: "/ocean/aws/k8s/cluster/autoScalingGroup/import"
tags: ["Ocean AWS"]
---

# Import ASG To Ocean Cluster

`POST /ocean/aws/k8s/cluster/autoScalingGroup/import`

## Request

- Base URL: `https://api.spotinst.io`
- URL: `https://api.spotinst.io/ocean/aws/k8s/cluster/autoScalingGroup/import`
- Auth: HTTP bearer

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

## Query parameters

- `autoScalingGroupName` string, required
- `region` string, required

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` (unresolved $ref)

## Request body

- object
  - `cluster` object: The object specifying the configuration of the VNG.
    - `instanceTypes` string[]: List of possible instance types for the cluster.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/spot/apis/spot-by-flexera-api.md) - [All operations](https://skmtc.dev/spot/apis/spot-by-flexera-api/llms.txt) - [OpenAPI document](https://skmtc.dev/spot/apis/spot-by-flexera-api/revisions/f7e206fa6474?raw)
