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

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82

    Thu 25 Apr 2024 @ 11:00 AM (SGT)

    APAC: CPX 2024 Recap

    Tue 30 Apr 2024 @ 03:00 PM (CDT)

    EMEA: CPX 2024 Recap

    Wed 01 May 2024 @ 02:00 PM (EDT)

    South US: HTTPS Inspection Best Practices

    Thu 02 May 2024 @ 11:00 AM (SGT)

    APAC: What's new in R82
    CheckMates Events