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
123
Region ID
7
OK
Number of objects
x >= 0
1
Objects
Show child attributes
Was this page helpful?