glesys-api
v8.5.0
Published
Node.js wrapper for the GleSYS API.
Downloads
74
Readme
glesys-api
A Node.js wrapper for the GleSYS API.
Installation
Note: Node 18.12.0 (LTS) or later is required.
npm install glesys-api
Usage
import GleSYSAPI from 'glesys-api';
const glesys = new GleSYSAPI({
apiKey: 'key',
apiUser: 'user',
});
try {
const { body } = await glesys.api.serviceInfo();
console.log(body);
} catch (e) {
console.error(e);
}
glesys.email.createAccount({
emailaccount: '[email protected]',
password: 'password',
});
Available methods
account
api
archive
GleSYSAPI.archive.allowedArguments()
GleSYSAPI.archive.changeDescription()
GleSYSAPI.archive.changePassword()
GleSYSAPI.archive.create()
GleSYSAPI.archive.delete()
GleSYSAPI.archive.details()
GleSYSAPI.archive.list()
GleSYSAPI.archive.resize()
country
customer
GleSYSAPI.customer.createProject()
GleSYSAPI.customer.editCollaborator()
GleSYSAPI.customer.listCollaborators()
GleSYSAPI.customer.listProjects()
GleSYSAPI.customer.removeCollaborator()
GleSYSAPI.customer.settings()
domain
GleSYSAPI.domain.add()
GleSYSAPI.domain.addRecord()
GleSYSAPI.domain.allowedArguments()
GleSYSAPI.domain.available()
GleSYSAPI.domain.changeNameServers()
GleSYSAPI.domain.delete()
GleSYSAPI.domain.deleteRecord()
GleSYSAPI.domain.details()
GleSYSAPI.domain.edit()
GleSYSAPI.domain.export()
GleSYSAPI.domain.generateAuthCode()
GleSYSAPI.domain.list()
GleSYSAPI.domain.listRecords()
GleSYSAPI.domain.priceList()
GleSYSAPI.domain.register()
GleSYSAPI.domain.renew()
GleSYSAPI.domain.setAutoRenew()
GleSYSAPI.domain.transfer()
GleSYSAPI.domain.updateRecord()
GleSYSAPI.email.costs()
GleSYSAPI.email.createAccount()
GleSYSAPI.email.createAlias()
GleSYSAPI.email.delete()
GleSYSAPI.email.editAccount()
GleSYSAPI.email.editAlias()
GleSYSAPI.email.list()
GleSYSAPI.email.overview()
GleSYSAPI.email.quota()
GleSYSAPI.email.resetPassword()
fileStorage
GleSYSAPI.fileStorage.createVolume()
GleSYSAPI.fileStorage.deleteVolume()
GleSYSAPI.fileStorage.editVolume()
GleSYSAPI.fileStorage.listPlans()
GleSYSAPI.fileStorage.listVolumes()
GleSYSAPI.fileStorage.resourceUsage()
GleSYSAPI.fileStorage.volumeDetails()
invoice
ip
GleSYSAPI.ip.add()
GleSYSAPI.ip.details()
GleSYSAPI.ip.estimatedCost()
GleSYSAPI.ip.listFree()
GleSYSAPI.ip.listOwn()
GleSYSAPI.ip.release()
GleSYSAPI.ip.remove()
GleSYSAPI.ip.resetPTR()
GleSYSAPI.ip.setPTR()
GleSYSAPI.ip.take()
loadBalancer
GleSYSAPI.loadBalancer.addBackEnd()
GleSYSAPI.loadBalancer.addCertificate()
GleSYSAPI.loadBalancer.addFrontEnd()
GleSYSAPI.loadBalancer.addTarget()
GleSYSAPI.loadBalancer.addToBlocklist()
GleSYSAPI.loadBalancer.create()
GleSYSAPI.loadBalancer.destroy()
GleSYSAPI.loadBalancer.details()
GleSYSAPI.loadBalancer.disableTarget()
GleSYSAPI.loadBalancer.edit()
GleSYSAPI.loadBalancer.editBackEnd()
GleSYSAPI.loadBalancer.editFrontEnd()
GleSYSAPI.loadBalancer.editTarget()
GleSYSAPI.loadBalancer.enableTarget()
GleSYSAPI.loadBalancer.errors()
GleSYSAPI.loadBalancer.list()
GleSYSAPI.loadBalancer.listCertificate()
GleSYSAPI.loadBalancer.removeBackEnd()
GleSYSAPI.loadBalancer.removeCertificate()
GleSYSAPI.loadBalancer.removeFromBlocklist()
GleSYSAPI.loadBalancer.removeFrontEnd()
GleSYSAPI.loadBalancer.removeTarget()
network
GleSYSAPI.network.create()
GleSYSAPI.network.delete()
GleSYSAPI.network.details()
GleSYSAPI.network.edit()
GleSYSAPI.network.list()
networkAdapter
GleSYSAPI.networkAdapter.create()
GleSYSAPI.networkAdapter.delete()
GleSYSAPI.networkAdapter.details()
GleSYSAPI.networkAdapter.edit()
networkCircuit
objectStorage
GleSYSAPI.objectStorage.createCredential()
GleSYSAPI.objectStorage.createInstance()
GleSYSAPI.objectStorage.deleteCredential()
GleSYSAPI.objectStorage.deleteInstance()
GleSYSAPI.objectStorage.editInstance()
GleSYSAPI.objectStorage.estimatedCost()
GleSYSAPI.objectStorage.instanceDetails()
GleSYSAPI.objectStorage.listInstances()
paymentCard
privateNetwork
GleSYSAPI.privateNetwork.create()
GleSYSAPI.privateNetwork.createSegment()
GleSYSAPI.privateNetwork.delete()
GleSYSAPI.privateNetwork.deleteSegment()
GleSYSAPI.privateNetwork.details()
GleSYSAPI.privateNetwork.edit()
GleSYSAPI.privateNetwork.editSegment()
GleSYSAPI.privateNetwork.estimatedCost()
GleSYSAPI.privateNetwork.list()
GleSYSAPI.privateNetwork.listSegments()
project
server
GleSYSAPI.server.allowedArguments()
GleSYSAPI.server.backup()
GleSYSAPI.server.clone()
GleSYSAPI.server.console()
GleSYSAPI.server.costs()
GleSYSAPI.server.create()
GleSYSAPI.server.createFromBackup()
GleSYSAPI.server.createManualBackup()
GleSYSAPI.server.deleteManualBackup()
GleSYSAPI.server.destroy()
GleSYSAPI.server.details()
GleSYSAPI.server.edit()
GleSYSAPI.server.estimatedBackupCost()
GleSYSAPI.server.estimatedCost()
GleSYSAPI.server.limits()
GleSYSAPI.server.list()
GleSYSAPI.server.listBackups()
GleSYSAPI.server.listISO()
GleSYSAPI.server.mountISO()
GleSYSAPI.server.networkAdapters()
GleSYSAPI.server.previewCloudConfig()
GleSYSAPI.server.reboot()
GleSYSAPI.server.reset()
GleSYSAPI.server.resetLimit()
GleSYSAPI.server.resetPassword()
GleSYSAPI.server.resourceUsage()
GleSYSAPI.server.start()
GleSYSAPI.server.status()
GleSYSAPI.server.stop()
GleSYSAPI.server.templates()
serverDisk
GleSYSAPI.serverDisk.create()
GleSYSAPI.serverDisk.delete()
GleSYSAPI.serverDisk.estimatedCost()
GleSYSAPI.serverDisk.limits()
GleSYSAPI.serverDisk.reconfigure()
GleSYSAPI.serverDisk.updateName()
sshKey
user
GleSYSAPI.user.changePassword()
GleSYSAPI.user.confirm()
GleSYSAPI.user.createOrganization()
GleSYSAPI.user.details()
GleSYSAPI.user.disableTwoFactor()
GleSYSAPI.user.edit()
GleSYSAPI.user.enableTwoFactor()
GleSYSAPI.user.initiateSupportChallenge()
GleSYSAPI.user.listOrganizations()
GleSYSAPI.user.login()
GleSYSAPI.user.logout()
GleSYSAPI.user.searchData()
GleSYSAPI.user.signUp()
GleSYSAPI.user.supportChallenge()
vpn
GleSYSAPI.vpn.createUser()
GleSYSAPI.vpn.deleteUser()
GleSYSAPI.vpn.editUser()
GleSYSAPI.vpn.listUsers()
For more information about the GleSYS API, available arguments etc., please see the GleSYS API documentation.