Using POSTMAN, is there a way to automatically refresh the APIC-EM service ticket token periodically and update the token result into the X-Auth-Token field used in other API calls, to avoid doing this manually.
the first one is hard as you necessarily know when to refresh the token. The collection on github shows how to auto-populate the "X-Auth-field". you normally just get one ticket, then run all the requests in a session.
apic-em-samples-aradford/tools/postman at master · CiscoDevNet/apic-em-samples-aradford · GitHub
when you get a ticket, you also are told the timeouts for that ticket.
{
"response": {
"serviceTicket": "ST-xxxxxxxxxxxxxxx-cas",
"idleTimeout": 1800,
"sessionTimeout": 21600
},
"version": "1.0"
Comments
0 comments
Please sign in to leave a comment.