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

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
page = client.cloud.ssh_keys.list(
    project_id=1,
)
page = page.results[0]
print(page.id)
{
  "count": 1,
  "results": [
    {
      "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

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

Query Parameters

limit
integer
default:10

Maximum number of SSH keys to return

Required range: 1 <= x <= 1000
Examples:

100

offset
integer
default:0

Offset for pagination

Required range: x >= 0
Examples:

0

order_by
enum<string>

Sort order for the SSH keys

Available options:
created_at.asc,
created_at.desc,
name.asc,
name.desc

Response

200 - application/json

OK

The response is of type object.