GET
/
cloud
/
v1
/
ssh_keys
/
{project_id}
/
{ssh_key_id}
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
ssh_key = client.cloud.ssh_keys.get(
    ssh_key_id="36a7a97a-0672-4911-8f2b-92cd4e5b0d91",
    project_id=1,
)
print(ssh_key.id)
{
  "created_at": "2025-06-16T17:05:50Z",
  "fingerprint": "86:75:ce:e7:e9:1e:f0:79:ec:6f:d8:92:9b:43:fc:4d",
  "id": "36a7a97a-0672-4911-8f2b-92cd4e5b0d91",
  "name": "my-ssh-key",
  "project_id": 1,
  "public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIjxL6g1II8NsO8odvBwGKvq2Dx/h/xrvsV9b9LVIYKm my-username@my-hostname",
  "shared_in_project": true,
  "state": "ACTIVE"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Examples:

1

ssh_key_id
string<uuid4>
required

SSH key ID

Examples:

"36a7a97a-0672-4911-8f2b-92cd4e5b0d91"

Response

200 - application/json

OK

created_at
string<date-time> | null
required

SSH key creation time

Examples:

"2025-06-16T17:05:50Z"

fingerprint
string
required

Fingerprint

Examples:

"86:75:ce:e7:e9:1e:f0:79:ec:6f:d8:92:9b:43:fc:4d"

id
string<uuid4>
required

SSH key ID

Examples:

"36a7a97a-0672-4911-8f2b-92cd4e5b0d91"

name
string
required

SSH key name

Required string length: 1 - 255
Examples:

"my-ssh-key"

project_id
integer | null
required

Project ID

Examples:

1

public_key
string
required

The public part of an SSH key is the shareable portion of an SSH key pair. It can be safely sent to servers or services to grant access. It does not contain sensitive information.

Examples:

"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIjxL6g1II8NsO8odvBwGKvq2Dx/h/xrvsV9b9LVIYKm my-username@my-hostname"

shared_in_project
boolean
required

SSH key will be visible to all users in the project

Examples:

true

state
enum<string>
required

SSH key state

Available options:
ACTIVE,
DELETING