I'm creating a script to delete to automate the removal of unused objects. I'm having trouble deleting an object used in any access-rule. I create a variable to store the column where the object is used and I'm using this variable in the row, but is not working. Does anyone have any idea for solving this case?
Below is the line.
mgmt_cli -r true -d "$DOMAIN" set access-rule name "$(cat < rulename.json)" layer "$(cat < layer.json)" $(cat < coluna.json).remove "$IP"
I'm referencing files because if I put the variable does not work.