I done the following with mgmt_cli:
set access-rule rule-number 1 layer "Test Network" source.add "Test_Host1"
set access-rule rule-number 1 layer "Test Network" source.add "Test_Host2"
set access-rule rule-number 1 layer "Test Network" source.add "Test_Host3"
set access-rule rule-number 1 layer "Test Network" source.add "Test_Host4"
set access-rule rule-number 1 layer "Test Network" destination.remove "Test_Host1"
set access-rule rule-number 1 layer "Test Network" destination.remove "Test_Host2"
set access-rule rule-number 1 layer "Test Network" destination.remove "Test_Host3"
set access-rule rule-number 1 layer "Test Network" destination.remove "Test_Host4"
How can I do the same with curl?
source.add as well destination.remove gets the error
"code" : "generic_err_invalid_syntax",
"message" : "Payload is not a valid JSON"