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

# POST /target-update-azure

`POST /target-update-azure`

## Request

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

## Request body

- TargetUpdateAzure
  - `azure-cloud` string: Azure cloud environment to use. Values: AzureCloud (default), AzureUSGovernment, AzureChinaCloud.
  - `client-id` string: Azure client/application id
  - `client-secret` string: Azure client secret
  - `connection-type` string: Type of connection [credentials/cloud-identity]
  - `delete_protection` string: Protection from accidental deletion of this object [true/false]
  - `description` string: Description of the object
  - `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
  - `new-name` string: New target name
  - `resource-group-name` string: The Resource Group name in your Azure subscription
  - `resource-name` string: The name of the relevant Resource
  - `rotate-on-unlock` string: Rotate this secret after it is unlocked
  - `subscription-id` string: Azure Subscription Id
  - `tenant-id` string: Azure tenant id
  - `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: Use the GW's Cloud IAM [Deprecated: Use connection-type=cloud-identity]

## Response `201`

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