Extend APIC API token timeout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 06:21 AM - edited 01-25-2023 06:23 AM
Hi all,
I was wondering the other day if there is a API call that can increase the API token timeout. Right now it is 600sec=10mins which is okay but could be more. I came across this managed object "/uni/userext/pkiext/webtokendata" while googling other ACI stuff which hold the settings for various things. So I did a little visore digging ad found this "webtokenTimeoutSeconds" object which was set to 600sec. So I started to play with it and it worked. I was able to extend the token lifetime.
The API endpoint is https://apic.example.com/api/node/mo/uni/userext/pkiext/webtokendata.json
And the POST request body is the following:
{
"pkiWebTokenData": {
"attributes": {
"dn": "uni/userext/pkiext/webtokendata",
"webtokenTimeoutSeconds": "3600"
},
"children": []
}
}
Hope that helps for anyone else too.
Regards,
Ricgard
- Labels:
-
APIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2023 08:13 AM
Thanks for sharing!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 08:20 AM
I used this example for uploading firmware to the GUI. The upload was timing out with a 403 failure. I used this exact query as a get and it showed 600. I then did the post and added the body and it updated to 3600. I re-ran the get request and it showed 3600. I then re-uploaded the firmware and it was successful. Thanks for the post!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 06:53 AM
Has this been resolved?
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 07:08 AM
The help is in the original post on this one.
