original documentation
try {
const input = {
snapshot_id: 123, // number;
};
const {status} = await dots.snapshot.deleteSnapshot(input)
console.log(status);
} catch (error) {
console.log(error);
}
original documentation
try {
const input = {
snapshot_id: 123, // number;
};
const {data:{snapshot}} = await dots.snapshot.getSnapshot(input)
console.log(snapshot);
} catch (error) {
console.log(error);
}
original documentation
original documentation¹
original documentation²
try {
const input = {
page: 1, // number
resource_type: undefined, // undefined || 'droplet' | 'volume'
};
const {data:{snapshots}} = await dots.snapshot.listSnapshots(input)
console.log(snapshots);
} catch (error) {
console.log(error);
}