Hello.
Have written script for checking backup status of VM via API - request for "https://pbs:8007/api2/json/nodes/localhost/tasks" with parsing Status of backup job.
The question is how to manually initialize FAILED backup status for VM in order to check script?
Was trying to set Read-only mode for PBS datastore but in this case the API still responds only earlier backups with OK status although email notification send status FAILED with reason "VM 101 qmp command 'backup' failed - backup connect failed: command error: datastore 'Backup_Folder' is in read-only maintenance mode:" but API doesn't show that.
Have written script for checking backup status of VM via API - request for "https://pbs:8007/api2/json/nodes/localhost/tasks" with parsing Status of backup job.
The question is how to manually initialize FAILED backup status for VM in order to check script?
Was trying to set Read-only mode for PBS datastore but in this case the API still responds only earlier backups with OK status although email notification send status FAILED with reason "VM 101 qmp command 'backup' failed - backup connect failed: command error: datastore 'Backup_Folder' is in read-only maintenance mode:" but API doesn't show that.