4.14.0 • Published 2 years ago

@maxihost/maxihost-nodejs v4.14.0

Weekly downloads
298
License
ISC
Repository
github
Last release
2 years ago

maxihost-nodejs

Nodejs Package to use Maxihost API. Check our API documentation

Instalation

npm install maxihost-nodejs

Usage

const Maxihost  = require('maxihost-nodejs');
maxihostApi = new Maxihost(<APITOKEN>);

// Async Await

const profile = (async () => {
  await maxihostApi.Profile.get()
})

// Promise then

maxihostApi.Profile.get().then((response) => {
  // success
}, (response) => {
  // failure
})

Available API Methods

  • Account.Regions.list. Params: (searchParams). Deprecated
  • Plans.Bandwidth.list. Params: (). Reference
  • Plans.Bandwidth.update. Params: (bodyData). Reference
  • Plans.get. Params: (planId, searchParams). Reference
  • Plans.list. Params: (searchParams). Reference
  • Plans.operatingSystems. Params: (searchParams). Reference
  • Projects.Members.list. Params: (projectIdOrSlug, searchParams). Reference
  • Projects.SshKeys.create. Params: (projectIdOrSlug, bodyData). Reference
  • Projects.SshKeys.delete. Params: (projectIdOrSlug, sshKeyId). Reference
  • Projects.SshKeys.get. Params: (projectIdOrSlug, sshKeyId, searchParams). Reference
  • Projects.SshKeys.list. Params: (projectIdOrSlug, searchParams). Reference
  • Projects.SshKeys.update. Params: (projectIdOrSlug, sskKeyId, bodyData). Reference
  • Projects.UserData.create. Params: (projectIdOrSlug, bodyData). Reference
  • Projects.UserData.delete. Params: (projectIdOrSlug, userDataId). Reference
  • Projects.UserData.get. Params: (projectIdOrSlug, userDataId, searchParams). Reference
  • Projects.UserData.list. Params: (projectIdOrSlug, searchParams). Reference
  • Projects.UserData.update. Params: (projectIdOrSlug, userDataId, searchParams). Reference
  • Projects.create. Params: (bodyData). Reference
  • Projects.delete. Params: (projectIdOrSlug). Reference
  • Projects.get. Params: (projectIdOrSlug, searchParams). Reference
  • Projects.list. Params: (searchParams) Reference
  • Projects.update. Params: (projectIdOrSlug, bodyData). Reference
  • Regions.get. Params: (regionId, searchParams). Reference
  • Regions.list. Params: (searchParams) Reference
  • Server.Actions.getReinstall. Params: (serverId). Deprecated
  • Server.Actions.getRemoteAccess. Params: (serverId). Deprecated
  • Server.Actions.managePower. Params: (serverId, postData) Reference
  • Server.Actions.reinstall. Params: (serverId, bodyData). Reference
  • Server.DeployConfig.get. Params: (serverId). Reference
  • Server.DeployConfig.update. Params: (serverId, bodyData). Reference
  • Server.Ips.list. Params: (serverId, searchParams). Deprecated
  • Server.RemoteAccess.create. Params: (serverId). Reference
  • Server.create. Params: (bodyData) Reference
  • Server.delete. Params: (deviceId) Reference
  • Server.get. Params: (deviceId, searchParams) Reference
  • Server.list. Params: (searchParams) Reference
  • Server.update. Params: (deviceId, bodyData) Reference

  • Server.RescueMode.enter. Params: (serverId) Reference

  • Server.RescueMode.exit. Params: (serverId). Reference

  • Teams.Members.create. Params: (bodyData). Reference

  • Teams.Members.delete. Params: (memberId). Reference
  • Teams.Members.list. Params: (searchParams). Reference
  • Teams.User.listTeams. Params: (searchParams). Reference

  • Teams.Roles.get. Params: (id). Reference

  • Teams.Roles.list. Params: (). Reference

  • Teams.create. Params: (bodyData). Reference

  • Teams.current. Params: (searchParams). Reference
  • Teams.update. Params: (teamId, data). Reference
  • Traffic.Quota.get. Params: (projectSlug). Reference
  • Traffic.get. Params: (searchParams). Reference
  • User.ApiKeys.create Params:(bodyData)`. Reference
  • User.ApiKeys.delete Params:(apiKeyId)`. Reference
  • User.ApiKeys.list Params:(searchParams)`. Reference
  • User.ApiKeys.update Params:(apiKeyId, bodyData)`. Reference
  • User.Profile.get Params:(searchParams)`. Reference
  • User.Profile.update Params:(userId, data)`. Reference
  • VirtualNetworks.Assignments.create. Params: (bodyData). Reference
  • VirtualNetworks.Assignments.delete. Params: (id). Reference
  • VirtualNetworks.Assignments.list. Params: (searchParams). Reference
  • VirtualNetworks.create. Params: (bodyData). Reference
  • VirtualNetworks.delete. Params: (id). Reference
  • VirtualNetworks.get. Params: (id, searchParams). Reference
  • VirtualNetworks.list. Params: (searchParams). Reference
  • VirtualNetworks.update. Params: (id, bodyData). Reference
  • VpnSessions.create. Params: (bodyData). Reference
  • VpnSessions.delete. Params: (sessionId). Reference
  • VpnSessions.list. Params: (searchParams). Reference
  • VpnSessions.refreshPassword. Params: (sessionId). Reference
4.14.0

2 years ago

4.12.0

2 years ago

4.10.3

2 years ago

4.11.0

2 years ago

4.13.0

2 years ago

4.9.0

2 years ago

4.10.1

2 years ago

4.10.2

2 years ago

4.10.0

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

4.6.0

2 years ago

4.5.0

2 years ago

4.4.0

2 years ago

4.3.0

2 years ago

4.2.0

2 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.3.0

3 years ago

2.2.5

3 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.1

3 years ago

2.2.2

3 years ago

2.2.0

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

2.1.6

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago