SSH Keys
List SSH keys
Returns all SSH key objects.
get/ssh_keys
Request
- Base URL: https://api.hetzner.cloud/v1
- URL: https://api.hetzner.cloud/v1/ssh_keys
- Auth: HTTP bearer
Query parameters
sortstring[]
Sort resources by field and direction. May be used multiple times.
For more information, see "Sorting".
namestring
Filter resources by their name.
The response will only contain the resources matching exactly the specified name.
fingerprintstring
May be used to filter SSH keys by their fingerprint. The response will only contain the SSH key matching the specified fingerprint.
label_selectorstring
Filter resources by labels.
The response will only contain resources matching the label selector. For more information, see "Label Selector".
pageinteger
Example:1
Page number to return. For more information, see "Pagination".
per_pageinteger
Example:25
Maximum number of entries returned per page. For more information, see "Pagination".
Response
Request succeeded.
Example response
{
"ssh_keys": [
{
"id": 42,
"name": "my-resource",
"fingerprint": "b7:2f:30:a0:2f:6c:58:6c:21:04:58:61:ba:06:3b:2f",
"public_key": "ssh-rsa AAAjjk76kgf...Xt",
"labels": {
"environment": "prod",
"example.com/my": "label",
"just-a-key": ""
},
"created": "2016-01-30T23:55:00Z"
}
],
"meta": {
"pagination": {
"page": 3,
"per_page": 25,
"previous_page": 2,
"next_page": 4,
"last_page": 4,
"total_entries": 100
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.