I'm pulling them with that xpath: but then I have to loop through the elements to push them: "?type=config&action=show&key="+ $key + "&xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/vsys/entry/rulebase/security"
foreach ($k in ($rules.response.Selectnodes("//entry[@name]"))){
$uri = $papa + "?type=config&action=set&key=" + $key + "&xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='" +$k.name+']' + "&xpath-value&element=" + $k.InnerXml
invoke-webrequest -uri $uri
} is there a way to bulk load them? This was the only way I could make the xml usable to push into the other device.
... View more