---
title: "Upgrade Elastigroup To Ocean"
method: POST
path: "/ocean/gcp/k8s/cluster/import"
tags: ["Ocean GKE"]
---

# Upgrade Elastigroup To Ocean

`POST /ocean/gcp/k8s/cluster/import`

**Prerequisites** | Perform the following validations prior to upgrade executions: | * Group identifier cannot be null. * Group identifier exists in Elastigroup. * Group should be a GKE Elastigroup with defined scaling policy. * Group identifier is already managed by Ocean.

## Parameters

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

## Response `200`

Ocean Response

- object
  - `request` object
    - `id` string
    - `url` string
    - `method` string
    - `timestamp` string
  - `response` object
    - `status` object
      - `code` integer
      - `message` string
    - `kind` string
    - `items` object
      - `id` string
      - `name` string
      - `controllerClusterId` string
      - `gke` object
        - `clusterName` string
        - `masterLocation` string
      - `capacity` Capacity — unresolved $ref
      - `compute` object
        - `networkInterfaces` object — Settings for network interfaces.
          - `network` string
          - `accessConfigs` object
            - `name` string
            - `type` string — Possible values: ONE_TO_ONE_NAT
          - `aliasIpRanges` object
            - `ipCidrRange` string — Required for the cluster.compute.networkInterfaces.aliasIpRanges object.
            - `subnetworkRangeName` string — Required for the cluster.compute.networkInterfaces.aliasIpRanges object.
        - `subnetName` string — Subnet identifier for the Ocean cluster.
        - `instanceTypes` object — The type of instances that may or may not be a part of the Ocean cluster.
          - `whitelist` string[] — Instance types allowed in the Ocean cluster.
        - `launchSpecification` object
          - `sourceImage` string — URL of the image used to launch the instances.
          - `metadata` object — Set array of cluster metadata.
            - `key` string — Key of metadata key-pair.
            - `value` string — Value of metadata key-pair.
          - `tags` string[] — Every node launched from this configuration will be tagged with those tags.
          - `ipForwarding` boolean
          - `serviceAccount` string
          - `labels` object[] — Set labels on cluster. You can set up to 60 labels.
            - `key` string
            - `value` string
          - `rootVolumeSizeInGb` integer — Optionally set root size (GB). Value should be greater than or equal to 100.
        - `availabilityZones` string[]
      - `createdAt` string
      - `updatedAt` string
    - `count` integer

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