N4S4 / synology-api

A Python wrapper around Synology API
MIT License
384 stars 142 forks source link

Backup get functions #90

Closed bclemmey closed 2 years ago

bclemmey commented 2 years ago

I'm trying to get a proper monitoring solution in place for a new client's hyper backup and have just been testing out some of the backup functions.

The list functions work great, as does the backup_task_result, but I noticed none of the get functions like backup_task_status, backup_repository_get or backup_task_gethave any parameters, and simple return an error, presumably because they're expecting the ID of a task or repository.

I gave it a quick test by altering the file myself and including a taskid parameter in the backup_task_get function and it seemed to work at that point.

Is this something that can be fixed in this manner, or do they work perfectly and I'm just not using them correctly?

N4S4 commented 2 years ago

I will have a look, it might be missing some parameters as i do not use hyper backup often. I will check and revert back as soon I have a bit of time!

N4S4 commented 2 years ago

closed with #92