---
title: "POST /create-eks-target"
method: POST
path: "/create-eks-target"
tags: ["v2"]
---

# POST /create-eks-target

`POST /create-eks-target`

## Request body

- CreateEKSTarget — createEKSTarget is a command that creates a new target. [Deprecated: Use target-create-eks command]
  - `comment` string — Deprecated - use description
  - `description` string — Description of the object
  - `eks-access-key-id` string, required — Access Key ID
  - `eks-cluster-ca-cert` string, required — EKS cluster CA certificate
  - `eks-cluster-endpoint` string, required — EKS cluster URL endpoint
  - `eks-cluster-name` string, required — EKS cluster name
  - `eks-region` string — Region
  - `eks-secret-access-key` string, required — Secret Access Key
  - `json` boolean — Set output format to JSON
  - `key` string — The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
  - `max-versions` string — Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required — Target name
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication
  - `use-gw-cloud-identity` boolean

## Response `200`

createEKSTargetResponse wraps response body.

- CreateEKSTargetOutput
  - `target_id` integer

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
