Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
VFO
Explorer

add multiple object in destination rule from CSV

hello

 

i try to find a solution to add mutiple objects in destination rule from a CSV file.

i don't find a solution

here my CSV file from VI

layer,name,destination
Network,Rule-name,object-1,object-2,object-3

 

mgmt_cli set access-rule add destination -b /home/xxx/My.csv

obect-3 is alone on destination so i need object-1 object-2 and object-3

 

how can i do that ?

0 Kudos
2 Replies
Alex-
Advisor
Advisor

The add subcommand must be added to your CSV in the destination. Try something like this.

 

 

 

layer,name,destination.add
Network,CSV,host1
Network,CSV,host2
Network,CSV,host3

 

 

And it should do the work. This is what I got after creating an FTP rule called CSV with an empty destination and running the batch as described above. 

csvadd.png

mgmt_cli -r true set access-rule add destination --format json --batch /home/admin/apiadd.csv
0 Kudos
VFO
Explorer

Thank you very much for your solution it is fine.

 

regards

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