Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
carlosgeib
Participant

Removing an object from access-rule through API

Helllo everybody.

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.

Thanks.

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

Define “not working”—what errors are you getting?
Do you have it working if you don’t use variables?
What shell is this in?
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events