Hi,
Ive created a script tp backup and restore the APIC configuration.
Now I want to show the corresponsing status of the restore or backup event.
Using Cobra SDK I do the request below and get a list of events back.
But how do I relate the Event to the Backup/Restore Job ?
----
#import modules and login to apic now shown
import cobra.mit.request
status_query = cobra.mit.request.DnQuery('uni/backupst/jobs-[uni/fabric/configimp-Restore-Import]')
status_query.queryTarget = "subtree"
status_query.subtreeInclude = "stats"
stats = session.query(status_query)
for sts in stats
print sts.name