Hi everyone, I have a few questions about this PUT API. I am using a python script to update the L3 firewall rules. My API uses: requests.put(apiCall, data=json.dumps(payload), headers=headers).json() Where for payload, I've tried using just the array in the body (as suggested in the post resolution), like this: payload = [ { 'comment':'Tested', 'policy':'deny', 'protocol':'Any', 'destPort':'Any', 'destCidr':"3.3.3.3/32", 'srcPort':'Any', 'srcCidr':'Any', }, { 'comment':'Test', 'policy':'deny', 'protocol':'any', 'srcPort':'Any', 'srcCidr':'Any', 'destPort':'Any', 'destCidr':'1.1.1.1/32,2.2.2.2/32' } ] And I receive a 200 code, but the rules are not added nor changed. I've also tried as indicated in the API documentation using the param "rules": payload = { 'rules' : [ { 'comment':'Tested', 'policy':'deny', 'protocol':'Any', 'destPort':'Any', 'destCidr':"3.3.3.3/32", 'srcPort':'Any', 'srcCidr':'Any', }, { 'comment':'Test', 'policy':'deny', 'protocol':'any', 'srcPort':'Any', 'srcCidr':'Any', 'destPort':'Any', 'destCidr':'1.1.1.1/32,2.2.2.2/32' } ] } And the same result, code 200 OK, but nothing is updated. Do you have any clue about what could be wrong?
... View more