Skip to main content
GET
/
cloud
/
v1
/
ssh_keys
/
{project_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
)
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": "<string>",
      "id": "<string>",
      "name": "<string>",
      "project_id": 1,
      "public_key": "<string>",
      "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

Query Parameters

limit
integer
default:10

Maximum number of SSH keys to return

Required range: 1 <= x <= 1000
name
string

SSH key name. Partial substring match. Example: name=abc matches any key containing abc in name.

offset
integer
default:0

Offset for pagination

Required range: x >= 0
order_by
enum<string>
default:created_at.desc

Sort order for the SSH keys

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

Response

200 - application/json

OK

count
integer
required

Number of objects

Required range: x >= 0
results
SSH key response object · object[]
required

Objects