listSshKeys
GET /user/ssh-keys
Returns all SSH keys associated with the authenticated user.
Parameters: None
Returns: Array of SshKey objects.
Example:
createSshKey
POST /user/ssh-keys
Adds a new SSH public key to the user’s account.
Parameters:
Returns:
SshKey — the created key with computed fingerprint.
Example: Replace the sample public key with your own key before using it for access.
deleteSshKey
DELETE /user/ssh-keys/{key_id}
Removes an SSH key from the user’s account.
Parameters:
Returns:
void
importGithubProfileSshKeys
POST /user/ssh-keys/import/github-profile
Imports SSH public keys from a GitHub user’s profile.
Parameters:
Returns:
ImportGithubProfileResponse — import results with count of keys added.
Example:
syncGithubSshKeys
POST /user/ssh-keys/sync/github
Syncs SSH keys with the authenticated user’s linked GitHub account.
Parameters: None
Returns: SyncGithubSshKeysResponse — sync results.
getCvmSshKeys
GET /cvms/{cvmId}/ssh-keys
Returns the SSH keys configured for a CVM and a restart_required flag. This is the stored configuration; use getCvmUserConfig to inspect the running VM’s configuration.
updateCvmSshKeys
PUT /cvms/{cvmId}/ssh-keys
Replaces the configured key set. ssh_key_ids is required. Optional usernames resolve to members’ keys and are added to the set. Keys take effect at the next power-on; set apply_now to restart the CVM and apply them immediately.
safeGetCvmSshKeys and safeUpdateCvmSshKeys.
