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

# POST /v2/{+parent}/sshKeys

`POST /v2/{+parent}/sshKeys`

Register a public SSH key in the specified project for use with the interactive serial console feature.

## Path parameters

- `parent` string, required

## Query parameters

- `sshKeyId` string

## Request body

- SSHKey — An SSH key, used for authorizing with the interactive serial console feature.
  - `name` string — Output only. The name of this SSH key. Currently, the only valid value for the location is "global".
  - `publicKey` string — The public SSH key. This must be in OpenSSH .authorized_keys format.

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