API reference
SSH
SSH keys of an account.
List SSH keys
GET/api/v1/accounts/{id}/ssh/keys
Parameters
| Name | In |
|---|---|
id | path |
Responses
- 200 OK
Body
map of any
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
Delete an SSH key
DELETE/api/v1/accounts/{id}/ssh/keys/{kid}
Parameters
| Name | In |
|---|---|
id | path |
kid | path |
Responses
- 204 Done, no content
- 400 Bad Request: rejected
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
Authorize or deauthorize an SSH key
PUT/api/v1/accounts/{id}/ssh/keys/{kid}/authorization
Parameters
| Name | In |
|---|---|
id | path |
kid | path |
Request body
| Field | Type |
|---|---|
authorized | boolean |
Responses
- 204 Done, no content
- 400 Bad Request: rejected
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready
- 500 Internal Server Error: internal
Generate an SSH key
POST/api/v1/accounts/{id}/ssh/keys/generate
Parameters
| Name | In |
|---|---|
id | path |
Request body
| Field | Type |
|---|---|
authorize | boolean |
bits | integer |
name | string |
passphrase | string |
private_key | string |
public_key | string |
type | string |
Responses
- 201 Created
Body
map of any
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready, validation
- 500 Internal Server Error: internal
Import an SSH key
POST/api/v1/accounts/{id}/ssh/keys/import
Parameters
| Name | In |
|---|---|
id | path |
Request body
| Field | Type |
|---|---|
authorize | boolean |
bits | integer |
name | string |
passphrase | string |
private_key | string |
public_key | string |
type | string |
Responses
- 201 Created
Body
map of any
- 400 Bad Request: validation
- 401 Unauthorized: no session, or an invalid or expired token
- 403 Forbidden: the caller can't use this (privileges, token scope, feature turned off)
- 404 Not Found: not-found
- 409 Conflict: not-ready, validation
- 500 Internal Server Error: internal