---
title: "Get keypair"
method: GET
path: "/cloud/v2/keypairs/{keypair_id}"
tags: ["SSH Keys"]
deprecated: true
---

# Get keypair

`GET /cloud/v2/keypairs/{keypair_id}`

> **Deprecated.**

## Path parameters

- `keypair_id` string, required — Keypair ID

## Response `200`

OK

- KeypairSerializer
  - `created_at` string, date-time, nullable — Keypair creation datetime
  - `fingerprint` string, nullable — Key fingerprint
  - `id` string, required — Key ID, equal to `sshkey_name`
  - `name` string, required — Keypair name
  - `private_key` string, nullable — Private part of the key
  - `project_id` integer, nullable — Project ID
  - `public_key` string, required — Public part of the key. To generate public and private keys in the platform, do not specify the parameter in the request body.
  - `shared_in_project` boolean, required — Keypair is shared for all users in the project
  - `state` 'ACTIVE' | 'DELETING', required

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
