npm.io
9.3.0 • Published 3d ago

glesys-api

Licence
MIT
Version
9.3.0
Deps
0
Vulns
0
Weekly
0
Stars
5

glesys-api

npm build Coverage Status

A Node.js wrapper for the GleSYS API.

Installation

Note: 22.11.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: 'example@example.com',
    password: 'password',
});

Available methods

account
api
archive
blockStorage
country
customer
database
domain
email
fileStorage
invoice
ip
loadBalancer
network
networkAdapter
networkCircuit
objectStorage
paymentCard
privateNetwork
project
server
serverDisk
sshKey
user
vpn

For more information about the GleSYS API, available arguments etc., please see the GleSYS API documentation.

Keywords