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

Bulk track.accounting

Jump to solution

how can i loop over all rule numbers and set track.accouting on via api? is there a better/quicker way to activate track.accounting for all rules?

0 Kudos
1 Solution

Accepted Solutions
SwitchW0rm
Explorer

solution:

api-endpoint: set-access-rule
json-post-data:
{
"layer":"network", #or something else
"rule-number":i #increment i in loop
"track": { "accounting":true }
}

View solution in original post

2 Replies
_Val_
Admin
Admin

Yes you can

0 Kudos
SwitchW0rm
Explorer

solution:

api-endpoint: set-access-rule
json-post-data:
{
"layer":"network", #or something else
"rule-number":i #increment i in loop
"track": { "accounting":true }
}

View solution in original post