Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dashserv.io
Advanced tools
Readme
This is an API Wrapper for the API of dashserv.io It uses promises, so you can await the functions or .then().catch() them!
npm install dashserv.io@latest
const DashServApi = require("dashserv.io");
const DashServ = new DashServApi("API-TOKEN");
// get all your Servers:
DashServ.vServer.getAll()
.catch(console.error) // don't forget to catch errors!
.then(console.log);
// start Server:
DashServ.vServer.start()
.catch(console.error) // don't forget to catch errors!
.then(console.log);
// stop Server:
DashServ.vServer.shutdownServer()
.catch(console.error) // don't forget to catch errors!
.then(console.log);
// way of awaiting something...
const DashServApi = require("dashserv.io");
const DashServ = new DashServApi("API-TOKEN");
(async() => {
try {
// get all your Servers:
const data = await DashServ.vServer.getAll()
console.log(data);
} catch (error) {
console.error(error);
}
})();
// Currently - none
// Currently - none
// PROPERTY: Shows all validActions
DashServ.vServer.validActions
/**
* METHODS:
*/
// Lists all vservers in your account
await DashServ.vServer.getAll();
// Lists a the single vserver
await DashServ.vServer.getServerData(ServerId);
// List all available images
await DashServ.vServer.getAvailableImages();
// Show Status of a Vserver
await DashServ.vServer.getStatus(ServerId);
// Changes the Resources of cpu, ram and disk amount, if configurated server (+- € + autorestarts)
await DashServ.vServer.changeResource(ServerId, newCpuAmount, newRamAmount, newDiskAmount);
// Starts the Server
await DashServ.vServer.startServer(ServerId);
// shutdowns the Server
await DashServ.vServer.shutdownServer(ServerId);
// stops the Server
await DashServ.vServer.stopServer(ServerId);
// restart the Server
await DashServ.vServer.restartServer(ServerId);
// Resets a Server to default image
await DashServ.vServer.forceResetServer(ServerId);
// reinstalls the server and restarts it with the new image
await DashServ.vServer.reinstallServer(ServerId, image);
// resets the root password
await DashServ.vServer.resetPassword(ServerId);
// Shows all backups
await DashServ.vServer.listBackups(ServerId);
// Creates a backup with a custom name
await DashServ.vServer.createBackup(ServerId, name);
// deletes a created backup with a backup id
await DashServ.vServer.deleteBackup(ServerId, backupUuid);
// restores a backup of a backup id and restarts the server
await DashServ.vServer.restoreBackup(ServerId, backupUuid);
// get all tasks
await DashServ.vServer.getTasks(ServerId);
// get all scheduled tasks
await DashServ.vServer.getScheduledTasks(ServerId);
// create a scheduled task, with a interval and a command (and a optimal nextexecution : timestamp)
await DashServ.vServer.createScheduledTask(ServerId, interval, command, nextexecution[optionial]);
// delete a scheduled task
await DashServ.vServer.deleteScheduledTask(ServerId, taskuuid);
// get all Graphs of a specific timeframe!
await DashServ.vServer.getGraphs(ServerId, timeframe);
FAQs
The official Api Wrapper for www.dashserv.io
The npm package dashserv.io receives a total of 1 weekly downloads. As such, dashserv.io popularity was classified as not popular.
We found that dashserv.io demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.