---
title: "POST /target-update-aerospike"
method: POST
path: "/target-update-aerospike"
tags: ["Targets"]
---

# POST /target-update-aerospike

`POST /target-update-aerospike`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/target-update-aerospike`
- Auth: none declared

## Request body

- TargetUpdateAerospike
  - `admin-username` string: Username of an account with the user-admin role
  - `aerospike-client-id` string: Client ID for Aerospike Cloud authentication (relevant only for Aerospike Cloud)
  - `aerospike-client-secret` string: Client secret for Aerospike Cloud authentication (relevant only for Aerospike Cloud)
  - `aerospike-cloud` boolean: Set to 'true' for Aerospike Cloud deployments
  - `aerospike-cluster-id` string: Cloud cluster ID (relevant only for Aerospike Cloud)
  - `client-certificate` string: Client certificate for mTLS (mTLS only)
  - `client-private-key` string: Client private key for mTLS (mTLS only)
  - `db-server-name` string: TLS server name used to verify the certificate hostname. If empty, the Aerospike hostname is used.
  - `delete_protection` string: Protection from accidental deletion of this object [true/false]
  - `description` string: Description of the object
  - `enable-mtls` boolean: Enable mutual TLS authentication - requires --ssl=true (true/false)
  - `hostname` string: Aerospike host address and port (e.g. url.to.aerospike.db)
  - `json` boolean: Set output format to JSON
  - `keep-prev-version` string: Whether to keep previous version [true/false]. If not set, use default according to account settings
  - `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)
  - `lock-on-read` string: Lock this secret after each successful value read
  - `lock-ttl` string: Lock TTL in minutes
  - `max-versions` string: Set the maximum number of versions, limited by the account settings defaults.
  - `name` string, required: Target name
  - `namespace` string: Namespace name (relevant only for Aerospike db)
  - `new-comment` string: Deprecated - use description
  - `new-name` string: New target name
  - `password` string: Password for the admin user
  - `port` string: Database connection port
  - `rotate-on-unlock` string: Rotate this secret after it is unlocked
  - `skip-server-name-validation` string: Skip server name verification while still validating the certificate chain (true/false). Empty means do not skip.
  - `ssl` boolean: Enable SSL encryption (true/false)
  - `ssl-certificate` string: Base64-encoded SSL CA certificate from a trusted Certificate Authority (CA)
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication

## Response `201`

targetUpdateAerospikeResponse wraps response body.

- TargetUpdateOutput
  - `target_id` integer

## Other responses

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

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
