@latitudesh/latitudesh-nodejs
v1.10.0
Published
Latitude.sh API NodeJS Library
Downloads
319
Readme
@latitudesh/latitudesh-nodejs
Nodejs Package to use Latitude.sh API. Check our API documentation
Installation
npm install @latitudesh/latitudesh-nodejs
Usage
const latitudeSh = require('@latitudesh/latitudesh-nodejs');
latitudeShApi = new latitudeSh(<APITOKEN>);
// Async Await
const profile = (async () => {
await latitudeShApi.Profile.get()
})
// Promise then
latitudeShApi.Profile.get().then((response) => {
// success
}, (response) => {
// failure
})
Available API Methods
ApiVersion.get
Params:()
. ReferenceApiVersion.list
Params:()
. ReferenceApiVersion.update
Params:(bodyData)
. ReferenceAccount.Regions.list
. Params:(searchParams)
. DeprecatedBilling.Usage.get
Params:(searchParams)
. ReferenceIps.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.Actions.scheduleDeletion
. Params:(serverId)
. ReferenceServer.Actions.unscheduleDeletion
. Params:(serverId)
. 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, reason)
ReferenceServer.get
. Params:(deviceId, searchParams)
ReferenceServer.list
. Params:(searchParams)
ReferenceServer.update
. Params:(deviceId, bodyData)
ReferenceServer.OutOfBand.create
. Params:(serverId, bodyData)
ReferenceServer.OutOfBand.get
. Params:(serverId)
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.Tags.list
. Params:()
. ReferenceTeams.Tags.create
. Params:(bodyData)
. ReferenceTeams.Tags.update
. Params:(tagId, bodyData)
. ReferenceTeams.Tags.delete
. Params:(tagId)
. 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)
. ReferenceStorage.create
. Params:(bodyData)
. ReferenceStorage.list
. Params:(searchParams)
. ReferenceStorage.update
. Params:(fileSystemId, bodyData)
. ReferenceStorage.delete
. Params:(fileSystemId, queryParams)
. Reference