@maxihost/maxihost-nodejs
v4.14.0
Published
Maxihost API NodeJS Library
Downloads
6
Keywords
Readme
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
ApiVersion.get
Params:()
. ReferenceApiVersion.update
Params:(bodyData)
. ReferenceAccount.Regions.list
. Params:(searchParams)
. DeprecatedIps.get
. Params:(id, searchParams)
. ReferenceIps.list
. Params:(searchParams)
. ReferencePlans.Bandwidth.list
. Params:()
. ReferencePlans.Bandwidth.update
. Params:(bodyData)
. ReferencePlans.get
. Params:(planId, searchParams)
. ReferencePlans.list
. Params:(searchParams)
. ReferencePlans.operatingSystems
. Params:(searchParams)
. ReferenceProjects.Members.list
. Params:(projectIdOrSlug, searchParams)
. ReferenceProjects.SshKeys.create
. Params:(projectIdOrSlug, bodyData)
. ReferenceProjects.SshKeys.delete
. Params:(projectIdOrSlug, sshKeyId)
. ReferenceProjects.SshKeys.get
. Params:(projectIdOrSlug, sshKeyId, searchParams)
. ReferenceProjects.SshKeys.list
. Params:(projectIdOrSlug, searchParams)
. ReferenceProjects.SshKeys.update
. Params:(projectIdOrSlug, sskKeyId, bodyData)
. ReferenceProjects.UserData.create
. Params:(projectIdOrSlug, bodyData)
. ReferenceProjects.UserData.delete
. Params:(projectIdOrSlug, userDataId)
. ReferenceProjects.UserData.get
. Params:(projectIdOrSlug, userDataId, searchParams)
. ReferenceProjects.UserData.list
. Params:(projectIdOrSlug, searchParams)
. ReferenceProjects.UserData.update
. Params:(projectIdOrSlug, userDataId, searchParams)
. ReferenceProjects.create
. Params:(bodyData)
. ReferenceProjects.delete
. Params:(projectIdOrSlug)
. ReferenceProjects.get
. Params:(projectIdOrSlug, searchParams)
. ReferenceProjects.list
. Params:(searchParams)
ReferenceProjects.update
. Params:(projectIdOrSlug, bodyData)
. ReferenceRegions.get
. Params:(regionId, searchParams)
. ReferenceRegions.list
. Params:(searchParams)
ReferenceServer.Actions.getReinstall
. Params:(serverId)
. DeprecatedServer.Actions.getRemoteAccess
. Params:(serverId)
. DeprecatedServer.Actions.managePower
. Params:(serverId, postData)
ReferenceServer.Actions.reinstall
. Params:(serverId, bodyData)
. ReferenceServer.DeployConfig.get
. Params:(serverId)
. ReferenceServer.DeployConfig.update
. Params:(serverId, bodyData)
. ReferenceServer.Ips.list
. Params:(serverId, searchParams)
. DeprecatedServer.RemoteAccess.create
. Params:(serverId)
. ReferenceServer.create
. Params:(bodyData)
ReferenceServer.delete
. Params:(deviceId)
ReferenceServer.get
. Params:(deviceId, searchParams)
ReferenceServer.list
. Params:(searchParams)
ReferenceServer.update
. Params:(deviceId, bodyData)
ReferenceServer.RescueMode.enter
. Params:(serverId)
ReferenceServer.RescueMode.exit
. Params:(serverId)
. ReferenceTeams.Members.create
. Params:(bodyData)
. ReferenceTeams.Members.delete
. Params:(memberId)
. ReferenceTeams.Members.list
. Params:(searchParams)
. ReferenceTeams.User.listTeams
. Params:(searchParams)
. ReferenceTeams.Roles.get
. Params:(id)
. ReferenceTeams.Roles.list
. Params:()
. ReferenceTeams.create
. Params:(bodyData)
. ReferenceTeams.current
. Params:(searchParams)
. ReferenceTeams.update
. Params:(teamId, data)
. ReferenceTraffic.Quota.get
. Params:(projectSlug)
. ReferenceTraffic.get
. Params:(searchParams)
. ReferenceUser.ApiKeys.create Params:
(bodyData)`. ReferenceUser.ApiKeys.delete Params:
(apiKeyId)`. ReferenceUser.ApiKeys.list Params:
(searchParams)`. ReferenceUser.ApiKeys.update Params:
(apiKeyId, bodyData)`. ReferenceUser.Profile.get Params:
(searchParams)`. ReferenceUser.Profile.update Params:
(userId, data)`. ReferenceVirtualNetworks.Assignments.create
. Params:(bodyData)
. ReferenceVirtualNetworks.Assignments.delete
. Params:(id)
. ReferenceVirtualNetworks.Assignments.list
. Params:(searchParams)
. ReferenceVirtualNetworks.create
. Params:(bodyData)
. ReferenceVirtualNetworks.delete
. Params:(id)
. ReferenceVirtualNetworks.get
. Params:(id, searchParams)
. ReferenceVirtualNetworks.list
. Params:(searchParams)
. ReferenceVirtualNetworks.update
. Params:(id, bodyData)
. ReferenceVpnSessions.create
. Params:(bodyData)
. ReferenceVpnSessions.delete
. Params:(sessionId)
. ReferenceVpnSessions.list
. Params:(searchParams)
. ReferenceVpnSessions.refreshPassword
. Params:(sessionId)
. Reference