Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vultr-promise

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vultr-promise

A promise based vultr api wrapper

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vultr-promise

js-standard-style license

A promise based vultr api wrapper

BEWARE: This module is experimental and may change in the future, use at your own risk!

Example

const vultr = require('vultr-promise')

const API_KEY = 'YOUR_API_KEY_HERE'

vultr.createServer(API_KEY, {
  DCID: 9, // Frankfurt, Germany
  VPSPLANID: 201, // $5 VC2 - 1024 MB, 25 GB SSD
  OSID: 215, // Ubuntu 16.04 x64
  enable_ipv6: 'yes',
  hostname: 'myvps',
  SSHKEYID: '577fb3487211e'
}).then(function (response) {
  console.log('Created VPS with SUBID', response.SUBID)
}).catch(console.error)

Methods

Official Vultr API documentaion

  • Account /v1/account/
    • getAccountInfo
  • Application /v1/app/
    • getAppList
  • API Key /v1/auth/
    • getAuthInfo
  • Backup /v1/backup/
    • getBackupList
  • Block Storage /v1/block/
    • attachBlock
    • createBlock
    • deleteBlock
    • detachBlock
    • getBlockList
    • resizeBlock
  • DNS /v1/dns/
    • createDnsDomain
    • createDnsRecord
    • deleteDnsDomain
    • deleteDnsRecord
    • getDnsDomainList
    • getDnsRecordList
    • updateDnsRecord
  • Firewall /v1/firewall/
    • createFirewallGroup
    • deleteFireallGroup
    • getFirewallGroupList
    • getFirewallGroupDescription
    • createFirewallRule
    • deleteFirewallRule
    • getFirewallRuleList
  • ISO Image /v1/iso/
    • createImageFromUrl
    • getImageList
  • Operating System /v1/os/
    • getOSList
  • Plans /v1/plans/
    • getPlanList
    • getPlanListVC2
    • getPlanListVCDC2
  • Regions /v1/regions/
    • getRegionAvailability
    • getRegionList
  • Reserved IP /v1/reservedip/
    • attachReservedIP
    • convertReservedIP
    • createReservedIP
    • destroyReservedIP
    • detachReservedIP
    • getReservedIPList
  • Server /v1/server/
    • changeServerApp
    • getAppChangeList
    • disableServerBackup
    • enableServerBackup
    • getServerBackupSchedule
    • getServerBandwidth
    • createServer
    • createServerIPv4
    • destroyServer
    • destroyServerIPv4
    • setServerFirewallGroup
    • getServerAppInfo
    • getServerUserData
    • haltServer
    • enableServerIPv6
    • attachServerISO
    • detachServerISO
    • getServerISOInfo
    • setServerLabel
    • getServerList
    • getServerIPv4Info
    • getServerIPv6Info
    • getServerNeighbours
    • changeServerOS
    • getServerOSList
    • rebootServer
    • reinstallServer
    • restoreServerBackup
    • restoreServerSnapshot
    • setDefaultReverseDnsEntryIPv4
    • setDefaultReverseDnsEntryIPv6
    • getReverseDnsEntryIPv6
    • setReverseDnsEntryIPv4
    • setReverseDnsEntryIPv6
    • setServerUserData
    • startServer
    • upgradeServerPlan
    • getServerUpgradePlanList
  • Snapshot /v1/snapshot/
    • createSnapshot
    • destroySnapshot
    • getSnapshotList
  • SSH Key /v1/sshkey/
    • createSSHKey
    • destroySSHKey
    • getSSHKeyList
    • updateSSHKey
  • Startup Script /v1/startupscript/
    • createStartupScript
    • destroyStartupScript
    • getStartupScriptList
    • updateStartupScript
  • User Management /v1/user
    • createUser
    • deleteUser
    • getUserList
    • updateUser

Any method that requires an API key needs to have the API key as the first argument.

License

MIT

Keywords

FAQs

Package last updated on 11 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc