-
Notifications
You must be signed in to change notification settings - Fork 0
SSH Keys
OnCloud edited this page Jan 3, 2025
·
5 revisions
Important
Before making API calls, client must be initialized.
const userId = 1; // Replace with your user ID
const name = "My SSH Key"; // Replace with your SSH key name
const publicKey = "ssh-** ********"; // Replace with your SSH key public key
const addSshKey = await virtfusion.sshKeys.add({
userId,
name,
publicKey,
});
const sshKeyId = 1; // Replace with your SSH key ID
const deleteSshKey = await virtfusion.sshKeys.delete(sshKeyId);
const userId = 1; // Replace with your user ID
const retrieveSshKeysByUser = await virtfusion.sshKeys.retrieveUser(userId);
Note
The project is under active development, with features being implemented incrementally. For detailed features support list, please refer to the Roadmap Page.