---
title: "POST /v2/{+name}:reimage"
method: POST
path: "/v2/{+name}:reimage"
tags: ["projects"]
---

# POST /v2/{+name}:reimage

`POST /v2/{+name}:reimage`

Perform reimage operation on a single server.

## Path parameters

- `name` string, required

## Request body

- ReimageInstanceRequest — Message requesting to perform reimage operation on a server.
  - `kmsKeyVersion` string — Optional. Name of the KMS crypto key version used to encrypt the initial passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}`.
  - `sshKeys` string[] — Optional. List of SSH Keys used during reimaging an instance.
  - `osImage` string — Required. The OS image code of the image which will be used in the reimage operation.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/baremetalsolution.md) · [All operations](https://skmtc.net/google/apis/baremetalsolution/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/baremetalsolution/versions/7c6ae0857ec6/schema)
