PRIVATEHEBERG

Vérifier un token

/check/[a:token] GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Récupérer les produits

/product/list GET

Active un code produit

/[a:token]/service/activate POST

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Donne les statistiques

/[a:token]/service/Proxmox_KVM/[i:id]/stats GET

    RESPONSE MODEL

    {"qmpstatus":"Server stats","vmid":"Your VMID","uptime":"server uptime","cpus":"Number of cpu","maxmem":"Max memory capacity number","maxdisk":"Max disk capacity number","disk":"disk used","ip":"XXX.XXX.XXX.XXX","msr":"XXX.XXX.XXX.XXX","gateway":"XXX.XXX.XXX.XXX","mac":"your mac adresse","mem":"your memory value","error":false}

Crée un serveur minecraft

/[a:token]/service/Minecraft/make/[i:product_id] POST

    Args to POST

  • add time

    Number of seconde you buy the server MIN : 600 MAX : 63 072 000

    info_outline

    RESPONSE MODEL

    {"version":"Your server version","cpu":"Your number of cpu","ram":"Your number of ram","port":"Your server port","hdd":"You server hdd value","openmod":"openmod enable or not","ftpPass":null,"subdomain":"Your server ip","srvId":"Your server id","sqlServer":"Your sql server","sqlPass":"Your sql password","price_to_pay":null,"error":false}

Demarre votre serveur

/[a:token]/service/Minecraft/[i:id]/start GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Stopper votre serveur

/[a:token]/service/Minecraft/[i:id]/stop GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Donne les statistiques

/[a:token]/service/Minecraft/[i:id]/stats GET

    RESPONSE MODEL

    {"stats":"Les stats de votre serveur minecraft","error":false}

Créé un serveur

/[a:token]/service/Steam/make/[i:product_id] POST

    Args to POST

  • add time

    Number of seconde you buy the server MIN : 600 MAX : 63 072 000

    info_outline

    RESPONSE MODEL

    {"game_id":"Your game id","game_name":"Your game name","is_installed":"Status of the installation","slot":"Number of slot","ram":"Number of ram of your server","port":"Port Number","price_to_pay":"The price you have payed for this server","error":false}

Demarre votre serveur

/[a:token]/service/Steam/[i:id]/start GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Arrete votre serveur

/[a:token]/service/Steam/[i:id]/stop GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Donne les statistiques

/[a:token]/service/Steam/[i:id]/stats GET

    RESPONSE MODEL

    {"stats":"Les stats de votre serveur steam","error":false}

Créé un serveur

/[a:token]/service/SinusBot/make/[i:product_id] POST

    Args to POST

  • add time

    Number of seconde you buy the server MIN : 600 MAX : 63 072 000

    info_outline

    RESPONSE MODEL

    {"stockage":"Stockage","ram":"ram","port":"port","ip":"ip","price_to_pay":"prix_mensuel","error":false}

Demarre votre serveur

/[a:token]/service/SinusBot/[i:id]/start GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Stopper votre serveur

/[a:token]/service/SinusBot/[i:id]/stop GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Donne les statistiques

/[a:token]/service/SinusBot/[i:id]/stats GET

    RESPONSE MODEL

    {"stats":"Les stats de votre serveur sinusbot","error":false}

éditer un serveur cloud

/[a:token]/service/Cloud/[i:id]/scale POST

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Detruit le serveur

/[a:token]/service/Cloud/[i:id]/remove GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Démarrer votre serveur

/[a:token]/service/Cloud/[i:id]/start GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Eteindre votre serveur

/[a:token]/service/Cloud/[i:id]/stop GET

    RESPONSE MODEL

    {"message":"you have an error with this command","error":true}

Retroune la consomation du serveur actuel

/[a:token]/service/Cloud/[i:id]/stats GET

    RESPONSE MODEL

    {"stats":{"maxswap":268435456,"swap":0,"cpu":12.15474,"n_cpu":6,"mem":30732288,"maxmem":10737418240},"error":false}

Donne la liste de vos serveur cloud id nom ip

/[a:token]/service/Cloud/cloudList GET

    RESPONSE MODEL

    {"cloudList":[{"id":"Id machine","nom":"Nom de la machine","ip":"Ip de la machine"}],"error":false}

Recupere les valeurs Min & Max pour la creation de serveur.

/[a:token]/service/Cloud/prerequise GET

    RESPONSE MODEL

    {"coremin":"The minimum core number","coremax":"The maximum core number","memmin":"The minimum ram number","memmax":"The maximum ram number","swapmin":"The minimum swap number","swapmax":"The maximum swap number","storagemin":"The minimum storage number","storagemax":"The maximum storage number","error":false}

Créer un serveur

/[a:token]/service/Cloud/make POST

    RESPONSE MODEL

    {"id":"Server id","ip":"XXX.XXX.XXX.XXX","password":"Your Password","user":"root","error":false}

Récuperer un utilisateur

/[a:token]/user/informations GET

    RESPONSE MODEL

    {"user":{"id":17,"last_name":"Doe","first_name":"Jhon","picture":"https:\/\/www.gravatar.com\/avatar\/33ba72fd979db7b3034ee1d12968a70a?s=200&d=mm&r=g","business":"PrivateHeberg","email_adress":"contact@privateheberg.com","address":"33 rue des champs Elys\u00e9es","city_code":75000,"city":"Paris","public_api_key":"kuvZ3QbAAqPS4ShnWmUyxDrg99ePiwovA5wCxfG6l8bGUpHjkYdJdau8z3tB7LQp","creation_date":1493643965,"verified":true,"2fa":true,"balance":187.15},"message":"Erreur","error":false}