Source: iso.js

  1. /**
  2. * Methods for interacting with the ISO endpoints<br>
  3. * {@link https://www.vultr.com/api/#tag/iso}
  4. * @namespace iso
  5. */
  6. /**
  7. * List all ISOs in the account.<br>
  8. * {@link https://www.vultr.com/api/#operation/list-isos}
  9. * @function listIsos
  10. * @memberof iso
  11. * @instance
  12. */
  13. exports.listIsos = {
  14. url: '/iso',
  15. requestType: 'GET',
  16. apiKeyRequired: true,
  17. parameters: {
  18. per_page: { type: 'string' },
  19. cursor: { type: 'string' }
  20. }
  21. }
  22. /**
  23. * Create a new ISO in the account from a URL.<br>
  24. * {@link https://www.vultr.com/api/#operation/create-iso}
  25. * @function createIso
  26. * @memberof iso
  27. * @instance
  28. */
  29. exports.createIso = {
  30. url: '/iso',
  31. requestType: 'POST',
  32. apiKeyRequired: true,
  33. parameters: {
  34. url: {
  35. type: 'string',
  36. required: true
  37. }
  38. }
  39. }
  40. /**
  41. * Get information about the specified ISO.<br>
  42. * {@link https://www.vultr.com/api/#operation/iso-get}
  43. * @function getIso
  44. * @memberof iso
  45. * @instance
  46. */
  47. exports.getIso = {
  48. url: '/iso/{iso-id}',
  49. requestType: 'POST',
  50. apiKeyRequired: true,
  51. parameters: {
  52. 'iso-id': {
  53. type: 'string',
  54. path: true,
  55. required: true
  56. }
  57. }
  58. }
  59. /**
  60. * Delete the specified ISO from the account.<br>
  61. * {@link https://www.vultr.com/api/#operation/delete-iso}
  62. * @function deleteIso
  63. * @memberof iso
  64. * @instance
  65. */
  66. exports.deleteIso = {
  67. url: '/iso/{iso-id}',
  68. requestType: 'DELETE',
  69. apiKeyRequired: true,
  70. parameters: {
  71. 'iso-id': {
  72. type: 'string',
  73. path: true,
  74. required: true
  75. }
  76. }
  77. }
  78. /**
  79. * List all Vultr public ISOs.<br>
  80. * {@link https://www.vultr.com/api/#operation/list-public-isos}
  81. * @function listPublicIsos
  82. * @memberof iso
  83. * @instance
  84. */
  85. exports.listPublicIsos = {
  86. url: '/iso-public',
  87. requestType: 'GET'
  88. }