Reply

How to use structures?!

New Member
Posts: 1
1907     0

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 

{   "scheduled_backup": [
      {
         "_struct": "scheduledbackup",
         "status" : "FAILED"
      }
   ]
}
to see the failed ones. Not working. How do I get the status and/or timestamp of the latest grid backup?
Also, I'm wondering how to know what wapi version to use.

Re: How to use structures?!

New Member
Posts: 5
1908     0

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?!

New Member
Posts: 2
1908     0

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!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You