I have been trying to get backup task status via API calls for years with no success. I found a reference to user 'leirn' and their project to monitor Syno things with nagios. In there was the key, undocumented extended attributes to pass to the 'status' method of SYNO.Backup.Task. I have no idea how 'leirn' found this, credit to him or her. I am sorry I do not have time to properly contribute the code changes, so I offer the extended attributes to someone who does. The normal 'status' method will only return the job's config status, is it a job that is configured correctly. If what you really want is the result from the last time the job ran, get the task_id with a call to backup_task_list, then use this new function:
I have been trying to get backup task status via API calls for years with no success. I found a reference to user 'leirn' and their project to monitor Syno things with nagios. In there was the key, undocumented extended attributes to pass to the 'status' method of SYNO.Backup.Task. I have no idea how 'leirn' found this, credit to him or her. I am sorry I do not have time to properly contribute the code changes, so I offer the extended attributes to someone who does. The normal 'status' method will only return the job's config status, is it a job that is configured correctly. If what you really want is the result from the last time the job ran, get the task_id with a call to backup_task_list, then use this new function:
I tested it against DSM6, I have not upgraded to DSM7 yet so no idea how it works there.