Hello,
I am looking for a working python script to change DNAC Network Settings. I need to disable "Network"
and "Client/Endpoint" AAA feature. Please share your config.
I used https://developer.cisco.com/docs/dna-center/#!create-network-v2 link as a source of information. I could be wrong, but python code provided there is wrong.
The code from the link
response = requests.request('POST', url, headers=headers, data = payload)
generates the following error:
b'{"response":{"errorCode":"NCND00067","message":"NCND00067: The request body is invalid","detail":"JSON parse error: Unrecognized token \'settings\': was expecting (\'true\', \'false\' or \'null\')"},"version":"1.0"}'
the solution to solve this error is to replace "data" with "json" in the request.
response = requests.request('POST', url, headers=headers, json = payload)
But it's not a topic of my question.
Please share the script how to disable network_aaa and clientAndEndpoint_aaa values by the script properly.
Thank you in advance.