---
title: "Import ASG To Ocean Virtual Node Group"
method: POST
path: "/ocean/aws/k8s/launchSpec/autoScalingGroup/import"
tags: ["Ocean AWS"]
---

# Import ASG To Ocean Virtual Node Group

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

Returns an Ocean Virtual Node Group (VNG) configuration in a given AWS autoscaling group (ASG). The returned value ("Imported VNG") can then be used as input to the Create Virtual Node Group API in order to create an actual VNG in your Ocean cluster.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1ocean~1gcp~1k8s~1launchSpec/get/parameters/1` — unresolved $ref
- `#/paths/~1ocean~1aws~1k8s~1cluster~1autoScalingGroup~1import/post/parameters/1` — unresolved $ref

## Request body

- object
  - `launchSpec` object — The object specifying the configuration of the VNG.
    - `name` string — Set Virtual Node Group name.
    - `labels` object[] — An array of labels to add to the VNG nodes. Only custom user labels are allowed, and not Kubernetes built-in labels or Spot internal labels.
      - `key` string — Set label key. \ The following are not allowed: * "kubernetes.io/hostname" * "failure-domain.beta.kubernetes.io/zone" * "topology.kubernetes.io/zone" * "failure-domain.beta.kubernetes.io/region" * "topology.kubernetes.io/region" * "beta.kubernetes.io/instance-type" * "node.kubernetes.io/instance-type" * "beta.kubernetes.io/os" * "kubernetes.io/os" * "beta.kubernetes.io/arch" * "kubernetes.io/arch" * "spotinst.io/node-lifecycle"
      - `value` string — Set label value.
    - `taints` object[] — Add taints to Virtual Node Group.
      - `key` string — Set taint key.
      - `value` string — Set taint value.
      - `effect` 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute' — Set taint effect.

## 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)
