ssh_keys.php¶
SSH keys management module for handling the creation, retrieval, updating, and deletion of SSH public keys associated with user accounts.
API Methods¶
| Method | Action | Description |
|---|---|---|
add | add ssh key | Adds a new SSH key to the account. |
delete | delete ssh key | Deletes an existing SSH key by its ID. |
list | list ssh keys | Returns a list of SSH keys belonging to the user or specified customer. |
show | show ssh key | Retrieves detailed information about a specific SSH key. |
update | update ssh key | Updates an existing SSH key. |
ssh_keys/add¶
Adds a new SSH key to the account.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: add |
| token | ✅ | string | Authentication token for API access. |
| id | ❌ | integer | ID of the entity (not used in add). |
| customer_id | ❌ | integer | Customer identifier (used by administrators). |
Request example
Success response example
ssh_keys/delete¶
Deletes an existing SSH key by its ID.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: delete |
| token | ✅ | string | Authentication token for API access. |
| id | ✅ | integer | The ID of the SSH key to delete. |
Request example
Success response example
ssh_keys/list¶
Returns a list of SSH keys belonging to the user or specified customer.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: list |
| token | ✅ | string | Authentication token for API access. |
| id | ❌ | integer | ID of the entity (not used in list). |
| customer_id | ❌ | integer | Customer identifier (used by administrators). |
Request example
Success response example
ssh_keys/show¶
Retrieves detailed information about a specific SSH key.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: show |
| token | ✅ | string | Authentication token for API access. |
| id | ✅ | integer | The ID of the SSH key to show. |
Request example
Success response example
ssh_keys/update¶
Updates an existing SSH key.
HTTP method: POST
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| action | ✅ | string | Method identifier: update |
| token | ✅ | string | Authentication token for API access. |
| id | ✅ | integer | The ID of the SSH key to update. |
Request example