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

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

    CheckMates Events