List All SSH Keys
- Name
get
- Type
- /v1/ssh_keys
- Description
Send a
GET
request to get all ssh keys.
Request
Example
curl -X GET "https://api.simplystack.com/v1/ssh_keys" \
-H "Content-Type: application/json" \
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
Response
JSON object with a key named ssh_keys
which is an array of the following attributes:
Attributes
Example
json
{
"ssh_keys": [
{
"id": 1,
"name": "deploy01",
"fingerprint": "3c:3c:97:63:c9:a9:12:f4:91:6a:6f:3d:86:e4:c1:a8",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOpACbFjNiBrDdQZ1mBygO2FNLE3Z07+vHTQG9ojGwBU6ZY6qX5/oVo0O4hesh6++GKh03opunNnLzKYSz/y/KuIdjEqtBRcfsAHILNRCaL5vuvFLJTKie+srDA2T3E1J0YenTogkimJfgsfq9es5m+B3ibNYoLT/9DqHcSG6D8JiHJuorddx9slcXwDiks67AwZACisxz6nYD+HJzozR6N7k9mmXU2FxRVhjbvZTaotYqhN83Ufi4BfMA9jS7MdcaxVRa7HlBVOVttkvGjd/JYh5SXMrEFY01KDNTC49ufj4eol+r5ERbXZgqcDTetZ61bXofsKL/eU69u5ikAVjP",
"created_at": "2018-02-01T12:14:47.134880Z"
},
{
"id": 2,
"name": "deploy02",
"fingerprint": "3c:3c:97:63:c9:a9:12:f4:91:6a:6f:3d:86:e4:c1:a8",
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOpACbFjNiBrDdQZ1mBygO2FNLE3Z07+vHTQG9ojGwBU6ZY6qX5/oVo0O4hesh6++GKh03opunNnLzKYSz/y/KuIdjEqtBRcfsAHILNRCaL5vuvFLJTKie+srDA2T3E1J0YenTogkimJfgsfq9es5m+B3ibNYoLT/9DqHcSG6D8JiHJuorddx9slcXwDiks67AwZACisxz6nYD+HJzozR6N7k9mmXU2FxRVhjbvZTaotYqhN83Ufi4BfMA9jS7MdcaxVRa7HlBVOVttkvGjd/JYh5SXMrEFY01KDNTC49ufj4eol+r5ERbXZgqcDTetZ61bXofsKL/eU69u5ikAVjP",
"created_at": "2018-02-02T17:14:47.134880Z"
}
],
"meta": {
"pagination": {
"current_page": 1,
"next_page": null,
"pages": 1,
"per_page": 25,
"previous_page": null,
"total": 2
},
"query": null,
"sort": null
}
}