Skip to main content
GET
/
cloud
/
v2
/
keypairs
List keypairs
curl --request GET \
  --url https://api.gcore.com/cloud/v2/keypairs \
  --header 'Authorization: <api-key>'
{
  "count": 1,
  "results": [
    {
      "id": "<string>",
      "name": "<string>",
      "public_key": "<string>",
      "shared_in_project": true,
      "state": "ACTIVE",
      "created_at": "2023-11-07T05:31:56Z",
      "fingerprint": "86:75:ce:e7:e9:1e:f0:79:ec:6f:d8:92:9b:43:fc:4d",
      "private_key": "<private_key>",
      "project_id": 1
    }
  ]
}

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

Query Parameters

project_id
integer | null

Project ID. It's required with rights lower than a cloud administrator.

Example:

100

user_id
integer | null

User ID. To use it, you need set project id or use cloud administrator rights.

Example:

5

Response

200 - application/json

OK

count
integer
required

Number of objects

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

Objects