I am trying the below code to delete the user with the api url given REF_AaaUseTest but i am getting the response of confirmation and how can i proceed further or how can i give further input for that response to delete the user?
from requests.auth import HTTPBasicAuth
from requests.packages.urllib3.exceptions import InsecureRequestWarning
url = ("https://184.108.40.206:4444/api/objects/aaa/user/REF_AaaUseTest") #220.127.116.11:4444 - sample firewall ip
response = requests.delete(url,verify=False, headers=headers,auth=('username','pswrd')).content.decode("utf-8")
response = json.loads(response)
except Exception as e:
print("\nFailed to delete user")
print("\nerror : ",e)
if __name__ == '__main__':
I tried few things but those didn't worked for me with referrals so what modifications need to be done in my code and api url ? can anyone help out of this ! A Very Thanks In Advance.