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

# Import EKS Cluster Node Group To Ocean Virtual Node Group

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

<ul> <li> Returns an Ocean Virtual Node Group (VNG) configuration based on a given AWS EKS Cluster Node Group.
     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.</li>
<li> Notes: <ul>
            <li> Make sure to have the necessary permissions in your Spot policy: <b>eks:ListNodegroups, eks:DescribeNodegroup</b>.
                 <a href="https://docs.flexera.com/spot/administration/api/spot-policy-in-aws?id=spot-policy-in-aws">Click here for the full Spot policy.</a></li>
            <li> <b>Exactly one of region or oceanId must be supplied</b> as query parameters.</li>
            <ul>
</li> <ul>

## Query parameters

- `eksClusterName` string, required
- `eksNodeGroupName` string, required
- `region` string

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1ocean~1aws~1k8s~1launchSpec/get/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.

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