original documentation
try {
const input = {
name: '', // string
public_key: '', // string
};
const {data:{ssh_key}} = await dots.sshKey.createSshKey(input)
console.log(ssh_key);
} catch (error) {
console.log(error);
}
original documentation
try {
const input = {
ssh_key_id: '', // string | number;
};
const {status} = await dots.sshKey.destroySshKey(input)
console.log(status);
} catch (error) {
console.log(error);
}
original documentation
try {
const input = {
ssh_key_id: '', // string | number;
};
const {data:{ssh_key}} = await dots.sshKey.getSshKey(input)
console.log(ssh_key);
} catch (error) {
console.log(error);
}
original documentation
try {
const input = {
page: 1, // number
};
const {data:{ssh_keys}} = await dots.sshKey.listSshKeys(input)
console.log(ssh_keys);
} catch (error) {
console.log(error);
}
original documentation
try {
const input = {
ssh_key_id: '', // string | number;
name: 'new-name', // string;
};
const {data:{ssh_key}} = await dots.sshKey.updateSshKey(input)
console.log(ssh_key);
} catch (error) {
console.log(error);
}