cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
551
Views
6
Helpful
2
Replies

Extend APIC API token timeout

mr.richardb
Beginner
Beginner

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

2 Replies 2

Alex Stevenson
Cisco Employee
Cisco Employee

Thanks for sharing!

apfeil
Beginner
Beginner

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!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:


This community is intended for developer topics around Data Center technology and products. If you are looking for a non-developer topic about Data Center, you might find additional information in the Data Center and Cloud community

Recognize Your Peers