- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to use structures?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 11:51 PM
I'm trying to get grid backup status from the wapi but cannot figure out how to use structures.. There are no examples at all. I found grid object and it has scheduledbackup : Scheduled backup settings -struct.
I can get grid backup config with
https://<host>/wapi/v2.12/grid?_return_fields%2b=scheduled_backup,
but it does not tell me when is the latest backup done or what's its status.
I tried to get grid backup status with
https://<host>/wapi/v2.12/grid
-d
Re: How to use structures?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hello! Is there anybody out there? Just nod if you can hear me. Is there anyone?
I feel like this is a great question, but I do not have the answer and sadly cannot find it myself.
But I will find out how very soon.
Thanks,
Alex
Re: How to use structures?!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi,
Just took a peek at this just now - it appears that the scheduled_backup struct is for configuring Scheduled Grid Backups. I don't think that the status of scheduled backups is reported or retrieved from this property/struct.
In other words, as scheduled backups execute, i don't think the struct is updated w/ the status of the each backup execution.
This is one reason i favor using a WAPI script to "pull" the backup rather than have this "put" the backup. If you write your own script to "pull" the backup you can schedule it to run via cron or scheduler, and you can monitor the execution ea time it runs and report any failure(s).
I would imagine if you "monitor" syslog on the Grid Manager, you'd also be able to see evidence of failed grid backups from there as well.
Hope this helps.
Take care!