Demystifying iControl REST Part 6: Token-Based Authentication
iControl REST. It’s iControl SOAP’s baby, brother, introduced back in TMOS version 11.4 as an early access feature but released fully in version 11.5.
Several articles on basic usage have been writ...
Updated Jan 06, 2024
Version 2.0JRahm
Admin
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
Zdenda
Nov 26, 2015Cirrus
Hi, firstly thanks for whole series, this has been helping me a lot. Regarding this token auth stuff, is the code you wrote supposed to be used by python 3.x? I use Python 2.7, but have issues to run your script even without any changes and I get the error like bellow (hopefully it will not be reformated)
Traceback (most recent call last):
File "auth_test.py", line 46, in
token = get_token(b, url_auth, (username, password))
File "auth_test.py", line 15, in get_token
token = bigip.post(url, json.dumps(payload)).json()['token']['token']
KeyError: 'token'