Source: plans.js

  1. /**
  2. * Methods for interacting with the plan endpoints<br>
  3. * {@link https://www.vultr.com/api/#tag/plans}
  4. * @namespace plans
  5. */
  6. /**
  7. * Get a list of allavailable Vultr instance plans.<br>
  8. * {@link https://www.vultr.com/api/#operation/list-plans}
  9. * @function listPlans
  10. * @memberof plans
  11. * @instance
  12. */
  13. exports.listPlans = {
  14. url: '/plans',
  15. requestType: 'GET',
  16. parameters: {
  17. type: { type: 'string' },
  18. os: { type: 'string' },
  19. per_page: { type: 'string' },
  20. cursor: { type: 'string' }
  21. }
  22. }
  23. /**
  24. * Get a list of all available Vultr bare metal plans.<br>
  25. * {@link https://www.vultr.com/api/#operation/list-metal-plans}
  26. * @function listBareMetalPlans
  27. * @memberof plans
  28. * @instance
  29. */
  30. exports.listBareMetalPlans = {
  31. url: '/plans-metal',
  32. requestType: 'GET',
  33. parameters: {
  34. per_page: { type: 'string' },
  35. cursor: { type: 'string' }
  36. }
  37. }