cURL
curl --request GET \ --url https://api.gcore.com/cloud/v1/keypairs/{project_id}/{region_id} \ --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 } ] }
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Project ID
Region ID
OK
Number of objects
x >= 0
Objects
Show child attributes
Key ID, equal to sshkey_name
sshkey_name
Keypair name
1 - 255
Public part of the key. To generate public and private keys in the platform, do not specify the parameter in the request body.
Keypair is shared for all users in the project
Keypair state
ACTIVE
DELETING
Keypair creation datetime
Key fingerprint
"86:75:ce:e7:e9:1e:f0:79:ec:6f:d8:92:9b:43:fc:4d"
Private part of the key
"<private_key>"
1
Was this page helpful?