Source: backups.js

  1. /**
  2. * Methods for interacting with the backup endpoints<br>
  3. * {@link https://www.vultr.com/api/#tag/backup}
  4. * @namespace backup
  5. */
  6. /**
  7. * Get information about backups in your account.<br>
  8. * {@link https://www.vultr.com/api/#operation/list-backups}
  9. * @function list
  10. * @memberof backup
  11. * @instance
  12. */
  13. exports.listBackups = {
  14. url: '/backups',
  15. requestType: 'GET',
  16. apiKeyRequired: true,
  17. parameters: {
  18. instance_id: { type: 'string' },
  19. per_page: { type: 'number' },
  20. cursor: { type: 'string' }
  21. }
  22. }
  23. /**
  24. * Get information for the specified backup.<br>
  25. * {@link https://www.vultr.com/api/#operation/get-backup}
  26. * @function get
  27. * @memberof backup
  28. * @instance
  29. */
  30. exports.getBackup = {
  31. url: '/backups/{backup-id}',
  32. requestType: 'GET',
  33. apiKeyRequired: true,
  34. parameters: {
  35. 'backup-id': {
  36. type: 'string',
  37. path: true,
  38. required: true
  39. }
  40. }
  41. }