New Bulk Access Rule in Policy

POST https://{{fmc_hostname}}/api/fmc_config/v1/domain/{{fmc_domain}}/policy/accesspolicies/{{fmc_policy}}/accessrules?bulk=true&section=mandatory

REST call to make a new Access rule inside a policy in bulk

Request Params

KeyDatatypeRequiredDescription
bulkboolean
sectionstring

Request Body

{"0"=>{"action"=>"ALLOW", "enabled"=>true, "type"=>"AccessRule", "sendEventsToFMC"=>true, "destinationNetworks"=>{"literals"=>[{"type"=>"Network", "value"=>"10.1.1.0/24"}]}, "variableSet"=>{"name"=>"Default-Set", "id"=>"76fa83ea-c972-11e2-8be8-8e45bb1343c0", "type"=>"VariableSet"}, "ipsPolicy"=>{"name"=>"Balanced Security and Connectivity", "id"=>"abba00a0-cf29-425c-9d75-49699aadc898", "type"=>"IntrusionPolicy"}, "logBegin"=>false, "logEnd"=>true, "logFiles"=>false, "name"=>"_sevt2018-api-rule-1"}, "1"=>{"action"=>"ALLOW", "enabled"=>true, "type"=>"AccessRule", "sendEventsToFMC"=>true, "destinationNetworks"=>{"literals"=>[{"type"=>"Network", "value"=>"10.2.1.0/24"}]}, "variableSet"=>{"name"=>"Default-Set", "id"=>"76fa83ea-c972-11e2-8be8-8e45bb1343c0", "type"=>"VariableSet"}, "ipsPolicy"=>{"name"=>"Balanced Security and Connectivity", "id"=>"abba00a0-cf29-425c-9d75-49699aadc898", "type"=>"IntrusionPolicy"}, "logBegin"=>false, "logEnd"=>true, "logFiles"=>false, "name"=>"_sevt2018-api-rule-2"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
x-auth-access-tokenstring