Jeff_42386
Feb 02, 2017Nimbostratus
Modifying Auth TACACS config with Python or REST
Is it possible to use Python SDK or the REST API to change the TACACS+ configuration? I am running 11.5.3 and am having trouble finding documentation on either the REST calls themselves or how to script the calls using Python.
Ultimately I'll need to change a couple hundred vCMP hosts, LTM's and GTM's to point to a new TACACS+ server. I wanted to write a quick pythons script to look through my devices something like this...
for loadBalancer in loadBalancers:
mgmt = ManagementRoot(loadBalancer['DeviceName'], username, password)
tacacs = mgmt.tm.auth.tacacs.modify(\
name="system-auth",\
description="new tacacs server",\
protocol="ip",\
secret="$M$*******************",\
servers="{ 10.10.10.1 10.10.10.2 }",\
service="ppp"\
)
Thanks in advance for any help!
Jeff