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
02-17-2023 08:13 AM
Thanks for sharing!
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!
02-01-2024 06:53 AM
Has this been resolved?
02-01-2024 07:08 AM
The help is in the original post on this one.
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