08-04-2017 05:08 AM - edited 03-01-2019 04:40 AM
Hello,
I couldn't find api for backup in swagger. Assuming this is part of grapevine which isn't described yet?
Where I could find API specification for creation and downloading backups?
Thanks
Misha
Solved! Go to Solution.
08-04-2017 01:05 PM
Hi Misha,
good question. There is a longer historical answer, but it has not been documented (can you make a wish for this).
There was a script we published to show how to use these API. This example uses port 14141 (which is part of the historical answer), which i think is turned off in 1.5, so you would need to use port 443 and https://{{apic}}/grapevine/api/backup/info
This is the older version of the script which has the API endpoints (that need to change)
uniq/retrieve_backup.sh at master · CiscoDevNet/uniq · GitHub
Let me know if you need more information.
Adam
08-04-2017 01:05 PM
Hi Misha,
good question. There is a longer historical answer, but it has not been documented (can you make a wish for this).
There was a script we published to show how to use these API. This example uses port 14141 (which is part of the historical answer), which i think is turned off in 1.5, so you would need to use port 443 and https://{{apic}}/grapevine/api/backup/info
This is the older version of the script which has the API endpoints (that need to change)
uniq/retrieve_backup.sh at master · CiscoDevNet/uniq · GitHub
Let me know if you need more information.
Adam
08-04-2017 04:53 PM
Adding to Adam's reply, I run the following POST which successfully triggered a backup procedure:
https://[APIC]/grapevine/api/backup
You can also run the following GET command to retrieve the backup jobs info:
https://[APIC]/grapevine/api/backup/info
Hope it helps.
08-07-2017 01:32 AM
Thanks Adam and Yosef
I as able to create backup with calling grapevine/api/backup.
08-07-2017 01:37 AM
excellent. thanks for letting us know.
Let us know if you have more questions.
Adam
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide