Keys
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/keys/ |
List Keys |
| GET | /api/keys/{uuid}/ |
Retrieve |
| POST | /api/keys/ |
Create |
| DELETE | /api/keys/{uuid}/ |
Delete |
| Other Actions | ||
| GET | /api/keys/{uuid}/history/at/ |
Get object state at a specific timestamp |
| GET | /api/keys/{uuid}/history/ |
Get version history |
Core CRUD
List Keys
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- Model Source:
SshKeyFieldEnum - Model Source:
SshKeyOEnum - API Source:
keys_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
created |
string (date-time) | Created after |
created_before |
string (date-time) | Created before |
field |
array | |
fingerprint_md5 |
string | |
fingerprint_sha256 |
string | |
fingerprint_sha512 |
string | |
is_shared |
boolean | |
modified |
string (date-time) | Modified after |
modified_before |
string (date-time) | Modified before |
name |
string | Name |
name_exact |
string | Name (exact) |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
user_uuid |
string (uuid) | User UUID |
uuid |
string (uuid) | UUID |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
public_key |
string |
fingerprint_md5 |
string |
fingerprint_sha256 |
string |
fingerprint_sha512 |
string |
user_uuid |
string (uuid) |
is_shared |
boolean |
type |
string |
Retrieve
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- Model Source:
SshKeyFieldEnum - API Source:
keys_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type |
|---|---|
field |
array |
200 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
public_key |
string |
fingerprint_md5 |
string |
fingerprint_sha256 |
string |
fingerprint_sha512 |
string |
user_uuid |
string (uuid) |
is_shared |
boolean |
type |
string |
Create
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
SshKeyRequest - API Source:
keys_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
name |
string | |
public_key |
string | ✓ |
201 -
| Field | Type |
|---|---|
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
public_key |
string |
fingerprint_md5 |
string |
fingerprint_sha256 |
string |
fingerprint_sha512 |
string |
user_uuid |
string (uuid) |
is_shared |
boolean |
type |
string |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
keys_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Get object state at a specific timestamp
Returns the state of the object as it was at the specified timestamp. Only accessible by staff and support users.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
- API Source:
keys_history_at_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type | Required | Description |
|---|---|---|---|
timestamp |
string | ✓ | ISO 8601 timestamp to query the object state at |
200 -
| Field | Type | Description |
|---|---|---|
id |
integer | Version ID |
revision_date |
string (date-time) | When this revision was created |
revision_user |
object (free-form) | User who created this revision |
revision_comment |
string | Comment describing the revision |
serialized_data |
object (free-form) | Serialized model fields at this revision |
400 -
404 -
Get version history
Returns the version history for this object. Only accessible by staff and support users.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | |
- Model Source:
SshKeyOEnum - API Source:
keys_history_list
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Name | Type | Description |
|---|---|---|
created |
string (date-time) | Created after |
created_after |
string | Filter versions created after this timestamp (ISO 8601) |
created_before |
string | Filter versions created before this timestamp (ISO 8601) |
fingerprint_md5 |
string | |
fingerprint_sha256 |
string | |
fingerprint_sha512 |
string | |
is_shared |
boolean | |
modified |
string (date-time) | Modified after |
modified_before |
string (date-time) | Modified before |
name |
string | Name |
name_exact |
string | Name (exact) |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
user_uuid |
string (uuid) | User UUID |
uuid |
string (uuid) | UUID |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
id |
integer | Version ID |
revision_date |
string (date-time) | When this revision was created |
revision_user |
object (free-form) | User who created this revision |
revision_comment |
string | Comment describing the revision |
serialized_data |
object (free-form) | Serialized model fields at this revision |