on 28-Nov-2022 15:36
With this code, you can obtain your network map, and save it a json file.
By default capabilities of IControl Api, you can not obtain Network Map with a single api call(at least,for now), with this code, you can get it with several api calls, and code will converge the data for you.
For using this code, first, you have to have an access to your F5 over tcp/443 from where you run the code on,
After you become sure the reachibility, you can give it a try with changing the line with proper informations:
sampleF5 = F5_LoadBalancer("F5_ManagementIpAddress","Username","Password")
After that, you can run this code,
If you get no error, you will see a file named with "networkMap.json" in the working directory of this code,
If you want to change name of output file from "networkMap.json" to anyting, you can give it as a parameter,
sampleF5.buildJsonNetworkMap(nameOfFile = "AnyNameYouWant.json")