2017-09-10 17:25:29 +05:30
|
|
|
# Keys API
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
## Get SSH key with user by ID of an SSH key
|
|
|
|
|
|
|
|
Get SSH key with user by ID of an SSH key. Note only administrators can lookup SSH key with user by ID of an SSH key.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /keys/:id
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
- `id` (required) - The ID of an SSH key
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
|
|
|
"title": "Sample key 25",
|
|
|
|
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt1256k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
|
|
|
|
"created_at": "2015-09-03T07:24:44.627Z",
|
|
|
|
"user": {
|
|
|
|
"name": "John Smith",
|
|
|
|
"username": "john_smith",
|
|
|
|
"id": 25,
|
|
|
|
"state": "active",
|
|
|
|
"avatar_url": "http://www.gravatar.com/avatar/cfa35b8cd2ec278026357769582fa563?s=40\u0026d=identicon",
|
2016-11-03 12:29:30 +05:30
|
|
|
"web_url": "http://localhost:3000/john_smith",
|
2015-09-25 12:07:36 +05:30
|
|
|
"created_at": "2015-09-03T07:24:01.670Z",
|
|
|
|
"bio": null,
|
2018-12-05 23:21:45 +05:30
|
|
|
"location": null,
|
|
|
|
"public_email": "john@example.com",
|
2015-09-25 12:07:36 +05:30
|
|
|
"skype": "",
|
|
|
|
"linkedin": "",
|
|
|
|
"twitter": "",
|
|
|
|
"website_url": "",
|
2018-12-05 23:21:45 +05:30
|
|
|
"organization": null,
|
|
|
|
"last_sign_in_at": "2015-09-03T07:24:01.670Z",
|
|
|
|
"confirmed_at": "2015-09-03T07:24:01.670Z",
|
|
|
|
"last_activity_on": "2015-09-03",
|
2015-09-25 12:07:36 +05:30
|
|
|
"email": "john@example.com",
|
2018-03-17 18:26:18 +05:30
|
|
|
"theme_id": 2,
|
2015-09-25 12:07:36 +05:30
|
|
|
"color_scheme_id": 1,
|
|
|
|
"projects_limit": 10,
|
|
|
|
"current_sign_in_at": null,
|
|
|
|
"identities": [],
|
|
|
|
"can_create_group": true,
|
|
|
|
"can_create_project": true,
|
|
|
|
"two_factor_enabled": false
|
2018-12-05 23:21:45 +05:30
|
|
|
"external": false,
|
|
|
|
"private_profile": null
|
2015-09-25 12:07:36 +05:30
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|